summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-11-20 22:09:15 +0100
committerPatrick Georgi <pgeorgi@google.com>2019-11-29 09:20:52 +0000
commit9e1ea54b1859ab24a073eb981aa5163b5f2b0cfd (patch)
tree7eb41825e5566fe10918c7180e93d2be389ba1fc /src/arch
parent48ae50c3d278f414154f4ef31f581294b4bc2c5e (diff)
arch/x86/exception.c: Drop CAR_GLOBAL_MIGRATION support
Change-Id: I9e0d62d45e5b11a0c2f0867633cde2378f305ec8 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37048 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/exception.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/arch/x86/exception.c b/src/arch/x86/exception.c
index b88f4a7553..a599e798c1 100644
--- a/src/arch/x86/exception.c
+++ b/src/arch/x86/exception.c
@@ -12,7 +12,6 @@
*/
#include <arch/cpu.h>
-#include <arch/early_variables.h>
#include <arch/exception.h>
#include <commonlib/helpers.h>
#include <console/console.h>
@@ -569,7 +568,7 @@ static const uintptr_t intr_entries[] = {
(uintptr_t)vec16, (uintptr_t)vec17, (uintptr_t)vec18, (uintptr_t)vec19,
};
-static struct intr_gate idt[ARRAY_SIZE(intr_entries)] __aligned(8) CAR_GLOBAL;
+static struct intr_gate idt[ARRAY_SIZE(intr_entries)] __aligned(8);
static inline uint16_t get_cs(void)
{
@@ -620,21 +619,19 @@ asmlinkage void exception_init(void)
{
int i;
uint16_t segment;
- struct intr_gate *gates;
segment = get_cs();
- gates = car_get_var_ptr(idt);
/* Initialize IDT. */
for (i = 0; i < ARRAY_SIZE(idt); i++) {
- gates[i].offset_0 = intr_entries[i];
- gates[i].segsel = segment;
- gates[i].flags = IGATE_FLAGS;
- gates[i].offset_1 = intr_entries[i] >> 16;
+ idt[i].offset_0 = intr_entries[i];
+ idt[i].segsel = segment;
+ idt[i].flags = IGATE_FLAGS;
+ idt[i].offset_1 = intr_entries[i] >> 16;
#if ENV_X86_64
- gates[i].offset_2 = intr_entries[i] >> 32;
+ idt[i].offset_2 = intr_entries[i] >> 32;
#endif
}
- load_idt(gates, sizeof(idt));
+ load_idt(idt, sizeof(idt));
}