Files
haiku-beta6/src/system/kernel/arch
Jérôme Duval bc5570ae60 kernel/x86: set initial user thread IOPL to zero
User threads aren't supposed to be able to adjust the interrupt flag (IF). A few
apps for instance DOSBox would just use the popf instruction and disable the
flag, expecting the change to be ignored.

Quote from the Intel manual:
"The interrupt flag (IF) is altered only when executing at a level at least as
privileged as the IOPL. If a POPF/POPFD instruction is executed with
insufficient privilege, an exception does not occur, but the privileged bits
do not change."

fix #14711

Change-Id: I0519312c1151a1dd76541f60283c6c210a5b21a6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4046
Reviewed-by: Adrien Destugues <[email protected]>
2021-06-04 15:56:33 +00:00
..
2020-09-15 20:42:14 +00:00
2018-02-10 19:34:43 +01:00
2020-09-15 20:42:14 +00:00
2021-01-08 13:26:02 +01:00
2021-01-01 22:10:43 +00:00