Changeset a55f97f in mainline


Ignore:
Timestamp:
2005-07-21T14:27:13Z (20 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f5e3d1da
Parents:
f7a13b9
Message:

Memory size detection for ia32 completed.

Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/Makefile.inc

    rf7a13b9 ra55f97f  
    3939        arch/cpu/cpu.c \
    4040        arch/mm/frame.c \
     41        arch/mm/memory_init.c \
    4142        arch/mm/page.c \
    4243        arch/mm/tlb.c \
  • arch/ia32/src/mm/frame.c

    rf7a13b9 ra55f97f  
    4949               
    5050                for (i=e820counter;i>0;i--) {
    51                         //printf("E820 base: %Q size: %Q type: %L \n",e820table[i-1].base_address,e820table[i-1].size,e820table[i-1].type);
     51                        // printf("E820 base: %Q size: %Q type: %L \n",e820table[i-1].base_address,e820table[i-1].size,e820table[i-1].type);
    5252                        if (e820table[i-1].type!=MEMMAP_MEMORY_AVAILABLE) {
    5353                                frame_region_not_free(e820table[i-1].base_address,e820table[i-1].size);
  • src/main/main.c

    rf7a13b9 ra55f97f  
    4848#include <smp/smp.h>
    4949
     50#include <arch/mm/memory_init.h>
    5051#include <mm/frame.h>
    5152#include <mm/page.h>
     
    99100
    100101        config.base = hardcoded_load_address;
    101         config.memory_size = CONFIG_MEMORY_SIZE;
     102        config.memory_size = get_memory_size();
    102103        config.kernel_size = hardcoded_ktext_size + hardcoded_kdata_size + CONFIG_HEAP_SIZE + CONFIG_STACK_SIZE;
    103104
Note: See TracChangeset for help on using the changeset viewer.