Changeset 7248e31 in mainline
- Timestamp:
- 2005-09-07T07:42:36Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 24bd23a
- Parents:
- 0b512a8
- Location:
- arch/ia32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/include/mm/vm.h
r0b512a8 r7248e31 32 32 #include <arch/types.h> 33 33 34 #define KERNEL_ADDRESS_SPACE_START_ARCH ( __address) 0x8000000035 #define KERNEL_ADDRESS_SPACE_END_ARCH ( __address) 0xffffffff36 #define USER_ADDRESS_SPACE_START_ARCH ( __address) 0x0000000037 #define USER_ADDRESS_SPACE_END_ARCH ( __address) 0x7fffffff34 #define KERNEL_ADDRESS_SPACE_START_ARCH ((__address) 0x80000000) 35 #define KERNEL_ADDRESS_SPACE_END_ARCH ((__address) 0xffffffff) 36 #define USER_ADDRESS_SPACE_START_ARCH ((__address) 0x00000000) 37 #define USER_ADDRESS_SPACE_END_ARCH ((__address) 0x7fffffff) 38 38 39 39 #define UTEXT_ADDRESS_ARCH 0x00001000 40 #define USTACK_ADDRESS_ARCH ( 0x7fffffff-(PAGE_SIZE-1))40 #define USTACK_ADDRESS_ARCH (USER_ADDRESS_SPACE_END_ARCH-(PAGE_SIZE-1)) 41 41 #define UDATA_ADDRESS_ARCH 0x21000000 42 42 -
arch/ia32/src/userspace.c
r0b512a8 r7248e31 46 46 pri = cpu_priority_high(); 47 47 48 __asm__ volatile ( ""49 48 __asm__ volatile ( 49 /* CLNT */ 50 50 "pushfl;" 51 51 "pop %%eax;" … … 60 60 "pushl %4\n" 61 61 "iret" 62 : : "i" (selector(UDATA_DES) | PL_USER), "i" (USTACK_ADDRESS+(THREAD_STACK_SIZE-1)), "r" (pri), "i" (selector(UTEXT_DES) | PL_USER), "i" (UTEXT_ADDRESS)); 62 : 63 : "i" (selector(UDATA_DES) | PL_USER), "r" (USTACK_ADDRESS+(THREAD_STACK_SIZE)), "r" (pri), "i" (selector(UTEXT_DES) | PL_USER), "i" (UTEXT_ADDRESS) 64 : "eax"); 63 65 64 66 /* Unreachable */
Note:
See TracChangeset
for help on using the changeset viewer.