Rev 115 | Rev 125 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 115 | Rev 117 | ||
---|---|---|---|
Line 113... | Line 113... | ||
113 | { |
113 | { |
114 | printf("page fault address: %X\n", read_cr2()); |
114 | printf("page fault address: %X\n", read_cr2()); |
115 | printf("stack[0]=%X, %%eip=%X, %%cs=%X, flags=%X\n", stack[0], stack[1], stack[2], stack[3]); |
115 | printf("stack[0]=%X, %%eip=%X, %%cs=%X, flags=%X\n", stack[0], stack[1], stack[2], stack[3]); |
116 | 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); |
116 | 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); |
117 | printf("stack: %X, %X, %X, %X\n", stack[4], stack[5], stack[6], stack[7]); |
117 | printf("stack: %X, %X, %X, %X\n", stack[4], stack[5], stack[6], stack[7]); |
118 | printf("page fault\n"); |
118 | panic("page fault\n"); |
119 | cpu_halt(); |
- | |
120 | } |
119 | } |
121 | 120 | ||
122 | void syscall(__u8 n, __u32 stack[]) |
121 | void syscall(__u8 n, __u32 stack[]) |
123 | { |
122 | { |
124 | printf("cpu%d: syscall\n", CPU->id); |
123 | printf("cpu%d: syscall\n", CPU->id); |