post code: Replaced hard-coded post code with macro
authorVikram Narayanan <vikram186@gmail.com>
Sun, 22 Jan 2012 20:14:44 +0000 (01:44 +0530)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Mon, 23 Jan 2012 21:50:56 +0000 (22:50 +0100)
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>
src/cpu/x86/cache/cache.c
src/include/console/post_codes.h

index a7cba4ac5ca088dd8c52aa1c9bf082c103600a45..1df9e08014d11a41130d53d5b2acee1d4507d8f5 100644 (file)
@@ -3,8 +3,7 @@
 
 void x86_enable_cache(void)
 {
-       post_code(0x60);
+       post_code(POST_ENABLING_CACHE);
        printk(BIOS_INFO, "Enabling cache\n");
        enable_cache();
 }
-
index a72da69bd588c782c8314f7b24dab1816cfc9024..1d12e5ad3f223cc49117a9d968425680dc7f57b5 100644 (file)
  */
 #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
  *