}
-PRIVATE u32_t phys_get32(addr)
-phys_bytes addr;
+PRIVATE u32_t phys_get32(phys_bytes addr)
{
u32_t v;
int r;
if(selector & TI) {
kprintf("LDT");
- if(index < 0 || index >= LDT_SIZE) {
+ if(index >= LDT_SIZE) {
kprintf("invalid index in ldt\n");
return;
}
desc = &pr->p_seg.p_ldt[index];
} else {
kprintf("GDT");
- if(index < 0 || index >= GDT_SIZE) {
+ if(index >= GDT_SIZE) {
kprintf("invalid index in gdt\n");
return;
}
/* copies an array of vectors to the IDT. The last vector must be zero filled */
_PROTOTYPE(void idt_copy_vectors, (struct gate_table_s * first));
-_PROTOTYPE(void idt_reload, (void));
EXTERN void * k_boot_stktop;
_PROTOTYPE(void tss_init, (struct tss_s * tss, void * kernel_stack, unsigned cpu));