Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/arch



Module Name:    src
Committed By:   bouyer
Date:           Tue Sep  9 11:34:25 UTC 2025

Modified Files:
        src/sys/arch/amd64/amd64: locore.S
        src/sys/arch/i386/i386: locore.S

Log Message:
Fix some issues with symbol table detection on Xen PVH:
- the stack grows down so the last pushed value is at 0(%esp), not -4(%esp).
  Pointed out by Joachim Kuebart.
- 0x3fffffff is 1GB-1, not 1MB-1. Test the symtab size against 16MB
  (amd64 generic symbol table is just above 1MB these days)
- I got confused by cmp's arguments order between intel and gas syntax,
  so the tests did the opposite of intended and the symtab was always
  considered valid.
While there use unsigned conditions.

Should fix booting in PVH mode with netbsd-INSTALL (which is stripped)


To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.233 src/sys/arch/amd64/amd64/locore.S
cvs rdiff -u -r1.203 -r1.204 src/sys/arch/i386/i386/locore.S

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