From a2f6ec2acabc28b2bf3614eb5511b44e8e76187e Mon Sep 17 00:00:00 2001
From: Andreas Faerber <andreas.faerber@web.de>
Date: Sun, 6 Jun 2010 05:08:24 +0200
Subject: [PATCH 1/3] Revert r36886, adapt to API changes
---
.../boot/platform/openfirmware/arch/ppc/mmu.cpp | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/system/boot/platform/openfirmware/arch/ppc/mmu.cpp b/src/system/boot/platform/openfirmware/arch/ppc/mmu.cpp
index a5429ef..816c588 100644
a
|
b
|
extern "C" uint8 __text_begin;
|
40 | 40 | extern "C" uint8 _end; |
41 | 41 | |
42 | 42 | |
43 | | #if 0 |
44 | 43 | static status_t |
45 | 44 | insert_virtual_range_to_keep(void *start, uint32 size) |
46 | 45 | { |
47 | | return insert_memory_range(gKernelArgs.arch_args.virtual_ranges_to_keep, |
48 | | gKernelArgs.arch_args.num_virtual_ranges_to_keep, |
49 | | MAX_VIRTUAL_RANGES_TO_KEEP, start, size); |
| 46 | return insert_address_range(gKernelArgs.arch_args.virtual_ranges_to_keep, |
| 47 | &gKernelArgs.arch_args.num_virtual_ranges_to_keep, |
| 48 | MAX_VIRTUAL_RANGES_TO_KEEP, (addr_t)start, size); |
50 | 49 | } |
51 | | #endif |
52 | 50 | |
53 | 51 | |
54 | 52 | static status_t |
… |
… |
find_allocated_ranges(void *oldPageTable, void *pageTable,
|
302 | 300 | // cannot preserve, since that doesn't lie in the kernel address space. Mappings |
303 | 301 | // >= 2 GB are probably memory mapped hardware registers or the frame buffer |
304 | 302 | // (i.e. non-RAM), which we don't handle correctly ATM. |
305 | | #if 0 |
306 | 303 | if (keepRange) { |
307 | 304 | if (insert_virtual_range_to_keep(map->virtual_address, |
308 | 305 | map->length) != B_OK) { |
… |
… |
find_allocated_ranges(void *oldPageTable, void *pageTable,
|
310 | 307 | gKernelArgs.num_virtual_allocated_ranges); |
311 | 308 | } |
312 | 309 | } |
313 | | #endif |
314 | 310 | |
315 | 311 | total += map->length; |
316 | 312 | } |