Changeset 1787e527 in mainline for boot/arch/ppc32/loader/asm.h
- Timestamp:
- 2009-11-16T21:22:54Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5ebdf94
- Parents:
- fcbd1be (diff), 9c70ed6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ppc32/loader/asm.h
rfcbd1be r1787e527 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.