Rev 2918 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2918 | Rev 3424 | ||
|---|---|---|---|
| Line 110... | Line 110... | ||
| 110 | d->offset_16_31 = offset >> 16; |
110 | d->offset_16_31 = offset >> 16; |
| 111 | } |
111 | } |
| 112 | 112 | ||
| 113 | void tss_initialize(tss_t *t) |
113 | void tss_initialize(tss_t *t) |
| 114 | { |
114 | { |
| 115 | memsetb((uintptr_t) t, sizeof(struct tss), 0); |
115 | memsetb(t, sizeof(struct tss), 0); |
| 116 | } |
116 | } |
| 117 | 117 | ||
| 118 | /* |
118 | /* |
| 119 | * This function takes care of proper setup of IDT and IDTR. |
119 | * This function takes care of proper setup of IDT and IDTR. |
| 120 | */ |
120 | */ |
| Line 238... | Line 238... | ||
| 238 | void arch_reboot(void) |
238 | void arch_reboot(void) |
| 239 | { |
239 | { |
| 240 | preemption_disable(); |
240 | preemption_disable(); |
| 241 | ipl_t ipl = interrupts_disable(); |
241 | ipl_t ipl = interrupts_disable(); |
| 242 | 242 | ||
| 243 | memsetb((uintptr_t) idt, sizeof(idt), 0); |
243 | memsetb(idt, sizeof(idt), 0); |
| 244 | 244 | ||
| 245 | ptr_16_32_t idtr; |
245 | ptr_16_32_t idtr; |
| 246 | idtr.limit = sizeof(idt); |
246 | idtr.limit = sizeof(idt); |
| 247 | idtr.base = (uintptr_t) idt; |
247 | idtr.base = (uintptr_t) idt; |
| 248 | idtr_load(&idtr); |
248 | idtr_load(&idtr); |