Changeset aa72859 in mainline


Ignore:
Timestamp:
2005-11-22T18:44:55Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
db41406
Parents:
7453929
Message:

preparation for init task loading

Files:
1 deleted
7 edited

Legend:

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

    r7453929 raa72859  
    3434
    3535#define MULTIBOOT_HEADER_MAGIC  0x1BADB002
    36 #define MULTIBOOT_HEADER_FLAGS  0x00010003
     36#define MULTIBOOT_HEADER_FLAGS  0x0001000B
    3737
    3838#define MULTIBOOT_LOADER_MAGIC  0x2BADB002
  • arch/ia32/include/boot/memmap.h

    r7453929 raa72859  
    3030#define __ia32_MEMMAP_H__
    3131
     32/* E820h memory range types - other values*/
     33        /* Free memory */
     34#define MEMMAP_MEMORY_AVAILABLE 1
     35        /* Not available for OS */
     36#define MEMMAP_MEMORY_RESERVED  2
     37        /* OS may use it after reading ACPI table */
     38#define MEMMAP_MEMORY_ACPI      3
     39        /* Unusable, required to be saved and restored across an NVS sleep */
     40#define MEMMAP_MEMORY_NVS       4
     41        /* Corrupted memory */
     42#define MEMMAP_MEMORY_UNUSABLE  5
    3243
    33 #include <arch/boot/memmapasm.h>
     44         /* size of one entry */
     45#define MEMMAP_E820_RECORD_SIZE 20
     46        /* maximum entries */
     47#define MEMMAP_E820_MAX_RECORDS 32
     48
     49
     50#ifndef __ASM__
     51
    3452#include <arch/types.h>
    3553
     
    4765
    4866#endif
     67
     68#endif
  • arch/ia32/src/boot/boot.S

    r7453929 raa72859  
    2828
    2929#include <arch/boot/boot.h>
    30 #include <arch/boot/memmapasm.h>
     30#include <arch/boot/memmap.h>
    3131#include <arch/mm/page.h>
    3232#include <arch/pm.h>
     
    157157                movl %ecx, e801memorysize
    158158               
     159                bt $3, %eax                                                             # mbi->flags[3] (mods_count, mods_addr valid)   
     160                jc mods_valid
     161                       
     162                        xorl %ecx, %ecx
     163                        xorl %edx, %edx
     164                        jmp mods_invalid
     165               
     166                mods_valid:
     167               
     168                mods_invalid:
     169                movl %ecx, init_addr
     170                movl %edx, init_size
     171               
    159172                bt $6, %eax                                                             # mbi->flags[6] (mmap_length, mmap_addr valid) 
    160173                jc mmap_valid
  • arch/ia32/src/boot/memmap.S

    r7453929 raa72859  
    2828
    2929
    30 #include <arch/boot/memmapasm.h>
     30#include <arch/boot/memmap.h>
    3131
    3232E820_SMAP = 0x534d4150
  • arch/mips32/Makefile.inc

    r7453929 raa72859  
    4242
    4343KERNEL_LOAD_ADDRESS = 0x80100000
     44INIT_ADDRESS = 0x80110000
     45INIT_SIZE = 65536
    4446CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss
    45 DEFS += -DMACHINE=${MACHINE} -DKERNEL_LOAD_ADDRESS=${KERNEL_LOAD_ADDRESS}
     47DEFS += -DMACHINE=${MACHINE} -DKERNEL_LOAD_ADDRESS=${KERNEL_LOAD_ADDRESS} -DINIT_ADDRESS=${INIT_ADDRESS} -DINIT_SIZE=${INIT_SIZE}
    4648
    4749## Accepted MACHINEs
  • contrib/conf/msim.conf

    r7453929 raa72859  
    88add rwm mainmem         0x00100000      16M     load "kernel.bin"
    99add rom startmem        0x1fc00000      1k      load "load.bin"
     10add rwm init            0x00110000      64k     load "init"
    1011
    1112add dprinter printer 0x10000000
  • generic/src/main/main.c

    r7453929 raa72859  
    8585size_t hardcoded_kdata_size = 0;
    8686
     87__address init_addr = 0;
     88size_t init_size = 0;
     89
    8790/*
    8891 * Size of memory in bytes taken by kernel and heap.
Note: See TracChangeset for help on using the changeset viewer.