summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2016-04-13 17:15:36 -0700
committerFurquan Shaikh <furquan@google.com>2016-04-15 01:31:16 +0200
commitb3ee03c404e0a26dc338a26f7ce01ddb8dafaaec (patch)
treeea348fb302e73cfbfaf95d8222e3810850f78928 /src
parent44d009dc7f6c7795d094e1bffcca49e493594359 (diff)
bootblock_crt0: Use CR* macros from cpu/x86/cr.h
Instead of re-defining the macros, include cpu/x86/cr.h in bootblock_crt0.S to re-use already defined macros for accessing CR* flags. Change-Id: Idade02f7a6bc880c9aad3bfacd05ac57b6d04e44 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/14359 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Andrey Petrov <andrey.petrov@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/bootblock_crt0.S6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/arch/x86/bootblock_crt0.S b/src/arch/x86/bootblock_crt0.S
index 2ecddba06a..7292b8b17c 100644
--- a/src/arch/x86/bootblock_crt0.S
+++ b/src/arch/x86/bootblock_crt0.S
@@ -21,11 +21,7 @@
* GNU General Public License for more details.
*/
-#define CR0_MP (1 << 1)
-#define CR0_EM (1 << 2)
-
-#define CR4_OSFXSR (1 << 9)
-#define CR4_OSXMMEXCPT (1 << 10)
+#include <cpu/x86/cr.h>
/*
* Include the old code for reset vector and protected mode entry. That code has