Changeset 96e0748d in mainline for kernel/arch/arm32/include


Ignore:
Timestamp:
2009-02-17T22:47:27Z (17 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

Location:
kernel/arch/arm32/include
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/arch.h

    re662a5f r96e0748d  
    2727 */
    2828
    29 /** @addtogroup arm32   
     29/** @addtogroup arm32
    3030 * @{
    3131 */
     
    3737#define KERN_arm32_ARCH_H_
    3838
     39#define TASKMAP_MAX_RECORDS  32
     40#define CPUMAP_MAX_RECORDS   32
     41
     42#include <typedefs.h>
     43
     44typedef struct {
     45        uintptr_t addr;
     46        uint32_t size;
     47} utask_t;
     48
     49typedef struct {
     50        uint32_t cnt;
     51        utask_t tasks[TASKMAP_MAX_RECORDS];
     52} bootinfo_t;
     53
     54extern void arch_pre_main(void *entry, bootinfo_t *bootinfo);
     55
    3956#endif
    4057
  • kernel/arch/arm32/include/asm/boot.h

    re662a5f r96e0748d  
    2727 */
    2828
    29 /** @addtogroup arm32   
     29/** @addtogroup arm32
    3030 * @{
    3131 */
     
    4040#define TEMP_STACK_SIZE 0x100
    4141
    42 #ifndef __ASM__
    43 
    44 /** Kernel entry point.
    45  *
    46  * Implemented in assembly. Copies boot_bootinfo (declared as bootinfo in
    47  * boot/arch/arm32/loader/main.c) to #bootinfo struct. Then jumps to
    48  * #arch_pre_main and #main_bsp.
    49  *
    50  * @param entry          Entry point address (not used).
    51  * @param boot_bootinfo  Struct holding information about loaded tasks.
    52  * @param bootinfo_size  Size of the bootinfo structure.
    53  */
    54 extern void kernel_image_start(void *entry, void *boot_bootinfo,
    55     unsigned int bootinfo_size);
    56 
    57 #endif
    58 
    5942#endif
    6043
Note: See TracChangeset for help on using the changeset viewer.