mirror of
https://github.com/elliotnunn/wedge.git
synced 2024-11-21 16:30:48 +00:00
95df455703
The Wedge is a C program that, when inserted into a PowerPC ROM, runs just before the NanoKernel. This is very early in the boot process. The Wedge takes this opportunity to rearrange the MacOS address space and make more than 1.5 GB RAM available to applications. Some serious problems remain with this approach, so a "proper" solution to the 1.5 GB RAM limit will take more work. This code was ripped out of the old CDG5 build system and refactored. It it more appropriate to keep the Wedge separate from the real OS code.
25 lines
332 B
C
25 lines
332 B
C
#pragma once
|
|
|
|
#include <MacTypes.h>
|
|
|
|
|
|
|
|
OSErr NKxprintf(char *);
|
|
|
|
|
|
|
|
enum {
|
|
kNKSystemInfo = 2,
|
|
kNKDiagInfo = 3,
|
|
kNKNanoKernelInfo = 4,
|
|
kNKProcessorInfo = 5,
|
|
kNKHWInfo = 6,
|
|
kNKProcessorState = 7,
|
|
};
|
|
|
|
OSErr NKLocateInfoRecord(long whichRecord, char **record, long *version, long *length);
|
|
|
|
|
|
|
|
OSErr NKKernelDebuggerCmd(char *cmd);
|