Fix IO memory access .. SB128 driver makes noises in VMWare - CMI is untested (Curren...
[AROS.git] / arch / all-mingw32 / kernel / leaveinterrupt_i386.s
blob0f2e3004d2086cb8b78866cddfd07fb626261d54
1 .globl _core_LeaveInterrupt
3 # Note that we first get all the values from struct LeaveInterruptContext
4 # and only then enable interrupts. After enabling interrupts our structure
5 # can be reused by another process.
6 # We are already out of Windows exception and running on task's stack,
7 # so it's okay to play with stack here.
9 _core_LeaveInterrupt:
10 pushl 0(%eax) # Push real return address
11 pushl 4(%eax) # Push real eax contents
12 movl $1, _Ints_Enabled # Now enable interrupts
13 popl %eax # Restore eax and leave
14 ret