Added support for compiling C++ files. It isn't included for all
[AROS.git] / arch / all-mingw32 / kernel / leaveinterrupt_i386.s
blob9e1e931fb39a621b4f6fce1ba17f41bcda5eeb86
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 movl 4(%eax), %eax # Restore real eax contents
12 movl $1, _Ints_Enabled # Now enable interrupts
13 ret