Changeset e49e234 in mainline for kernel/arch/sparc64


Ignore:
Timestamp:
2009-02-27T11:32:31Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1f7f6ea
Parents:
5f0f29ce
Message:

kernel memory management revisited (phase 2): map physical memory according to zones

  • ia32: register reserved and ACPI zones
  • pareas are now used only for mapping of present physical memory (hw_area() is gone)
  • firmware zones and physical addresses outside any zones are allowed to be mapped generally
  • fix nasty antient bug in zones_insert_zone()
Location:
kernel/arch/sparc64
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/mm/frame.h

    r5f0f29ce re49e234  
    7474
    7575extern uintptr_t last_frame;
    76 extern uintptr_t end_frame;
    7776extern void frame_arch_init(void);
    7877#define physmem_print()
  • kernel/arch/sparc64/src/mm/frame.c

    r5f0f29ce re49e234  
    2727 */
    2828
    29 /** @addtogroup sparc64mm       
     29/** @addtogroup sparc64mm
    3030 * @{
    3131 */
     
    4242
    4343uintptr_t last_frame = NULL;
    44 uintptr_t end_frame = NULL;
    4544
    4645/** Create memory zones according to information stored in bootinfo.
     
    8180                frame_mark_unavailable(ADDR2PFN(KA2PA(PFN2ADDR(0))), 1);
    8281        }
    83        
    84         end_frame = last_frame;
    8582}
    8683
  • kernel/arch/sparc64/src/mm/page.c

    r5f0f29ce re49e234  
    4242#include <align.h>
    4343#include <config.h>
    44 #include <ddi/ddi.h>
    45 
    46 /** Physical memory area for devices. */
    47 static parea_t dev_area;
    4844
    4945#ifdef CONFIG_SMP
     
    169165}
    170166
    171 void hw_area(void)
    172 {
    173         dev_area.pbase = end_frame;
    174         dev_area.frames = SIZE2FRAMES(0x7ffffffffff - end_frame);
    175         ddi_parea_register(&dev_area);
    176 }
    177 
    178167/** @}
    179168 */
Note: See TracChangeset for help on using the changeset viewer.