Changeset cfd6efd2 in mainline


Ignore:
Timestamp:
2005-08-24T12:33:38Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
361635c
Parents:
6e787c4
Message:

Do not allow red area on stack in kernel mode.
Small updates for AMD64 memory layout.

Location:
arch/amd64
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/Makefile.inc

    r6e787c4 rcfd6efd2  
    1111DEFS=-DARCH=$(ARCH)
    1212CPPFLAGS=$(DEFS) -nostdinc -I../include
    13 CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fno-unwind-tables -Wmissing-prototypes -Werror -O3 -march=opteron -m64 -mcmodel=kernel
     13CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fno-unwind-tables -Wmissing-prototypes -Werror -O3 -march=opteron -m64 -mcmodel=kernel -mno-red-zone
    1414LFLAGS=-M -T ../arch/amd64/_link.ld
    1515
  • arch/amd64/include/mm/page.h

    r6e787c4 rcfd6efd2  
    3636#define PAGE_SIZE       FRAME_SIZE
    3737
    38 #define KA2PA(x)        (((__address) (x)) - 0x80000000)
    39 #define PA2KA(x)        (((__address) (x)) + 0x80000000)
     38#define KA2PA(x)        (((__address) (x)) + 0x80000000)
     39#define PA2KA(x)        (((__address) (x)) - 0x80000000)
    4040
    4141#define PTL0_INDEX_ARCH(vaddr)          0
  • arch/amd64/include/mm/vm.h

    r6e787c4 rcfd6efd2  
    3232#include <arch/types.h>
    3333
    34 #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
     34#define KERNEL_ADDRESS_SPACE_START_ARCH         (__address) 0xffffffff80000000
     35#define KERNEL_ADDRESS_SPACE_END_ARCH           (__address) 0xffffffffffffffff
     36#define USER_ADDRESS_SPACE_START_ARCH           (__address) 0x0000000000000000
     37#define USER_ADDRESS_SPACE_END_ARCH             (__address) 0x00008fffffffffff
    3838
    3939#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))
    4141#define UDATA_ADDRESS_ARCH      0x21000000
    4242
Note: See TracChangeset for help on using the changeset viewer.