Home | History | Annotate | Download | only in libtos
History log of /src/sys/arch/atari/stand/tostools/libtos/sysinfo.c
RevisionDateAuthorComments
 1.10  25-Sep-2024  rin atari/stand: Rework sysinfo.c v.s. GCC12 -Warray-bounds

sysinfo.c is also used for bootxxx. Convert `-Wno-error=...` into
`#pragma gcc diagnostic ...` to the source file, although this
does not narrow down scope of hack.

Fix atari build this time for sure ;)
 1.9  14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.8  06-Jan-2009  tsutsui branches: 1.8.2;
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.

Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers

Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.

Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
 1.7  28-Apr-2008  martin branches: 1.7.8; 1.7.10;
Remove clause 3 and 4 from TNF licenses
 1.6  11-Dec-2005  christos branches: 1.6.24; 1.6.74; 1.6.76; 1.6.78;
merge ktrace-lwp.
 1.5  28-Jun-2005  junyoung #include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.4  13-Feb-2004  wiz Uppercase CPU, plural is CPUs.
 1.3  24-Feb-2002  leo branches: 1.3.16;
Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.2  13-Oct-2001  leo branches: 1.2.4; 1.2.6;
Arrange include files section in such a way that we can use this code in
the MiNT and NetBSD/libsa environment.
 1.1  10-Oct-2001  leo Check-point my work on the bootcode.
 1.2.6.3  16-Mar-2002  jdolecek Catch up with -current.
 1.2.6.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.6.1  13-Oct-2001  thorpej file sysinfo.c was added on branch kqueue on 2002-01-10 19:40:29 +0000
 1.2.4.2  28-Feb-2002  nathanw Catch up to -current.
 1.2.4.1  13-Oct-2001  nathanw file sysinfo.c was added on branch nathanw_sa on 2002-02-28 04:08:34 +0000
 1.3.16.4  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.3.16.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.16.2  18-Sep-2004  skrll Sync with HEAD.
 1.3.16.1  03-Aug-2004  skrll Sync with HEAD
 1.6.78.2  04-May-2009  yamt sync with head.
 1.6.78.1  16-May-2008  yamt sync with head.
 1.6.76.1  18-May-2008  yamt sync with head.
 1.6.74.2  17-Jan-2009  mjf Sync with HEAD.
 1.6.74.1  02-Jun-2008  mjf Sync with HEAD.
 1.6.24.1  15-Jan-2009  bouyer Pull up following revision(s) (requested by tsutsui in ticket #1263):
sys/arch/atari/stand/xxboot/Makefile.xxboot: revision 1.5
sys/arch/atari/stand/tostools/libtos/libtos.h: revision 1.5
sys/arch/atari/stand/installboot/disklabel.c: revision 1.3
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.4
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.5
sys/arch/atari/stand/libsa/Makefile: revision 1.28
sys/arch/atari/stand/bootxx/start.S: revision 1.1
distrib/utils/sysinst/arch/atari/md.c: revision 1.23
sys/arch/atari/stand/bootxx/Makefile.bootxx: revision 1.8
sys/arch/atari/stand/tostools/libtos/aout.c: revision 1.11
sys/arch/atari/stand/installboot/installboot.h: revision 1.9
sys/arch/atari/stand/bootxxx/bootxxx.c: revision 1.4
distrib/sets/lists/base/md.atari: revision 1.50
sys/arch/atari/stand/Makefile.booters: revision 1.1
sys/arch/atari/stand/bootxx/bootxx.c: revision 1.13
sys/arch/atari/stand/installboot/installboot.c: revision 1.22
sys/arch/atari/stand/tostools/libtos/elf.c: revision 1.9
sys/arch/atari/stand/tostools/libtos/sysinfo.c: revision 1.8
sys/arch/atari/stand/bootxxx/start.S: revision 1.1
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.
Problem on default installation with sysinst was reported by David Ross.
Remove /boot.atari, which is no longer installed during build
and removed from base.tgz.
Note we must not mark this obsolete because this tertiary bootloader
will be copied into / during installation and it shouldn't be removed
by postinstall(8).
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
 1.7.10.1  16-Jan-2009  bouyer Pull up following revision(s) (requested by tsutsui in ticket #274):
sys/arch/atari/stand/xxboot/Makefile.xxboot: revision 1.5
sys/arch/atari/stand/tostools/libtos/libtos.h: revision 1.5
sys/arch/atari/stand/installboot/disklabel.c: revision 1.3
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.4, 1.5
sys/arch/atari/stand/libsa/Makefile: revision 1.28
sys/arch/atari/stand/bootxx/start.S: revision 1.1
distrib/utils/sysinst/arch/atari/md.c: revision 1.23
sys/arch/atari/stand/bootxx/Makefile.bootxx: revision 1.8
sys/arch/atari/stand/tostools/libtos/aout.c: revision 1.11
sys/arch/atari/stand/installboot/installboot.h: revision 1.9
sys/arch/atari/stand/bootxxx/bootxxx.c: revision 1.4
sys/arch/atari/stand/Makefile.inc: file removal
distrib/sets/lists/base/md.atari: revision 1.50
sys/arch/atari/stand/Makefile.booters: revision 1.1
sys/arch/atari/stand/bootxx/bootxx.c: revision 1.13
sys/arch/atari/stand/installboot/installboot.c: revision 1.22
sys/arch/atari/stand/tostools/libtos/elf.c: revision 1.9
sys/arch/atari/stand/tostools/libtos/sysinfo.c: revision 1.8
sys/arch/atari/stand/bootxxx/start.S: revision 1.1
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.
Problem on default installation with sysinst was reported by David Ross.
Remove /boot.atari, which is no longer installed during build
and removed from base.tgz.
Note we must not mark this obsolete because this tertiary bootloader
will be copied into / during installation and it shouldn't be removed
by postinstall(8).
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
 1.7.8.2  28-Apr-2009  skrll Sync with HEAD.
 1.7.8.1  19-Jan-2009  skrll Sync with HEAD.
 1.8.2.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

RSS XML Feed