Changeset 96e0748d in mainline for kernel/arch/mips32/include/arch.h


Ignore:
Timestamp:
2009-02-17T22:47:27Z (15 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
  • kernel/arch/mips32/include/arch.h

    re662a5f r96e0748d  
    2727 */
    2828
    29 /** @addtogroup mips32 
     29/** @addtogroup mips32
    3030 * @{
    3131 */
     
    3636#define KERN_mips32_ARCH_H_
    3737
     38#define TASKMAP_MAX_RECORDS  32
     39#define CPUMAP_MAX_RECORDS   32
     40
     41#include <typedefs.h>
     42
     43extern count_t cpu_count;
     44
     45typedef struct {
     46        uintptr_t addr;
     47        uint32_t size;
     48} utask_t;
     49
     50typedef struct {
     51        uint32_t cpumap;
     52        uint32_t cnt;
     53        utask_t tasks[TASKMAP_MAX_RECORDS];
     54} bootinfo_t;
     55
     56extern void arch_pre_main(void *entry, bootinfo_t *bootinfo);
     57
    3858#endif
    3959
Note: See TracChangeset for help on using the changeset viewer.