[coreboot-gerrit] Change in coreboot[master]: arch/x86: Debug print to know core APIC ID incase of exception

Subrata Banik (Code Review) gerrit at coreboot.org
Wed Apr 18 08:26:37 CEST 2018


Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/25709


Change subject: arch/x86: Debug print to know core APIC ID incase of exception
......................................................................

arch/x86: Debug print to know core APIC ID incase of exception

BUG=b:74436746
BRANCH=none
TEST=Able to get APIC ID number for debug.

Change-Id: I2d3776c9259747197a5f2410032f9b03786407fb
Signed-off-by: Subrata Banik <subrata.banik at intel.com>
---
M src/arch/x86/exception.c
1 file changed, 3 insertions(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/25709/1

diff --git a/src/arch/x86/exception.c b/src/arch/x86/exception.c
index 36697c6..8473449 100644
--- a/src/arch/x86/exception.c
+++ b/src/arch/x86/exception.c
@@ -14,6 +14,7 @@
 #include <console/console.h>
 #include <console/streams.h>
 #include <string.h>
+#include <cpu/x86/lapic.h>
 
 #if IS_ENABLED(CONFIG_GDB_STUB)
 
@@ -496,10 +497,11 @@
 #else /* !CONFIG_GDB_STUB */
 #define MDUMP_SIZE 0x80
 	printk(BIOS_EMERG,
-		"Unexpected Exception: %d @ %02x:%08x - Halting\n"
+		"APIC %d Unexpected Exception: %d @ %02x:%08x - Halting\n"
 		"Code: %d eflags: %08x\n"
 		"eax: %08x ebx: %08x ecx: %08x edx: %08x\n"
 		"edi: %08x esi: %08x ebp: %08x esp: %08x\n",
+		(unsigned int)lapicid(),
 		info->vector, info->cs, info->eip,
 		info->error_code, info->eflags,
 		info->eax, info->ebx, info->ecx, info->edx,

-- 
To view, visit https://review.coreboot.org/25709
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d3776c9259747197a5f2410032f9b03786407fb
Gerrit-Change-Number: 25709
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subrata.banik at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180418/0b5e3e16/attachment.html>


More information about the coreboot-gerrit mailing list