Changeset deca67b in mainline for kernel/arch/ia32/include/boot


Ignore:
Timestamp:
2009-03-03T12:56:20Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
add04f7
Parents:
2f57690
Message:

rename ia32_cboot() to arch_pre_main() and move it to ia32.c (to be in line with other platforms)

Location:
kernel/arch/ia32/include/boot
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/include/boot/boot.h

    r2f57690 rdeca67b  
    2727 */
    2828
    29 /** @addtogroup ia32   
     29/** @addtogroup ia32
    3030 * @{
    3131 */
     
    3636#define KERN_ia32_BOOT_H_
    3737
    38 #define BOOT_OFFSET             0x108000
    39 #define AP_BOOT_OFFSET          0x8000
    40 #define BOOT_STACK_SIZE 0x400
     38#define BOOT_OFFSET      0x108000
     39#define AP_BOOT_OFFSET   0x8000
     40#define BOOT_STACK_SIZE  0x400
    4141
    42 #define MULTIBOOT_HEADER_MAGIC  0x1BADB002
    43 #define MULTIBOOT_HEADER_FLAGS  0x00010003
     42#define MULTIBOOT_HEADER_MAGIC  0x1BADB002
     43#define MULTIBOOT_HEADER_FLAGS  0x00010003
    4444
    45 #define MULTIBOOT_LOADER_MAGIC  0x2BADB002
     45#define MULTIBOOT_LOADER_MAGIC  0x2BADB002
     46
     47#ifndef __ASM__
     48
     49#ifdef CONFIG_SMP
     50
     51extern int _hardcoded_unmapped_size;
     52
     53#endif /* CONFIG_SMP */
     54
     55#endif /* __ASM__ */
    4656
    4757#endif
  • kernel/arch/ia32/include/boot/multiboot.h

    r2f57690 rdeca67b  
    2727 */
    2828
    29 /** @addtogroup ia32   
     29/** @addtogroup ia32
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef KERN_ia32_CBOOT_H__
    36 #define KERN_ia32_CBOOT_H_
     35#ifndef KERN_ia32_MULTIBOOT_H__
     36#define KERN_ia32_MULTIBOOT_H_
    3737
    3838#include <arch/types.h>
     
    5858        uintptr_t mem_lower;
    5959        uintptr_t mem_upper;
    60 
     60       
    6161        uint32_t boot_device;
    6262        char *cmdline;
    63 
     63       
    6464        uint32_t mods_count;
    6565        mb_mod_t *mods_addr;
    66 
     66       
    6767        uint32_t syms[4];
    68 
     68       
    6969        uint32_t mmap_length;
    7070        mb_mmap_t *mmap_addr;
    71 
     71       
    7272        /* ... */
    7373} __attribute__ ((packed)) mb_info_t;
    7474
    7575enum mb_info_flags {
    76         MBINFO_FLAGS_MEM        = 0x01,
    77         MBINFO_FLAGS_BOOT       = 0x02,
    78         MBINFO_FLAGS_CMDLINE    = 0x04,
    79         MBINFO_FLAGS_MODS       = 0x08,
    80         MBINFO_FLAGS_SYMS1      = 0x10,
    81         MBINFO_FLAGS_SYMS2      = 0x20,
    82         MBINFO_FLAGS_MMAP       = 0x40
     76        MBINFO_FLAGS_MEM     = 0x01,
     77        MBINFO_FLAGS_BOOT    = 0x02,
     78        MBINFO_FLAGS_CMDLINE = 0x04,
     79        MBINFO_FLAGS_MODS    = 0x08,
     80        MBINFO_FLAGS_SYMS1   = 0x10,
     81        MBINFO_FLAGS_SYMS2   = 0x20,
     82        MBINFO_FLAGS_MMAP    = 0x40
     83       
    8384        /* ... */
    8485};
    85 
    86 extern void ia32_cboot(uint32_t signature, const mb_info_t *mi);
    8786
    8887#endif
Note: See TracChangeset for help on using the changeset viewer.