Rev 3967 | Rev 4108 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3967 | Rev 3973 | ||
---|---|---|---|
Line 63... | Line 63... | ||
63 | } phys_region_t; |
63 | } phys_region_t; |
64 | 64 | ||
65 | static count_t phys_regions_count = 0; |
65 | static count_t phys_regions_count = 0; |
66 | static phys_region_t phys_regions[MAX_REGIONS]; |
66 | static phys_region_t phys_regions[MAX_REGIONS]; |
67 | 67 | ||
68 | uintptr_t end_frame = 0; |
- | |
69 | - | ||
70 | 68 | ||
71 | /** Check whether frame is available |
69 | /** Check whether frame is available |
72 | * |
70 | * |
73 | * Returns true if given frame is generally available for use. |
71 | * Returns true if given frame is generally available for use. |
74 | * Returns false if given frame is used for physical memory |
72 | * Returns false if given frame is used for physical memory |
Line 236... | Line 234... | ||
236 | start_frame = frame + 1; |
234 | start_frame = frame + 1; |
237 | avail = true; |
235 | avail = true; |
238 | } |
236 | } |
239 | } |
237 | } |
240 | 238 | ||
241 | end_frame = frame; |
- | |
242 | - | ||
243 | frame_add_region(start_frame, end_frame); |
239 | frame_add_region(start_frame, frame); |
244 | 240 | ||
245 | /* Blacklist interrupt vector frame */ |
241 | /* Blacklist interrupt vector frame */ |
246 | frame_mark_unavailable(0, 1); |
242 | frame_mark_unavailable(0, 1); |
247 | 243 | ||
248 | /* Cleanup */ |
244 | /* Cleanup */ |