Commit Graph

30 Commits

Author SHA1 Message Date
dsl
02cdf4d2c8 Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
2009-03-14 14:45:51 +00:00
tsutsui
fe5a481b54 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.
2009-01-06 13:35:30 +00:00
abs
5dd888f5c3 Since dl.d_type is always "unknown" now, pick the type of bootblock to
install based on the device name: eg /dev/fd0c would be floppy
2008-11-15 21:33:12 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
jmc
ad0332662d daddr_t is forced to int32_t in sys/arch/atari/stand/Makefile.inc so correct
the printf formats to match this
2004-03-11 07:22:25 +00:00
jdc
bfd698dc3d Catch up to the bootblock split into std and milan directories. 2004-03-09 20:14:27 +00:00
he
da63355bc0 Undo the last; adding the quad arithmetic caused the boot code to
overflow.  Instead do as the mvme68k port, and use 32-bit daddr_t here.
2003-04-01 14:27:43 +00:00
he
369a9dc367 Adapt to daddr_t being bumped to 64 bits. This required us to add
div/mod quad operations to libsa, and adjusting a pair of format specifiers.
2003-04-01 13:31:23 +00:00
soren
642c31b4a3 Remove extraneous \n's in {err,warn}{,x}. 2002-08-09 10:01:53 +00:00
grant
6742cb1812 sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:36:17 +00:00
leo
f94a8b4d29 Don't bail out when /netbsd is not present. We don't really need it
anyway.
2002-04-12 22:11:33 +00:00
tv
8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
leo
0c42421cbe Just use '_bootversion', don't use C_LABEL macros. From RTSL, I found out
that kvm_nlist adds an underscore when the binary format is ELF.
2001-10-14 19:45:53 +00:00
leo
975c7a2466 Make this finally compile again. It hasn't worked since the C_LABEL() got in. 2001-09-06 06:24:17 +00:00
leo
d7e0d02e8b Add include of <machine/asm.h>. C_LABEL is defined there. 2000-09-30 20:40:34 +00:00
jdolecek
49c105ffdb add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate

as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro

for hpcmips, use new bootverbose instead of it's own hpcmips_verbose

Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
2000-09-24 12:32:31 +00:00
jdolecek
89ccc75157 use _C_LABEL() for bootversion, instead of hardcoding the reference as _bootversion 2000-07-08 14:41:04 +00:00
lukem
dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
leo
70249fa2f2 Make this compile again... ('maximum entropy'). 1998-12-01 15:30:01 +00:00
leo
101f67646c Add '<ufs/ufs/dinode.h>' to the include list. (Julian Coleman) 1998-07-22 12:49:42 +00:00
leo
89325630dd Introduce 'bootversion' in locore.s. Check this to decide if installing
a bootstrap with the running installboot makes sense.
1997-07-09 14:31:12 +00:00
mrg
c86a511276 move man pages into share/man. 1997-06-22 05:48:14 +00:00
leo
5df535d814 Handle DTYPE_ESDI like ST506. 1997-01-08 12:55:41 +00:00
leo
1d1bc2cb98 Bump version. 1997-01-08 10:18:39 +00:00
leo
0cda663b65 Make installboot work for 1.2 & 1.2A (should be part of 1.2 patches). 1996-10-25 20:05:04 +00:00
leo
3fa481b30d Update to match NetBSD version. 1996-06-29 20:51:58 +00:00
leo
e07a535f4e Some minor nits. 1996-06-20 19:41:01 +00:00
leo
1dd829a703 Update to make this work correctly when using an obj-directory. 1996-05-14 10:16:13 +00:00
leo
4f5cc6fac1 Drop in a more interlligent version check. 1996-03-28 21:53:35 +00:00
leo
48f5b02304 NetBSD/Atari bootcode by Waldi Ravens. 1996-02-29 11:35:46 +00:00