Changeset ae318d3 in mainline for kernel/arch/ppc32/src/mm


Ignore:
Timestamp:
2009-02-16T18:50:48Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
06da55b
Parents:
17f168e
Message:

overhaul pareas: use one single physical area for the physical address space not belonging to physical memory

Location:
kernel/arch/ppc32/src/mm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/mm/frame.c

    r17f168e rae318d3  
    4141
    4242uintptr_t last_frame = 0;
     43uintptr_t end_frame = 0;
    4344
    4445void physmem_print(void)
     
    7576                        last_frame = ALIGN_UP(bootinfo.memmap.zones[i].start + bootinfo.memmap.zones[i].size, FRAME_SIZE);
    7677        }
    77 
     78       
     79        end_frame = last_frame;
     80       
    7881        /* First is exception vector, second is 'implementation specific',
    7982           third and fourth is reserved, other contain real mode code */
  • kernel/arch/ppc32/src/mm/page.c

    r17f168e rae318d3  
    6464}
    6565
     66void hw_area(uintptr_t *physaddr, pfn_t *frames)
     67{
     68        *physaddr = end_frame;
     69        *frames = ADDR2PFN(0xffffffff - end_frame);
     70}
     71
    6672/** @}
    6773 */
Note: See TracChangeset for help on using the changeset viewer.