Rev 31 | Rev 68 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 31 | Rev 33 | ||
---|---|---|---|
Line 84... | Line 84... | ||
84 | { |
84 | { |
85 | printf("page fault address: %X\n", cpu_read_cr2()); |
85 | printf("page fault address: %X\n", cpu_read_cr2()); |
86 | printf("stack[0]=%X, %%eip=%X, %%cs=%X, flags=%X\n", stack[0], stack[1], stack[2], stack[3]); |
86 | printf("stack[0]=%X, %%eip=%X, %%cs=%X, flags=%X\n", stack[0], stack[1], stack[2], stack[3]); |
87 | printf("%%eax=%L, %%ebx=%L, %%ecx=%L, %%edx=%L,\n%%edi=%L, %%esi=%L, %%ebp=%L, %%esp=%L\n", stack[-2], stack[-5], stack[-3], stack[-4], stack[-9], stack[-8], stack[-1], stack); |
87 | printf("%%eax=%L, %%ebx=%L, %%ecx=%L, %%edx=%L,\n%%edi=%L, %%esi=%L, %%ebp=%L, %%esp=%L\n", stack[-2], stack[-5], stack[-3], stack[-4], stack[-9], stack[-8], stack[-1], stack); |
88 | printf("stack: %X, %X, %X, %X\n", stack[4], stack[5], stack[6], stack[7]); |
88 | printf("stack: %X, %X, %X, %X\n", stack[4], stack[5], stack[6], stack[7]); |
89 | panic("page fault\n"); |
89 | printf("page fault\n"); |
- | 90 | cpu_halt(); |
|
90 | } |
91 | } |
91 | 92 | ||
92 | void syscall(__u8 n, __u32 stack[]) |
93 | void syscall(__u8 n, __u32 stack[]) |
93 | { |
94 | { |
94 | printf("cpu%d: syscall\n", CPU->id); |
95 | printf("cpu%d: syscall\n", CPU->id); |