4 typedef unsigned reg_t
; /* machine register */
5 typedef reg_t segdesc_t
;
7 /* The stack frame layout is determined by the software, but for efficiency
8 * it is laid out so the assembly code to use it is as simple as possible.
9 * 80286 protected mode and all real modes use the same frame, built with
10 * 16-bit registers. Real mode lacks an automatic stack switch, so little
11 * is lost by using the 286 frame for it. The 386 frame differs only in
12 * having 32-bit registers and more segment registers. The same names are
13 * used for the larger registers to avoid differences in the code.
16 u16_t gs
; /* last item pushed by save */
20 reg_t di
; /* di through cx are not accessed in C */
21 reg_t si
; /* order is to match pusha/popa */
23 reg_t st
; /* hole for another copy of sp */
27 reg_t retreg
; /* ax and above are all pushed by save */
28 reg_t retadr
; /* return address for assembly code save() */
29 reg_t pc
; /* ^ last item pushed by interrupt */
33 reg_t ss
; /* these are pushed by CPU during interrupt */
36 #endif /* #ifndef STACK_FRAME_H */