projects
/
eightysix
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
load stage2 high to leave the low RAM for the kernel
[eightysix]
/
boot.ld
diff --git
a/boot.ld
b/boot.ld
index
b607e11
..
99bc701
100644
(file)
--- a/
boot.ld
+++ b/
boot.ld
@@
-6,10
+6,13
@@
SECTIONS {
.bootsect : {
* (.bootsect);
}
.bootsect : {
* (.bootsect);
}
+ _bootsect_end = .;
- . = 0x7e00;
+ /* load high out of the way, to allow stage2 to load the kernel low */
+ . = 0x80000;
_stage2_start = .;
_stage2_start = .;
- .text : {
+ _stage2_start_seg = _stage2_start >> 4;
+ .text : AT(_bootsect_end) {
* (.startup);
* (.text*);
}
* (.startup);
* (.text*);
}
@@
-19,6
+22,7
@@
SECTIONS {
}
.bss ALIGN(4) (NOLOAD): {
_bss_start = .;
}
.bss ALIGN(4) (NOLOAD): {
_bss_start = .;
+ _bss_start_off = _bss_start - _stage2_start;
* (.bss*);
* (COMMON);
. = ALIGN(4);
* (.bss*);
* (COMMON);
. = ALIGN(4);
@@
-26,4
+30,5
@@
SECTIONS {
_bss_size = SIZEOF(.bss);
. = ALIGN(4);
_stage2_end = .;
_bss_size = SIZEOF(.bss);
. = ALIGN(4);
_stage2_end = .;
+ _stage2_size = _stage2_end - _stage2_start;
};
};