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.
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
MpwToolLibs68k = ¶
|
|
"{Libraries}Stubs.o" ¶
|
|
"{CLibraries}StdCLib.o" ¶
|
|
"{Libraries}MacRuntime.o" ¶
|
|
"{Libraries}IntEnv.o" ¶
|
|
"{Libraries}Interface.o" ¶
|
|
|
|
SiowLibsPPC = ¶
|
|
"{PPCLibraries}PPCSIOW.o" ¶
|
|
"{PPCLibraries}MrCPlusLib.o" ¶
|
|
"{SharedLibraries}InterfaceLib" ¶
|
|
"{SharedLibraries}StdCLib" ¶
|
|
"{SharedLibraries}MathLib" ¶
|
|
"{PPCLibraries}PPCCRuntime.o" ¶
|
|
|
|
IM = :Intermediates:
|
|
Apps = :Apps:
|
|
|
|
{IM} Ä :
|
|
|
|
{IM}RomWedge.x Ä {IM}WedgeStub.s.x {IM}printf.c.x {IM}Wedge.c.x
|
|
PPCLink -outputformat xcoff -codeorder source -roistext on -o {Targ} {Deps}
|
|
|
|
{IM}Linker Ä {IM}Linker.c.o
|
|
ILink -d -t 'MPST' -c 'MPS ' -o {Targ} {MpwToolLibs68k} {Deps}
|
|
|
|
{Apps}TestWedge Ä {IM}Wedge.c.x {IM}NKShim.s.x
|
|
PPCLink -d -t 'APPL' -c 'siow' -o {Targ} {Deps} {SiowLibsPPC}
|
|
Rez -a "{RIncludes}SIOW.r" -d DEFAULT_SAVE_PREF=1 -o {Targ}
|
|
|
|
{Apps}WedgeLogReader Ä {IM}WedgeLogReader.c.x
|
|
PPCLink -d -t 'APPL' -c 'siow' -o {Targ} {Deps} {SiowLibsPPC}
|
|
Rez -a "{RIncludes}SIOW.r" -d DEFAULT_SAVE_PREF=1 -o {Targ}
|