Changeset 01cb210 in mainline for arch/ppc32/loader/asm.h


Ignore:
Timestamp:
2006-03-16T18:55:50Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1f330de
Parents:
d89c554
Message:

relocate kernel in real mode

File:
1 edited

Legend:

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

    rd89c554 r01cb210  
    3030#define __ASM_H__
    3131
    32 void flush_instruction_cache(void);
    33 void jump_to_kernel(void *code, void *memmap, void *real_mode) __attribute__((noreturn));
    34 void real_mode(void *code, void *memmap);
     32#define PAGE_SIZE 4096
     33#define PAGE_WIDTH 12
    3534
    36 #define memcpy(dst, src, cnt)  __builtin_memcpy((dst), (src), (cnt))
     35#define TRANS_SIZE 1024
     36#define TRANS_ITEM_SIZE 4
     37
     38#define KERNEL_START_ADDR 0x80002000
     39
     40#ifndef __ASM__
     41
     42extern void *trans[TRANS_SIZE];
     43
     44extern void halt();
     45extern void jump_to_kernel(void *memmap, void *trans, unsigned int cnt, void *real_mode) __attribute__((noreturn));
     46extern void real_mode();
    3747
    3848#endif
     49
     50#endif
Note: See TracChangeset for help on using the changeset viewer.