Commit Graph

15 Commits

Author SHA1 Message Date
Elliot Nunn
cce70c2315 Build Slot Mgr from source
(Slot Mgr is for compatibility only on PCI Macs.)
2017-11-27 11:04:25 +08:00
Elliot Nunn
d5615091e0 Correct names of NK Event Group wrapper code
The names of the NanoKernel MP calls made by this 68k ROM library were
found by inspecting the PowerPC MPLibrary, which makes these and many
other MP calls. The document "Adding Multitasking Capability to
Applications Using Multiprocessing Services" gave some background
information. It also helped to determine the function signatures of the
MP calls and of these ROM wrappers.
2017-11-27 11:04:24 +08:00
Elliot Nunn
3226ee4220 Reverse the Universal Info table
This was tricky. The table seems to be vestigial, anyway.
2017-11-27 11:04:24 +08:00
Elliot Nunn
59cdc89312 Build MMU.lib from sources
The sources needed no changes (how embarrassing), except to remove an
unnecessary dependence on a nonexistent SoundPrivate.a. Lastly.lib had
an incorrect position for SIDESOUNDBUFFER, which has been fixed.
2017-11-27 11:04:24 +08:00
Elliot Nunn
42c4fdcc5f Remove branch islands
The unlinker's new ISLANDGUESS HIDE' option removes autogenerated BSR.L
from the binary dumps and makes tweaks that will cause them to be
regenerated by the linker. MPW's linker seems to have the correct branch
island placement policy, because round-tripping is preserved. When
building from edited sources, there is a remote possibility that the
arrangement of branch islands inside a dumped file will be changed,
disrupting references within that file.
2017-11-27 11:04:24 +08:00
Elliot Nunn
3921dbd4a3 Correctly reverse Standard and Interface libs
Previously these were lumped in with Lastly. Now they are unlinked and
correctly labelled, and Lastly contains only a small amount of PowerPC-
specific code.
2017-11-27 11:04:23 +08:00
Elliot Nunn
e7fd9a4d3e Declare between-file branches
The unlink tool now REFGUESSes branches between object files, with some
manual guidance. If you patch the ROM enough to change its function
offsets, it should still work fine.

(One potential exception: if the linker needs to put a new "BSR.L"
island module *within* a pre-built object file, that module file's
internal references *may* be disrupted. This situation is fairly
unlikely, but with improved reversal it will be addressed.)
2017-11-27 11:04:23 +08:00
Elliot Nunn
b92720ecc8 Build Data Access Mgr stub from source
Turns out, the source was just a stub for PACK 13
2017-11-27 11:04:23 +08:00
Elliot Nunn
a7076d28b9 Switch to new unlinker
"DeVectorize" was a hideous several-thousand-line Python script that
split 70% of the ROM into barely passable MPW object files. The new
unlinker, "unlink", produces much nicer files and enjoys a clean
separation of code from data. Using DumpObj, you can get a very readable
listing of a given object file (GoNativeROMLib.o has improved a great
deal). With a bit more work, unlink will be superior to FDisasm for all
68k Mac ROM reversal.
2017-11-27 11:04:22 +08:00
Elliot Nunn
cf23aad670 Crack QuickDraw
That is to day, put *something* in its place with the right length and
symbol locations. Now we can be sure that no incorrect bytes are due to
confused branch instructions, and therefore that they must all be fixed.
2017-10-09 12:37:27 +08:00
Elliot Nunn
1833036a99 Reverse roughly to 81838 2017-10-08 23:26:23 +08:00
Elliot Nunn
1a0bf7c4ad Reverse TextEdit 2017-10-07 20:25:07 +08:00
Elliot Nunn
10e586a0ec Reverse printing glue 2017-10-07 19:30:19 +08:00
Elliot Nunn
debed6c064 Identify Expansion Bus Manager entry points
The ExpansionBusDispatch trap (AAF3) is implemented in ROM using a
DispatchHelper table. Using a header from the embryonic Expansion Bus Mgr in
CubeE (rather suspect) and from the Universal Interfaces (solid), the names of
24 of the 47 dispatch selectors have been found. This commit updates the
dumped ExpansionBusMgr.lib with new symbol names.

All but two of the 47 dispatch selectors are Vectorized, so this commit also
updates VectorTable.a with selector numbers and, where possible, names. The
two non-Vectorized dispatch selectors (27 and 28) both point to the same 'nop'
function immediately before ExpansionBusDispatch.
2017-10-07 12:30:01 +08:00
Elliot Nunn
9f1fa052dc Build updated MainCode image (matches Mac OS ROM 9.6.1+) 2017-09-20 19:58:54 +08:00