Changeset 20d50a1 in mainline for arch/ia32/src
- Timestamp:
- 2006-01-13T13:02:45Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f9425006
- Parents:
- 0369911
- Location:
- arch/ia32/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/interrupt.c
r0369911 r20d50a1 36 36 #include <arch/asm.h> 37 37 #include <mm/tlb.h> 38 #include <mm/as.h> 38 39 #include <arch.h> 39 40 #include <symtab.h> … … 100 101 void page_fault(int n, void *stack) 101 102 { 102 PRINT_INFO_ERRCODE(stack); 103 printf("page fault address: %X\n", read_cr2()); 104 panic("page fault\n"); 103 __address page; 104 105 page = read_cr2(); 106 if (!as_page_fault(page)) { 107 PRINT_INFO_ERRCODE(stack); 108 printf("page fault address: %X\n", page); 109 panic("page fault\n"); 110 } 105 111 } 106 112 -
arch/ia32/src/mm/frame.c
r0369911 r20d50a1 29 29 #include <mm/frame.h> 30 30 #include <arch/mm/frame.h> 31 #include <mm/ vm.h>31 #include <mm/as.h> 32 32 #include <config.h> 33 33 #include <arch/boot/boot.h> -
arch/ia32/src/userspace.c
r0369911 r20d50a1 32 32 #include <arch.h> 33 33 #include <proc/thread.h> 34 #include <mm/ vm.h>34 #include <mm/as.h> 35 35 36 36 … … 48 48 __asm__ volatile ( 49 49 /* CLNT */ 50 "pushfl ;"51 "pop %%eax ;"52 "and $0x FFFFBFFF,%%eax;"53 "push %%eax ;"54 "popfl ;"50 "pushfl\n" 51 "pop %%eax\n" 52 "and $0xffffbfff,%%eax\n" 53 "push %%eax\n" 54 "popfl\n" 55 55 56 56 "pushl %0\n" … … 65 65 66 66 /* Unreachable */ 67 for(;;); 67 for(;;) 68 ; 68 69 }
Note:
See TracChangeset
for help on using the changeset viewer.