post code: Replaced hard-coded post code with macro
Added a macro in the post code list, which replaces hard coded value in cpu/x86/cache/cache.c Change-Id: I27cb27827272584a8a17a41c111e2dc155196a97 Signed-off-by: Vikram Narayanan <vikram186@gmail.com> Reviewed-on: http://review.coreboot.org/572 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
committed by
Stefan Reinauer
parent
15370ca068
commit
0713ca3f84
3
src/cpu/x86/cache/cache.c
vendored
3
src/cpu/x86/cache/cache.c
vendored
@ -3,8 +3,7 @@
|
|||||||
|
|
||||||
void x86_enable_cache(void)
|
void x86_enable_cache(void)
|
||||||
{
|
{
|
||||||
post_code(0x60);
|
post_code(POST_ENABLING_CACHE);
|
||||||
printk(BIOS_INFO, "Enabling cache\n");
|
printk(BIOS_INFO, "Enabling cache\n");
|
||||||
enable_cache();
|
enable_cache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,6 +105,13 @@
|
|||||||
*/
|
*/
|
||||||
#define POST_CONSOLE_BOOT_MSG 0x40
|
#define POST_CONSOLE_BOOT_MSG 0x40
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Before enabling the cache
|
||||||
|
*
|
||||||
|
* Going to enable the cache
|
||||||
|
*/
|
||||||
|
#define POST_ENABLING_CACHE 0x60
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Devices have been enumerated
|
* \brief Devices have been enumerated
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user