mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
[metal] Fix bug: do not initialize IDT & TSS if unneeded (#654)
libc/intrin/interrupts.S should not be linked in unless an IDT (or TSS) is explicitly requested somewhere (i.e. it should probably not be a mandatory module).
This commit is contained in:
parent
7a06760e6f
commit
31dab8a75d
3 changed files with 11 additions and 5 deletions
|
@ -93,9 +93,9 @@ __excep0_isr:
|
|||
ezlea .excep_msg,di # stack should be 16-byte aligned now
|
||||
xor %eax,%eax # kprintf is variadic, remember to
|
||||
# pass no. of vector regs. used (= 0)
|
||||
.weak kprintf # weakly link kprintf() because this
|
||||
ezlea kprintf,bx # module is a mandatory dependency
|
||||
test %ebx,%ebx # and we want to keep life.com tiny
|
||||
.weak kprintf # weakly link kprintf() because we
|
||||
ezlea kprintf,bx # want to keep life.com tiny
|
||||
test %ebx,%ebx
|
||||
jz 8f
|
||||
call *%rbx # print error message
|
||||
8: cli
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue