Changeset f6297e0 in mainline for arch/ia32/src/mm/frame.c


Ignore:
Timestamp:
2005-09-03T15:45:14Z (20 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ab08b42
Parents:
2f08a55d
Message:

proper way of initializing GDT during boot on IA-32, fixes the nasty hack
SMP might be still broken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/mm/frame.c

    r2f08a55d rf6297e0  
    3131#include <mm/vm.h>
    3232#include <config.h>
     33#include <arch/boot/boot.h>
    3334#include <arch/boot/memmap.h>
    3435
    35 #include <print.h>
     36size_t hardcoded_unmapped_ktext_size = 0;
     37size_t hardcoded_unmapped_kdata_size = 0;
    3638
    3739void frame_arch_init(void)
     
    4042       
    4143        if (config.cpu_active == 1) {
     44                /* Reserve the NULL frame */
    4245                frame_not_free(0x0);
    43 
     46               
     47                /* Reserve well-known memory regions */
    4448                frame_region_not_free(0xa0000,0xff000);
    4549                frame_region_not_free(0xfec00000,0xffffffff);
    4650               
    47                 /* This is a nasty hack, which should be fixed soon */
    48                 frame_region_not_free(0x0, 0xfffff);
     51                /* Reserve real mode bootstrap memory */
     52                frame_region_not_free(BOOTSTRAP_OFFSET, BOOTSTRAP_OFFSET + hardcoded_unmapped_ktext_size + hardcoded_unmapped_kdata_size);
    4953               
    5054                for (i=e820counter;i>0;i--) {
Note: See TracChangeset for help on using the changeset viewer.