Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/arch/x68k/stand
Module Name: src
Committed By: isaki
Date: Wed Nov 25 09:32:36 UTC 2026
Modified Files:
src/sys/arch/x68k/stand/boot: Makefile boot.c srt0.S version
src/sys/arch/x68k/stand/boot_ufs: version
src/sys/arch/x68k/stand/common: exec_image.S
src/sys/arch/x68k/stand/xxboot: version
Log Message:
Change the trampoline in bootloaders to avoid overwriting msgbuf.
- Previously, both primary and secondary bootloaders used the same
common/exec_image.S to trampoline to the next stage. And the trampoline
routine and the stack was written to the end of phisical page.
There is the msgbuf there!
- To avoid this, I split exec_image into one for the primary and one for the
secondary.
- The primary loaders continue to use common/exec_image.S. However, the
new exec_image.S doesn't include a trampoline. Because all primary
loaders already load the secondary loader into its final position.
This change prevents the primary loaders break msgbuf.
- The secondary loader has a new exec_image2 routine derived from
common/exec_image. This one has a trampoline as before, but the trampoline
and the stack are placed at the next page of the loaded kernel.
This change prevents the secondary loader breaks msgbuf.
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/x68k/stand/boot/Makefile
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/x68k/stand/boot/boot.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/x68k/stand/boot/srt0.S
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/x68k/stand/boot/version
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/x68k/stand/boot_ufs/version
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/x68k/stand/common/exec_image.S
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/x68k/stand/xxboot/version
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index