Changeset b07769b6 in mainline for arch/ia32/src
- Timestamp:
- 2005-08-19T13:12:32Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f4a61ef
- Parents:
- 6a4177a
- Location:
- arch/ia32/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/drivers/ega.c
r6a4177a rb07769b6 30 30 #include <putchar.h> 31 31 #include <mm/page.h> 32 #include <arch/mm/page.h> 32 33 #include <synch/spinlock.h> 33 34 #include <arch/types.h> -
arch/ia32/src/mm/page.c
r6a4177a rb07769b6 37 37 #include <synch/spinlock.h> 38 38 #include <debug.h> 39 40 /*41 * Note.42 * This is the preliminary code for controlling paging mechanism on ia32. It is43 * needed by other parts of the kernel for its ability to map virtual addresses44 * to physical. SMP code relies on this feature. Other than that, this code is45 * by no means meant to implement virtual memory in terms of swapping pages in46 * and out.47 */48 39 49 40 __address bootstrap_dba; -
arch/ia32/src/pm.c
r6a4177a rb07769b6 35 35 #include <arch/context.h> 36 36 #include <panic.h> 37 #include <arch/mm/page.h> 37 38 38 39 /* … … 132 133 static void clean_IOPL_NT_flags(void) 133 134 { 134 135 asm 135 136 ( 136 137 "pushfl;" 137 138 "pop %%eax;" 138 139 "and $0xffff8fff,%%eax;" … … 148 149 static void clean_AM_flag(void) 149 150 { 150 151 asm 151 152 ( 152 153 "mov %%cr0,%%eax;" 153 154 "and $0xFFFBFFFF,%%eax;" 154 155 "mov %%eax,%%cr0;" … … 158 159 ); 159 160 } 160 161 162 163 164 161 165 162 void pm_init(void) -
arch/ia32/src/proc/scheduler.c
r6a4177a rb07769b6 35 35 { 36 36 CPU->arch.tss->esp0 = (__address) &THREAD->kstack[THREAD_STACK_SIZE-8]; 37 CPU->arch.tss->ss0 = selector(KDATA_DES); 37 CPU->arch.tss->ss0 = selector(KDATA_DES); 38 38 }
Note:
See TracChangeset
for help on using the changeset viewer.