Differential D56005 Authored by kib on Fri, Mar 20, 11:28 PM. Tags None Referenced Files
Subscribers
Details
Diff Detail
Event Timelinekib created this revision.Fri, Mar 20, 11:28 PM kib requested review of this revision.Fri, Mar 20, 11:28 PM ehem_freebsd_m5p.com requested changes to this revision.Sat, Mar 21, 11:26 PM Comment ActionsThis is wrong. Specifically is the MI <=> MD interface whereas is the x86 assembly-language <=> C interface. Mixing the two together would be bad. Why are you proposing this? The function isn't declared in a header since the assembler doesn't understand those. If you were thinking of calling from C that is almost certainly a Bad Idea. The function which needs to be called is , but that function must conform to the interface (since it needs to be MI and be called as a driver-filter). Are you perhaps aiming to merge all the assembly-language <=> C bridges? You might want to look at Github #1748. It appears 's interface originated on x86 with minimal variation between PICs and cascading PICs being rare (aside from the pair of 8250s, but those are handled by the same driver). Whereas the moment cascading PICs appear 's interface really needs fixing. This revision now requires changes to proceed.Sat, Mar 21, 11:26 PM kib added a comment.Sat, Mar 21, 11:29 PM Comment Actions
It is C function, it can be called from C. What is the problem?
ehem_freebsd_m5p.com added a comment.Sun, Mar 22, 12:34 AM Comment Actions
This is the wrong header to have that in. Most of the headers are at least semi-private so anything outside of the Xen interface shouldn't be including them. I'm unsure of the proper place to put such a declaration, but is certainly wrong. Since this isn't used internally by the Xen interface the two headers I notice are and . Since this is a semi-internal PIC function almost seems the best of those. Comment Actions Move the proto to apicvar.h. ehem_freebsd_m5p.com accepted this revision.Sun, Mar 22, 1:19 AM Comment ActionsThis is still a distortion, but far less of one than having it in . Naturally this means header adjustment elsewhere. This revision is now accepted and ready to land.Sun, Mar 22, 1:19 AM royger added a comment.EditedMon, Mar 23, 10:23 AM Comment ActionsIt might be easier if I just switch Xen to use like mentioned in the other review. That would prevent more Xen stuff leaking into generic headers which is not specially nice. kib added a comment.Mon, Mar 23, 6:23 PM Comment Actions
I agree, please do.
Revision Contents
Diff 174095 |
