Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/ppc32/loader/asm.h

    re731b0d rdf4ed85  
    3030#define BOOT_ppc32_ASM_H_
    3131
    32 #define PAGE_WIDTH  12
    33 #define PAGE_SIZE   (1 << PAGE_WIDTH)
     32#define PAGE_SIZE 4096
     33#define PAGE_WIDTH 12
    3434
    35 #define TRANS_SIZE   1024
    36 #define BOOT_OFFSET  0x8000
     35#define TRANS_SIZE 1024
     36#define TRANS_ITEM_SIZE 4
    3737
    38 #define BALLOC_MAX_SIZE  (128 * 1024)
     38#define KERNEL_START_ADDR 0x80008000
    3939
    4040#ifndef __ASM__
    4141
    42 #include "types.h"
    43 #include "main.h"
    44 #include "ofwarch.h"
     42#define memcpy(dst, src, cnt)  __builtin_memcpy((dst), (src), (cnt))
    4543
    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];
     44extern void *trans[TRANS_SIZE];
    5045
    5146extern 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));
     47extern 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));
    5448extern void real_mode();
    55 
    56 #else
    57 
    58 #define PA2KA(x)  ((x) + 0x80000000)
    5949
    6050#endif
Note: See TracChangeset for help on using the changeset viewer.