4 * This must match io.h.
6 #define VectorSYSCALL 0x40
9 * Used to get to the first process:
10 * set up an interrupt return frame and IRET to user level.
13 PUSHL $(UDSEL) /* old ss */
14 MOVL sp+0(FP), AX /* old sp */
16 MOVL $0x200, AX /* interrupt enable flag */
17 PUSHL AX /* old flags */
18 PUSHL $(UESEL) /* old cs */
19 PUSHL $(UTZERO+32) /* old pc */
28 * This is merely _strayintr from l.s optimised to vector
29 * to syscall() without going through trap().
31 TEXT _syscallintr(SB), $0
32 PUSHL $VectorSYSCALL /* trap type */
51 ADDL $8, SP /* pop error code and trap type */