Changeset e49e234 in mainline for kernel/arch/ppc32


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/ppc32
Files:
3 edited

Legend:

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

    r5f0f29ce re49e234  
    2727 */
    2828
    29 /** @addtogroup ppc32mm 
     29/** @addtogroup ppc32mm
    3030 * @{
    3131 */
     
    3636#define KERN_ppc32_FRAME_H_
    3737
    38 #define FRAME_WIDTH             12      /* 4K */
    39 #define FRAME_SIZE              (1 << FRAME_WIDTH)
     38#define FRAME_WIDTH  12  /* 4K */
     39#define FRAME_SIZE   (1 << FRAME_WIDTH)
    4040
    4141#ifdef KERNEL
     
    4545
    4646extern uintptr_t last_frame;
    47 extern uintptr_t end_frame;
    4847
    4948extern void frame_arch_init(void);
  • kernel/arch/ppc32/src/mm/frame.c

    r5f0f29ce re49e234  
    4141
    4242uintptr_t last_frame = 0;
    43 uintptr_t end_frame = 0;
    4443
    4544void physmem_print(void)
     
    7776        }
    7877       
    79         end_frame = last_frame;
    80        
    8178        /* First is exception vector, second is 'implementation specific',
    8279           third and fourth is reserved, other contain real mode code */
  • kernel/arch/ppc32/src/mm/page.c

    r5f0f29ce re49e234  
    2727 */
    2828
    29 /** @addtogroup ppc32mm 
     29/** @addtogroup ppc32mm
    3030 * @{
    3131 */
     
    3838#include <align.h>
    3939#include <config.h>
    40 #include <ddi/ddi.h>
    41 
    42 /** Physical memory area for devices. */
    43 static parea_t dev_area;
    4440
    4541void page_arch_init(void)
     
    6864}
    6965
    70 void hw_area(void)
    71 {
    72         dev_area.pbase = end_frame;
    73         dev_area.frames = SIZE2FRAMES(0xffffffff - end_frame);
    74         ddi_parea_register(&dev_area);
    75 }
    76 
    7766/** @}
    7867 */
Note: See TracChangeset for help on using the changeset viewer.