Subversion Repositories HelenOS

Rev

Rev 3908 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3908 Rev 3940
Line 34... Line 34...
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 <mm/page.h>
37
#include <mm/page.h>
38
#include <mm/frame.h>
38
#include <mm/frame.h>
-
 
39
#include <ddi/ddi.h>
-
 
40
 
-
 
41
/** Physical memory area for devices. */
-
 
42
static parea_t dev_area;
39
 
43
 
40
void page_arch_init(void)
44
void page_arch_init(void)
41
{
45
{
42
    page_mapping_operations = &pt_mapping_operations;
46
    page_mapping_operations = &pt_mapping_operations;
43
}
47
}
Line 49... Line 53...
49
uintptr_t hw_map(uintptr_t physaddr, size_t size)
53
uintptr_t hw_map(uintptr_t physaddr, size_t size)
50
{
54
{
51
    return physaddr + 0xa0000000;
55
    return physaddr + 0xa0000000;
52
}
56
}
53
 
57
 
54
void hw_area(uintptr_t *physaddr, pfn_t *frames)
58
void hw_area(void)
55
{
59
{
56
    *physaddr = end_frame;
60
    dev_area.pbase = end_frame;
57
    *frames = ADDR2PFN(0xffffffff - end_frame);
61
    dev_area.frames = SIZE2FRAMES(0xffffffff - end_frame);
-
 
62
    ddi_parea_register(&dev_area);
58
}
63
}
59
 
64
 
60
/** @}
65
/** @}
61
 */
66
 */