* Instead of its home-brewn solution, mmu_init() now uses the functions declared
in addr_range.h to add ranges to the arrays. This fixes the crashing bug reported by Larry Baydak. * Added some more exported functions to kernel_args.cpp (prototypes are in addr_range.h). * TODO: let the PPC/OpenFirmware implementation use those as well. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19739 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
** Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||
** Distributed under the terms of the Haiku License.
|
||||
*/
|
||||
* Copyright 2004-2007, Axel Dörfler, [email protected]. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef KERNEL_BOOT_ADDR_RANGE_H
|
||||
#define KERNEL_BOOT_ADDR_RANGE_H
|
||||
|
||||
@@ -14,10 +14,22 @@ typedef struct addr_range {
|
||||
addr_t size;
|
||||
} addr_range;
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
status_t insert_address_range(addr_range *ranges, uint32 *_numRanges, uint32 maxRanges,
|
||||
addr_t start, uint32 size);
|
||||
status_t remove_addr_range(addr_range *ranges, uint32 *_numRanges, uint32 maxRanges,
|
||||
addr_t start, uint32 size);
|
||||
|
||||
status_t insert_physical_memory_range(addr_t start, uint32 size);
|
||||
status_t insert_physical_allocated_range(addr_t start, uint32 size);
|
||||
status_t insert_virtual_allocated_range(addr_t start, uint32 size);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* KERNEL_BOOT_ADDR_RANGE_H */
|
||||
|
||||
Reference in New Issue
Block a user