Changes in boot/arch/ppc32/loader/asm.h [e731b0d:df4ed85] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ppc32/loader/asm.h
re731b0d rdf4ed85 30 30 #define BOOT_ppc32_ASM_H_ 31 31 32 #define PAGE_ WIDTH 1233 #define PAGE_ SIZE (1 << PAGE_WIDTH)32 #define PAGE_SIZE 4096 33 #define PAGE_WIDTH 12 34 34 35 #define TRANS_SIZE 36 #define BOOT_OFFSET 0x800035 #define TRANS_SIZE 1024 36 #define TRANS_ITEM_SIZE 4 37 37 38 #define BALLOC_MAX_SIZE (128 * 1024)38 #define KERNEL_START_ADDR 0x80008000 39 39 40 40 #ifndef __ASM__ 41 41 42 #include "types.h" 43 #include "main.h" 44 #include "ofwarch.h" 42 #define memcpy(dst, src, cnt) __builtin_memcpy((dst), (src), (cnt)) 45 43 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]; 44 extern void *trans[TRANS_SIZE]; 50 45 51 46 extern void halt(); 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)); 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)); 54 48 extern void real_mode(); 55 56 #else57 58 #define PA2KA(x) ((x) + 0x80000000)59 49 60 50 #endif
Note:
See TracChangeset
for help on using the changeset viewer.