Changeset 40ca402 in mainline


Ignore:
Timestamp:
2006-02-06T22:29:52Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dd4d6b0
Parents:
8a1da55
Message:

Userspace now starts executing correctly.

Location:
arch/amd64
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/include/mm/as.h

    r8a1da55 r40ca402  
    3535#define KERNEL_ADDRESS_SPACE_END_ARCH           (__address) 0xffffffffffffffff
    3636#define USER_ADDRESS_SPACE_START_ARCH           (__address) 0x0000000000000000
    37 #define USER_ADDRESS_SPACE_END_ARCH             (__address) 0x00008fffffffffff
     37#define USER_ADDRESS_SPACE_END_ARCH             (__address) 0x00007fffffffffff
    3838
    3939#define UTEXT_ADDRESS_ARCH      0x00001000
  • arch/amd64/src/userspace.c

    r8a1da55 r40ca402  
    5858                          "pushq %%rsi;"
    5959                          "iretq;"
    60                           : : "i" (gdtselector(UDATA_DES) | PL_USER), "i" (USTACK_ADDRESS+THREAD_STACK_SIZE), "r" (ipl), "i" (gdtselector(UTEXT_DES) | PL_USER), "i" (UTEXT_ADDRESS));
     60                          : : "i" (gdtselector(UDATA_DES) | PL_USER),
     61                          "i" (USTACK_ADDRESS+THREAD_STACK_SIZE),
     62                          "r" (ipl),
     63                          "i" (gdtselector(UTEXT_DES) | PL_USER),
     64                          "i" (UTEXT_ADDRESS));
    6165       
    6266        /* Unreachable */
Note: See TracChangeset for help on using the changeset viewer.