Changeset 45d6add in mainline
- Timestamp:
- 2006-03-13T19:58:52Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 25d7709
- Parents:
- 6d9c49a
- Location:
- arch
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/include/mm/page.h
r6d9c49a r45d6add 34 34 35 35 #ifndef __ASM__ 36 # 37 # 36 # define KA2PA(x) (((__address) (x)) - 0x80000000) 37 # define PA2KA(x) (((__address) (x)) + 0x80000000) 38 38 #else 39 # 40 # 39 # define KA2PA(x) ((x) - 0x80000000) 40 # define PA2KA(x) ((x) + 0x80000000) 41 41 #endif 42 42 -
arch/ppc32/_link.ld.in
r6d9c49a r45d6add 8 8 9 9 #define __ASM__ 10 #include <arch/boot/boot.h> 11 #include <arch/mm/page.h> 10 12 11 13 ENTRY(kernel_image_start) 12 14 13 15 SECTIONS { 14 .image 0x400000: AT (0x400000) {16 .image PA2KA(BOOT_OFFSET): AT (0) { 15 17 ktext_start = .; 16 18 *(K_TEXT_START) … … 31 33 LONG(kdata_end - kdata_start); 32 34 hardcoded_load_address = .; 33 LONG( 0x400000);35 LONG(PA2KA(BOOT_OFFSET)); 34 36 *(.bss); /* uninitialized static variables */ 35 37 *(COMMON); /* global variables */ -
arch/ppc32/include/mm/as.h
r6d9c49a r45d6add 32 32 #include <arch/types.h> 33 33 34 #define KERNEL_ADDRESS_SPACE_START_ARCH ( __address) 0x0000000035 #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 USTACK_ADDRESS_ARCH (0x7fffffff-(PAGE_SIZE-1)) -
arch/ppc32/include/mm/page.h
r6d9c49a r45d6add 30 30 #define __ppc32_PAGE_H__ 31 31 32 #include <mm/page.h>33 #include <arch/mm/frame.h>34 #include <arch/types.h>35 36 32 #define PAGE_WIDTH FRAME_WIDTH 37 33 #define PAGE_SIZE FRAME_SIZE 38 34 39 #define KA2PA(x) ((__address)(x)) 40 #define PA2KA(x) ((__address)(x)) 35 #ifndef __ASM__ 36 # define KA2PA(x) (((__address) (x)) - 0x80000000) 37 # define PA2KA(x) (((__address) (x)) + 0x80000000) 38 #else 39 # define KA2PA(x) ((x) - 0x80000000) 40 # define PA2KA(x) ((x) + 0x80000000) 41 #endif 41 42 42 43 #define PTL0_ENTRIES_ARCH 0 … … 74 75 #define PTE_VALID_ARCH(p) 1 75 76 77 #ifndef __ASM__ 78 79 #include <mm/page.h> 80 #include <arch/mm/frame.h> 81 #include <arch/types.h> 82 76 83 extern void page_arch_init(void); 77 84 85 #endif /* __ASM__ */ 86 78 87 #endif
Note:
See TracChangeset
for help on using the changeset viewer.