| History log of /src/sys/arch/i386/stand/bootxx/bootxx_ustarfs |
| Revision | Date | Author | Comments |
| 1.4 | 30-Aug-2023 |
christos | Override these two booters with -Oz for clang since it produces smaller code here.
|
| 1.3 | 18-Nov-2009 |
dsl | branches: 1.3.94; Reinstate the 'banner'. It is a useful diagnostic that the boot sequence is proceeding.
|
| 1.2 | 30-Apr-2008 |
ad | branches: 1.2.14; Tidy up console output slightly.
|
| 1.1 | 16-Apr-2003 |
dsl | branches: 1.1.104; 1.1.106; 1.1.108; bootxx: bootstrap code - installable by MI installboot. Loads /boot using filesystem accesses (rather than a list of block numbers)
|
| 1.1.108.2 | 11-Mar-2010 |
yamt | sync with head
|
| 1.1.108.1 | 16-May-2008 |
yamt | sync with head.
|
| 1.1.106.1 | 18-May-2008 |
yamt | sync with head.
|
| 1.1.104.1 | 02-Jun-2008 |
mjf | Sync with HEAD.
|
| 1.2.14.1 | 24-Oct-2010 |
jym | Sync with HEAD
|
| 1.3.94.1 | 14-Dec-2023 |
martin | Pull up following revision(s) (requested by rin in ticket #498):
sys/arch/i386/stand/dosboot/Makefile: revision 1.35 sys/arch/i386/stand/Makefile.booters: revision 1.95 sys/arch/i386/stand/bootxx/bootxx_msdos/Makefile: revision 1.5 sys/arch/i386/stand/Makefile.inc: revision 1.19 sys/arch/i386/stand/bootxx/bootxx_ustarfs/Makefile: revision 1.4 sys/arch/i386/stand/dosboot/Makefile: revision 1.34
Fix the clang build by setting -z noseparate-code
Merge the OPT_SIZE flags. -Oz is not always producing smaller code that -Os, so default to -Os for both, and we'll override where needed.
Override these two booters with -Oz for clang since it produces smaller code here.
x86/dosboot: Allow NULL dereference to fetch command line arguments DOS command line arguments are provided as struct psp at 0x0000; see doscommain.c.
Recent versions of gcc and clang are clever enough to optimize code block involving NULL dereference into ud2 insn.
Sprinkle -fno-delete-null-pointer-checks to doscommain.c to prevent this behavior.
Note that dosboot.com for netbsd-9 and later was broken due to this ``over optimization''. gcc 5.5.0 and clang 4.0.0 in netbsd-8 generate correct codes without this workaround.
XXX Are there still use cases for dosboot.com? Does anyone want to boot NetBSD from real-mode DOS in 2023?
x86/dosboot: Do not page-align data segment 4K alignment is too heavy burden for COM executable with 64K limit :) Fix binary size overflow for clang/amd64.
|