mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 02:31:01 +11:00
94cb76520a
Previously, it was impossible to cross-compile Collapse OS from a binary-offsetted Collapse OS because stable ABI wordrefs would have a wrongly offsetted address. This solves the problem by replacing those wordrefs by direct, hardcoded stable ABI offset references.
17 lines
595 B
Plaintext
17 lines
595 B
Plaintext
Stable ABI
|
|
|
|
Across all architectures, some offset are referred to by off-
|
|
sets that don't change (well, not without some binary manipu-
|
|
lation). Here's the complete list of these references:
|
|
|
|
04 BOOT addr 06 (uflw) addr 08 LATEST
|
|
42 EXIT wordref 53 (br) wordref 67 (?br) wordref
|
|
80 (loop) wordref a9 2>R wordref bf (n) wordref
|
|
d4 (s) wordref
|
|
|
|
BOOT and (uflw) exist because they are referred to before those
|
|
words are defined (in core words). LATEST is a critical part
|
|
of the initialization sequence.
|
|
|
|
(cont.)
|