Added comments that say why the ZPSAVE1 and ZPSAVE2 segments must be together.
This commit is contained in:
@@ -23,8 +23,8 @@ SEGMENTS {
|
|||||||
RODATA: load = RAM, type = ro;
|
RODATA: load = RAM, type = ro;
|
||||||
INIT: load = RAM, type = ro, define = yes, optional = yes;
|
INIT: load = RAM, type = ro, define = yes, optional = yes;
|
||||||
DATA: load = RAM, type = rw;
|
DATA: load = RAM, type = rw;
|
||||||
ZPSAVE1: load = RAM, type = rw, define = yes;
|
ZPSAVE1: load = RAM, type = rw, define = yes; # ZPSAVE1, ZPSAVE2 must be together
|
||||||
ZPSAVE2: load = RAM, type = bss;
|
ZPSAVE2: load = RAM, type = bss; # see "libsrc/atmos/crt0.s"
|
||||||
BSS: load = RAM, type = bss, define = yes;
|
BSS: load = RAM, type = bss, define = yes;
|
||||||
}
|
}
|
||||||
FEATURES {
|
FEATURES {
|
||||||
|
|||||||
@@ -92,6 +92,9 @@ zpsave:
|
|||||||
|
|
||||||
.byte 0
|
.byte 0
|
||||||
|
|
||||||
|
; The segments "ZPSAVE1" and "ZPSAVE2" always must be together.
|
||||||
|
; They create a single object (the zpsave buffer).
|
||||||
|
|
||||||
.segment "ZPSAVE2"
|
.segment "ZPSAVE2"
|
||||||
|
|
||||||
.res zpspace - 1
|
.res zpspace - 1
|
||||||
|
|||||||
Reference in New Issue
Block a user