[coreboot-gerrit] Change in coreboot[master]: libpayload/x86/exception: Add ability to handle user defined interrupts

Julius Werner (Code Review) gerrit at coreboot.org
Thu Aug 16 00:26:24 CEST 2018


Julius Werner has posted comments on this change. ( https://review.coreboot.org/28100 )

Change subject: libpayload/x86/exception: Add ability to handle user defined interrupts
......................................................................


Patch Set 1:

(2 comments)

https://review.coreboot.org/#/c/28100/1/payloads/libpayload/arch/x86/exception.c
File payloads/libpayload/arch/x86/exception.c:

https://review.coreboot.org/#/c/28100/1/payloads/libpayload/arch/x86/exception.c@165
PS1, Line 165: 	/* Handle user defined vectors */
Not opposed to adding this capability in general, but I don't think it would be a good fit for the APIC timer stuff if we want to add it architecturally. In that case, I'd just hardcode an interrupt number for that and check it here directly. There can be only one exception hook, and that's currently used by GDB, so if you'd implement the APIC stuff through there you'd be breaking that. (The alternative would be to expand the hook system to a linked list.)


https://review.coreboot.org/#/c/28100/1/payloads/libpayload/arch/x86/exception.c@167
PS1, Line 167: 		die_if(!hook || !hook(vec),
I don't think this does what you want, since even if hook(vec) returns true, you'll keep running through the code below and hit the vec >= EXC_COUNT. I think you meant to return here?



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

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id9c2583c7c3d9be4a06a25e546e64399f2b0620c
Gerrit-Change-Number: 28100
Gerrit-PatchSet: 1
Gerrit-Owner: Raul Rangel <rrangel at chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
Gerrit-CC: Julius Werner <jwerner at chromium.org>
Gerrit-CC: Martin Roth <martinroth at google.com>
Gerrit-Comment-Date: Wed, 15 Aug 2018 22:26:24 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180815/174f52f1/attachment.html>


More information about the coreboot-gerrit mailing list