Changeset 96e0748d in mainline for boot/arch/mips32/loader/main.h


Ignore:
Timestamp:
2009-02-17T22:47:27Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f89979b
Parents:
e662a5f
Message:

make arch_pre_main optional, don't force any specific prototype
simplify boot process
mips32: detect number of configured CPUs in msim

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/mips32/loader/main.h

    re662a5f r96e0748d  
    3030#define BOOT_mips32_MAIN_H_
    3131
    32 /** Align to the nearest higher address.
    33  *
    34  * @param addr  Address or size to be aligned.
    35  * @param align Size of alignment, must be power of 2.
    36  */
    37 #define ALIGN_UP(addr, align) (((addr) + ((align) - 1)) & ~((align) - 1))
     32#define CPUMAP               0x80001000
     33#define INITIAL_STACK        0x80002000
     34#define MSIM_DORDER_ADDRESS  0xb0000004
    3835
    39 #define TASKMAP_MAX_RECORDS 32
     36#define TASKMAP_MAX_RECORDS  32
     37#define CPUMAP_MAX_RECORDS   32
     38
     39#ifndef __ASM__
    4040
    4141typedef struct {
     
    4545
    4646typedef struct {
     47        unsigned int cpumap;
    4748        unsigned int cnt;
    4849        task_t tasks[TASKMAP_MAX_RECORDS];
     
    5354
    5455#endif
     56
     57#endif
Note: See TracChangeset for help on using the changeset viewer.