Changeset 31 for trunk/hal/x86_64
- Timestamp:
- Jun 21, 2017, 8:53:24 AM (8 years ago)
- Location:
- trunk/hal/x86_64
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/hal_init.c
r29 r31 168 168 idt = (struct idt_seg *)&idtstore; 169 169 for (i = 0; i < NCPUIDT; i++) { 170 idt_set_seg(&idt[i], x86_traps[i], 0, SDT_SYS386IGT,170 idt_set_seg(&idt[i], (void *)x86_traps[i], 0, SDT_SYS386IGT, 171 171 SEL_KPL, GDT_FIXED_SEL(GDT_KCODE_SEL, SEL_KPL)); 172 172 } -
trunk/hal/x86_64/hal_segmentation.h
r29 r31 148 148 void lgdt(struct region_descriptor *); 149 149 void lidt(struct region_descriptor *); 150 void ltr(u _short);150 void ltr(uint16_t); 151 151 152 152 #endif /* !x86_ASM */ -
trunk/hal/x86_64/hal_trap.c
r29 r31 47 47 int trap_types = __arraycount(trap_type); 48 48 49 void x86_printf(char * msg); // XXX49 void x86_printf(char *s, ...); 50 50 51 51 /* … … 56 56 { 57 57 uint64_t trapno = tf->tf_trapno; 58 c har *buf;58 const char *buf; 59 59 60 60 if (trapno < trap_types) { … … 66 66 x86_printf("\n"); 67 67 x86_printf("****** FAULT OCCURRED ******\n"); 68 x86_printf( buf);68 x86_printf((char *)buf); 69 69 x86_printf("\n"); 70 70 x86_printf("****** FAULT OCCURRED ******\n"); -
trunk/hal/x86_64/x86_printf.c
r29 r31 42 42 static void x86_putc(char c) 43 43 { 44 size_t i;45 46 44 if (c == '\n') { 47 45 cons_ptr = roundup(cons_ptr, CONS_X_SIZE);
Note: See TracChangeset
for help on using the changeset viewer.