v3: Clean up a Kconfig value and fixup K8 CAR defines to get CONFIG_ values

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/coreboot-v3@703 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Ronald G. Minnich 2008-08-01 17:16:45 +00:00
commit 178f27bc31
3 changed files with 4 additions and 4 deletions

View file

@ -90,6 +90,6 @@ config CARSIZE
hex
default 0x1000 if CPU_I586
default 0x8000 if CPU_AMD_GEODELX
default 0x08000 if CPU_AMD_K8
default 0x8000 if CPU_AMD_K8
help
This option sets the size of the area used for CAR.

View file

@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "../macros.h"
#define CacheSize DCACHE_RAM_SIZE
#define CacheBase DCACHE_RAM_BASE
#define CacheSize CONFIG_CARSIZE
#define CacheBase CONFIG_CARBASE
#define MEM_TOPK 2048
#define ASSEMBLY

View file

@ -35,7 +35,7 @@ void disable_car(void)
* the data back over itself, and the wbinvd should then
* flush to memory. Let's see.
*/
__asm__ __volatile__("cld; rep movsl" ::"D" (DCACHE_RAM_BASE), "S" (DCACHE_RAM_BASE), "c" (DCACHE_RAM_SIZE/4): "memory");
__asm__ __volatile__("cld; rep movsl" ::"D" (CONFIG_CARBASE), "S" (CONFIG_CARBASE), "c" (CONFIG_CARSIZE/4): "memory");
__asm__ __volatile__ ("wbinvd\n");
banner(BIOS_DEBUG, "Disable_car: done wbinvd");
banner(BIOS_DEBUG, "disable_car: done");