Changeset 9979acb in mainline for kernel/arch/mips32/src/mm/page.c


Ignore:
Timestamp:
2009-02-20T17:19:03Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c9b550b
Parents:
5c06c1c
Message:

make hw_area API more generic
this allows mapping of EGA VRAM on ia32/amd64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/mm/page.c

    r5c06c1c r9979acb  
    3737#include <mm/page.h>
    3838#include <mm/frame.h>
     39#include <ddi/ddi.h>
     40
     41/** Physical memory area for devices. */
     42static parea_t dev_area;
    3943
    4044void page_arch_init(void)
     
    5256}
    5357
    54 void hw_area(uintptr_t *physaddr, pfn_t *frames)
     58void hw_area(void)
    5559{
    56         *physaddr = end_frame;
    57         *frames = ADDR2PFN(0xffffffff - end_frame);
     60        dev_area.pbase = end_frame;
     61        dev_area.frames = SIZE2FRAMES(0xffffffff - end_frame);
     62        ddi_parea_register(&dev_area);
    5863}
    5964
Note: See TracChangeset for help on using the changeset viewer.