Changeset f4a61ef in mainline
- Timestamp:
- 2005-08-20T21:52:58Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3526da33
- Parents:
- b07769b6
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/asm.S
rb07769b6 rf4a61ef 380 380 mov %ax,%gs; 381 381 0: 382 # movl $0xdeadbeaf, %eax 383 int $48 384 cli; 385 sti; 382 int $48 386 383 jmp 0b 387 384 # not reached -
arch/ia32/src/interrupt.c
rb07769b6 rf4a61ef 83 83 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); 84 84 printf("stack: %X, %X, %X, %X\n", stack[4], stack[5], stack[6], stack[7]); 85 //panic("general protection fault\n");85 panic("general protection fault\n"); 86 86 stack[1]++; 87 87 } -
src/mm/vm.c
rb07769b6 rf4a61ef 49 49 { 50 50 vm_t *m; 51 51 52 52 m = (vm_t *) malloc(sizeof(vm_t)); 53 53 if (m) { … … 59 59 * It is either passed one or it has to allocate and set one up. 60 60 */ 61 if (!(m->ptl0 = ptl0)) { 61 m->ptl0 = ptl0; 62 if (!m->ptl0) { 62 63 pte_t *src_ptl0, *dst_ptl0; 63 64 64 src_ptl0 = (pte_t *) PA2KA( GET_PTL0_ADDRESS());65 src_ptl0 = (pte_t *) PA2KA((__address) GET_PTL0_ADDRESS()); 65 66 dst_ptl0 = (pte_t *) frame_alloc(FRAME_KA | FRAME_PANIC); 66 memsetb((__address) dst_ptl0, PAGE_SIZE, 0); 67 memcopy((__address) &src_ptl0[KAS_START_INDEX], (__address) &dst_ptl0[KAS_START_INDEX], KAS_INDICES*sizeof(pte_t)); 68 m->ptl0 = (pte_t *) KA2PA(dst_ptl0); 67 // memsetb((__address) dst_ptl0, PAGE_SIZE, 0); 68 // memcopy((__address) &src_ptl0[KAS_START_INDEX], (__address) &dst_ptl0[KAS_START_INDEX], KAS_INDICES*sizeof(pte_t)); 69 memcopy(PA2KA((__address) GET_PTL0_ADDRESS()), (__address) dst_ptl0, PAGE_SIZE); 70 m->ptl0 = (pte_t *) KA2PA((__address) dst_ptl0); 69 71 } 70 72 } 71 73 72 74 return m; 73 75 }
Note:
See TracChangeset
for help on using the changeset viewer.