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