Changeset 9979acb in mainline for kernel/arch/ia32/src/mm/page.c
- Timestamp:
- 2009-02-20T17:19:03Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c9b550b
- Parents:
- 5c06c1c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/mm/page.c
r5c06c1c r9979acb 35 35 #include <arch/mm/page.h> 36 36 #include <genarch/mm/page_pt.h> 37 #include <genarch/drivers/ega/ega.h> 38 #include <genarch/drivers/legacy/ia32/io.h> 37 39 #include <arch/mm/frame.h> 38 40 #include <mm/frame.h> … … 49 51 #include <print.h> 50 52 #include <interrupt.h> 53 #include <ddi/ddi.h> 54 55 /** Physical memory area for devices. */ 56 static parea_t dev_area; 57 static parea_t ega_area; 51 58 52 59 void page_arch_init(void) … … 94 101 } 95 102 96 void hw_area( uintptr_t *physaddr, pfn_t *frames)103 void hw_area(void) 97 104 { 98 *physaddr = end_frame; 99 *frames = ADDR2PFN(0xffffffff - end_frame); 105 dev_area.pbase = end_frame; 106 dev_area.frames = SIZE2FRAMES(0xffffffff - end_frame); 107 ddi_parea_register(&dev_area); 108 109 ega_area.pbase = EGA_VIDEORAM; 110 ega_area.frames = SIZE2FRAMES(EGA_VRAM_SIZE); 111 ddi_parea_register(&ega_area); 100 112 } 101 113
Note:
See TracChangeset
for help on using the changeset viewer.