Rev 224 | Rev 282 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 224 | Rev 273 | ||
---|---|---|---|
Line 114... | Line 114... | ||
114 | struct ptr_16_64 { |
114 | struct ptr_16_64 { |
115 | __u16 limit; |
115 | __u16 limit; |
116 | __u64 base; |
116 | __u64 base; |
117 | } __attribute__ ((packed)); |
117 | } __attribute__ ((packed)); |
118 | 118 | ||
- | 119 | struct ptr_16_32 { |
|
- | 120 | __u16 limit; |
|
- | 121 | __u32 base; |
|
- | 122 | } __attribute__ ((packed)); |
|
- | 123 | ||
119 | struct tss { |
124 | struct tss { |
120 | __u32 reserve1; |
125 | __u32 reserve1; |
121 | __u64 rsp0; |
126 | __u64 rsp0; |
122 | __u64 rsp1; |
127 | __u64 rsp1; |
123 | __u64 rsp2; |
128 | __u64 rsp2; |
Line 138... | Line 143... | ||
138 | 143 | ||
139 | extern struct descriptor gdt[]; |
144 | extern struct descriptor gdt[]; |
140 | extern struct idescriptor idt[]; |
145 | extern struct idescriptor idt[]; |
141 | 146 | ||
142 | extern struct ptr_16_64 gdtr; |
147 | extern struct ptr_16_64 gdtr; |
- | 148 | extern struct ptr_16_32 bsp_bootstrap_gdtr; |
|
- | 149 | extern struct ptr_16_32 ap_bootstrap_gdtr; |
|
143 | 150 | ||
144 | extern void pm_init(void); |
151 | extern void pm_init(void); |
145 | 152 | ||
146 | extern void gdt_tss_setbase(struct descriptor *d, __address base); |
153 | extern void gdt_tss_setbase(struct descriptor *d, __address base); |
147 | extern void gdt_tss_setlimit(struct descriptor *d, __u32 limit); |
154 | extern void gdt_tss_setlimit(struct descriptor *d, __u32 limit); |