Rev 888 | Rev 890 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 888 | Rev 889 | ||
---|---|---|---|
Line 20... | Line 20... | ||
20 | 20 | ||
Line 21... | Line 21... | ||
21 | int flags; |
21 | int flags; |
22 | } zone_t; |
22 | } zone_t; |
Line -... | Line 23... | ||
- | 23 | ||
23 | 24 | ||
24 | typedef struct |
25 | typedef struct |
25 | { |
26 | { |
- | 27 | link_t link; |
|
26 | count_t count; |
28 | link_t adj; |
- | 29 | addr_t base; |
|
- | 30 | size_t size; |
|
- | 31 | void *parent; |
|
27 | addr_t frames[18]; |
32 | u32_t state; |
Line 28... | Line 33... | ||
28 | }phismem_t; |
33 | }md_t; |
- | 34 | ||
- | 35 | ||
- | 36 | #define PG_MAP 1 |
|
- | 37 | #define PG_WRITE 2 |
|
- | 38 | #define PG_USER 4 |
|
- | 39 | ||
Line 29... | Line 40... | ||
29 | 40 | #define PG_SW 3 |
|
30 | 41 | #define PG_UW 7 |
|
Line 58... | Line 69... | ||
58 | }; |
69 | }; |
59 | 70 | ||
Line 60... | Line 71... | ||
60 | void init_mm(); |
71 | void init_mm(); |
Line -... | Line 72... | ||
- | 72 | ||
- | 73 | void* __fastcall frame_get_parent(pfn_t pfn); |
|
- | 74 | void __fastcall frame_set_parent(pfn_t pfn, void *data); |
|
- | 75 | ||
- | 76 | void frame_free(pfn_t frame); |
|
- | 77 | ||
61 | 78 | ||
62 | addr_t __fastcall core_alloc(u32_t order); |
79 | addr_t __fastcall core_alloc(u32_t order); |
Line 63... | Line 80... | ||
63 | void __fastcall core_free(addr_t frame); |
80 | void __fastcall core_free(addr_t frame); |
64 | - | ||
Line 65... | Line -... | ||
65 | pfn_t alloc_page() __attribute__ ((deprecated)); |
- | |
66 | pfn_t __stdcall alloc_pages(count_t count) __asm__ ("_alloc_pages") __attribute__ ((deprecated)); |
- | |
67 | - | ||
68 | void frame_free(pfn_t frame); |
- | |
Line -... | Line 81... | ||
- | 81 | ||
69 | 82 | pfn_t alloc_page() __attribute__ ((deprecated)); |
|
- | 83 | ||
- | 84 |