#14711: [kernel] crashes by running Settlers game in DOSBox
-----------------------------+----------------------------
Reporter: diver | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: System/Kernel | Version: R1/Development
Resolution: | Keywords:
Blocked By: 14714 | Blocking: 14017
Has a Patch: 0 | Platform: x86
-----------------------------+----------------------------
Comment (by mmlr):
As discussed on IRC, the panic states that interrupts were disabled at
fault time, i.e. iframe flags has the interrupt flag cleared, not that
they are disabled when entering the handler.
Interrupts are supposed to be disabled at/by the int_bottom_user and stay
disabled into the handler functions, as the comment in the x86 version
states. The pagefault handler reenables them after doing its initial
checks.
The difference between x86 and x86_64 is that the latter always uses
syscall/sysret instead of possibly using legacy software interrupts and
the mask MSR includes the interrupt flag bit. Hence in x86_64 interrupts
are always already disabled when reaching int_bottom_user and there is no
need for disabling them there through cli.
--
Ticket URL: <https://dev.haiku-os.org/ticket/14711#comment:8>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.