summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorRichard Spiegel <richard.spiegel@amd.corp-partner.google.com>2018-08-07 14:35:54 -0700
committerMartin Roth <martinroth@google.com>2018-08-09 15:46:53 +0000
commitb1299c7aab328e92f32fd5b25408286260876b77 (patch)
treedc8ae2a919b1f2f84039c4b8b6cf3d16597469ab /src/arch
parent569711a4ffb375cea9569f733e6ea647037d4cbc (diff)
downloadcoreboot-b1299c7aab328e92f32fd5b25408286260876b77.tar.xz
arch/x86/exception.c: Remove double initialization
In procedure exception_init(), structure pointer gates is initialized twice. Remove one initialization. BUG=b:112253891 TEST=Build and boot grunt. Change-Id: If0280963e8b796f795e77a11569277dcf16b4507 Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com> Reviewed-on: https://review.coreboot.org/27948 Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/exception.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/exception.c b/src/arch/x86/exception.c
index f668ffcadb..201e835e16 100644
--- a/src/arch/x86/exception.c
+++ b/src/arch/x86/exception.c
@@ -622,7 +622,7 @@ asmlinkage void exception_init(void)
{
int i;
uint16_t segment;
- struct intr_gate *gates = car_get_var_ptr(idt);
+ struct intr_gate *gates;
segment = get_cs();
gates = car_get_var_ptr(idt);