Changeset bfb87df in mainline
- Timestamp:
- 2006-02-09T17:02:36Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8f00329
- Parents:
- 874878a
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/include/interrupt.h
r874878a rbfb87df 72 72 extern void syscall(int n, void *stack); 73 73 extern void tlb_shootdown_ipi(int n, void *stack); 74 extern void wakeup_ipi(int n, void *stack);75 74 76 75 extern void trap_virtual_enable_irqs(__u16 irqmask); -
arch/amd64/include/mm/page.h
r874878a rbfb87df 102 102 1<<PAGE_READ_SHIFT | 103 103 p->writeable<<PAGE_WRITE_SHIFT | 104 (!p->no_execute)<<PAGE_EXEC_SHIFT 104 (!p->no_execute)<<PAGE_EXEC_SHIFT | 105 p->global<<PAGE_GLOBAL_SHIFT 105 106 ); 106 107 } … … 123 124 p->writeable = (flags & PAGE_WRITE) != 0; 124 125 p->no_execute = (flags & PAGE_EXEC) == 0; 126 p->global = (flags & PAGE_GLOBAL) != 0; 125 127 } 126 128 -
arch/amd64/src/amd64.c
r874878a rbfb87df 122 122 exc_register(VECTOR_TLB_SHOOTDOWN_IPI, "tlb_shootdown", 123 123 tlb_shootdown_ipi); 124 exc_register(VECTOR_WAKEUP_IPI, "wakeup_ipi", wakeup_ipi);125 124 #endif /* CONFIG_SMP */ 126 125 } -
arch/amd64/src/interrupt.c
r874878a rbfb87df 142 142 } 143 143 144 void wakeup_ipi(int n, void *stack)145 {146 trap_virtual_eoi();147 }148 149 144 void trap_virtual_enable_irqs(__u16 irqmask) 150 145 { -
arch/amd64/src/mm/page.c
r874878a rbfb87df 42 42 { 43 43 __address cur; 44 int flags; 44 45 45 46 if (config.cpu_active == 1) { … … 50 51 */ 51 52 for (cur = 0; cur < last_frame; cur += FRAME_SIZE) { 52 page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, PAGE_CACHEABLE | PAGE_EXEC); 53 flags = PAGE_CACHEABLE | PAGE_EXEC; 54 if ((PA2KA(cur) >= config.base) && (PA2KA(cur) < config.base + config.kernel_size)) 55 flags |= PAGE_GLOBAL; 56 page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags); 53 57 } 54 58 exc_register(14, "page_fault", (iroutine)page_fault); -
arch/ia32/include/interrupt.h
r874878a rbfb87df 60 60 #define VECTOR_SYSCALL (IVT_FREEBASE+0) 61 61 #define VECTOR_TLB_SHOOTDOWN_IPI (IVT_FREEBASE+1) 62 #define VECTOR_WAKEUP_IPI (IVT_FREEBASE+2)63 62 64 63 extern void (* disable_irqs_function)(__u16 irqmask); … … 73 72 extern void syscall(int n, void *stack); 74 73 extern void tlb_shootdown_ipi(int n, void *stack); 75 extern void wakeup_ipi(int n, void *stack);76 74 77 75 extern void trap_virtual_enable_irqs(__u16 irqmask); -
arch/ia32/include/mm/page.h
r874878a rbfb87df 86 86 unsigned accessed : 1; 87 87 unsigned dirty : 1; 88 unsigned : 2; 88 unsigned pat : 1; 89 unsigned global : 1; 89 90 unsigned avl : 3; 90 91 unsigned frame_address : 20; … … 101 102 1<<PAGE_READ_SHIFT | 102 103 p->writeable<<PAGE_WRITE_SHIFT | 103 1<<PAGE_EXEC_SHIFT 104 1<<PAGE_EXEC_SHIFT | 105 p->global<<PAGE_GLOBAL_SHIFT 104 106 ); 105 107 } … … 113 115 p->uaccessible = (flags & PAGE_USER) != 0; 114 116 p->writeable = (flags & PAGE_WRITE) != 0; 117 p->global = (flags & PAGE_GLOBAL) != 0; 115 118 } 116 119 -
arch/ia32/src/ia32.c
r874878a rbfb87df 66 66 exc_register(VECTOR_TLB_SHOOTDOWN_IPI, "tlb_shootdown", 67 67 tlb_shootdown_ipi); 68 exc_register(VECTOR_WAKEUP_IPI, "wakeup_ipi", wakeup_ipi);69 68 #endif /* CONFIG_SMP */ 70 69 } -
arch/ia32/src/interrupt.c
r874878a rbfb87df 128 128 } 129 129 130 void wakeup_ipi(int n, void *stack)131 {132 trap_virtual_eoi();133 }134 135 130 void trap_virtual_enable_irqs(__u16 irqmask) 136 131 { -
arch/ia32/src/mm/page.c
r874878a rbfb87df 46 46 { 47 47 __address cur; 48 int flags; 48 49 49 50 if (config.cpu_active == 1) { … … 53 54 * PA2KA(identity) mapping for all frames until last_frame. 54 55 */ 55 for (cur = 0; cur < last_frame; cur += FRAME_SIZE) 56 page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, PAGE_CACHEABLE); 56 for (cur = 0; cur < last_frame; cur += FRAME_SIZE) { 57 flags = PAGE_CACHEABLE; 58 if ((PA2KA(cur) >= config.base) && (PA2KA(cur) < config.base + config.kernel_size)) 59 flags |= PAGE_GLOBAL; 60 page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags); 61 } 57 62 58 63 exc_register(14, "page_fault", page_fault); -
arch/mips32/include/mm/page.h
r874878a rbfb87df 100 100 (1<<PAGE_READ_SHIFT) | 101 101 ((p->w)<<PAGE_WRITE_SHIFT) | 102 (1<<PAGE_EXEC_SHIFT) 102 (1<<PAGE_EXEC_SHIFT) | 103 p->lo.g<<PAGE_GLOBAL_SHIFT 103 104 ); 104 105 … … 111 112 p->lo.c = (flags & PAGE_CACHEABLE) != 0 ? PAGE_CACHEABLE_EXC_WRITE : PAGE_UNCACHED; 112 113 p->lo.v = !(flags & PAGE_NOT_PRESENT); 114 p->lo.g = (flags & PAGE_GLOBAL) != 0; 113 115 p->w = (flags & PAGE_WRITE) != 0; 114 116 } -
contrib/conf/msim.conf
r874878a rbfb87df 6 6 7 7 add rwm firstmem 0x0 1M load "/dev/zero" 8 add rwm mainmem 0x00100000 16M load "kernel .bin"9 add rom startmem 0x1fc00000 1k load " load.bin"10 add rwm init 0x20000000 1M load " init8 add rwm mainmem 0x00100000 16M load "kernel/kernel.bin" 9 add rom startmem 0x1fc00000 1k load "kernel/load.bin" 10 add rwm init 0x20000000 1M load "uspace/init/init" 11 11 12 12 add dprinter printer 0x10000000
Note:
See TracChangeset
for help on using the changeset viewer.