Subversion Repositories HelenOS

Rev

Rev 3940 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3940 Rev 3973
Line 32... Line 32...
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
35
#include <arch/mm/page.h>
35
#include <arch/mm/page.h>
36
#include <genarch/mm/page_pt.h>
36
#include <genarch/mm/page_pt.h>
37
#include <genarch/drivers/ega/ega.h>
-
 
38
#include <genarch/drivers/legacy/ia32/io.h>
-
 
39
#include <arch/mm/frame.h>
37
#include <arch/mm/frame.h>
40
#include <mm/page.h>
38
#include <mm/page.h>
41
#include <mm/frame.h>
39
#include <mm/frame.h>
42
#include <mm/as.h>
40
#include <mm/as.h>
43
#include <arch/interrupt.h>
41
#include <arch/interrupt.h>
Line 46... Line 44...
46
#include <memstr.h>
44
#include <memstr.h>
47
#include <interrupt.h>
45
#include <interrupt.h>
48
#include <print.h>
46
#include <print.h>
49
#include <panic.h>
47
#include <panic.h>
50
#include <align.h>
48
#include <align.h>
51
#include <ddi/ddi.h>
-
 
52
 
-
 
53
/** Physical memory area for devices. */
-
 
54
static parea_t dev_area;
-
 
55
static parea_t ega_area;
-
 
56
 
49
 
57
/* Definitions for identity page mapper */
50
/* Definitions for identity page mapper */
58
pte_t helper_ptl1[512] __attribute__((aligned (PAGE_SIZE)));
51
pte_t helper_ptl1[512] __attribute__((aligned (PAGE_SIZE)));
59
pte_t helper_ptl2[512] __attribute__((aligned (PAGE_SIZE)));
52
pte_t helper_ptl2[512] __attribute__((aligned (PAGE_SIZE)));
60
pte_t helper_ptl3[512] __attribute__((aligned (PAGE_SIZE)));
53
pte_t helper_ptl3[512] __attribute__((aligned (PAGE_SIZE)));
Line 219... Line 212...
219
    last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE);
212
    last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE);
220
   
213
   
221
    return virtaddr;
214
    return virtaddr;
222
}
215
}
223
 
216
 
224
void hw_area(void)
-
 
225
{
-
 
226
    dev_area.pbase = end_frame;
-
 
227
    dev_area.frames = SIZE2FRAMES(0xfffffffffffff - end_frame);
-
 
228
    ddi_parea_register(&dev_area);
-
 
229
   
-
 
230
    ega_area.pbase = EGA_VIDEORAM;
-
 
231
    ega_area.frames = SIZE2FRAMES(EGA_VRAM_SIZE);
-
 
232
    ddi_parea_register(&ega_area);
-
 
233
}
-
 
234
 
-
 
235
/** @}
217
/** @}
236
 */
218
 */