Changeset e731b0d in mainline for boot/arch/ppc32/loader/asm.h
- Timestamp:
- 2009-08-20T16:58:55Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b9c7425
- Parents:
- a11099f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ppc32/loader/asm.h
ra11099f re731b0d 30 30 #define BOOT_ppc32_ASM_H_ 31 31 32 #define PAGE_ SIZE 409633 #define PAGE_ WIDTH 1232 #define PAGE_WIDTH 12 33 #define PAGE_SIZE (1 << PAGE_WIDTH) 34 34 35 #define TRANS_SIZE 102436 #define TRANS_ITEM_SIZE 435 #define TRANS_SIZE 1024 36 #define BOOT_OFFSET 0x8000 37 37 38 #define KERNEL_START_ADDR 0x8000800038 #define BALLOC_MAX_SIZE (128 * 1024) 39 39 40 40 #ifndef __ASM__ 41 41 42 #define memcpy(dst, src, cnt) __builtin_memcpy((dst), (src), (cnt)) 42 #include "types.h" 43 #include "main.h" 44 #include "ofwarch.h" 43 45 44 extern void *trans[TRANS_SIZE]; 46 #define PA2KA(x) (((uintptr_t) (x)) + 0x80000000) 47 48 extern uint8_t balloc_base[BALLOC_MAX_SIZE]; 49 extern uintptr_t trans[TRANS_SIZE]; 45 50 46 51 extern void halt(); 47 extern void jump_to_kernel(void *bootinfo, unsigned int bootinfo_size, void *trans, unsigned int kernel_size, void *real_mode, void *fb, unsigned int scanline) __attribute__((noreturn)); 52 extern void jump_to_kernel(void *bootinfo, unsigned int bootinfo_size, 53 uintptr_t trans[], unsigned int kernel_size, void *real_mode) __attribute__((noreturn)); 48 54 extern void real_mode(); 55 56 #else 57 58 #define PA2KA(x) ((x) + 0x80000000) 49 59 50 60 #endif
Note:
See TracChangeset
for help on using the changeset viewer.