* Move platform support.cpp into less generic of_support.cpp
* Add header file to support of_support.cpp * Add support functions to obtain address and size cell lengths * Small style cleanups * Add support for G5 PowerPC cpus... * Refactor memory region code to be aware of 64-bit OF addresses. As-is the boot loader wouldn't start on G5 systems because OpenFirmware memory base addresses are stored as two 32-bit unsigned int 'cells' vs one 32-bit unsigned int 'cell' on G3/G4. I removed the static struct and replaced it with a template and pass uint32 or uint64 depending on the address cell size. Thanks for the idea DeadYak! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42486 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -15,6 +15,13 @@
|
||||
extern int gChosen;
|
||||
|
||||
|
||||
template<typename addressSize>
|
||||
struct of_region
|
||||
{
|
||||
addressSize base;
|
||||
uint32 size;
|
||||
};
|
||||
|
||||
struct of_arguments {
|
||||
const char *name;
|
||||
int num_args;
|
||||
@@ -27,11 +34,6 @@ struct of_arguments {
|
||||
#endif
|
||||
};
|
||||
|
||||
struct of_region {
|
||||
void *base;
|
||||
uint32 size;
|
||||
};
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user