Commit Graph

66 Commits

Author SHA1 Message Date
thorpej 2c75f5b061 No need to depend on userland libraries here. 2002-12-09 16:30:40 +00:00
matt 8b4993db5d Convert to register prefixes. Use ANSI string concatenation for
multiline asm strings.
2002-10-31 21:31:08 +00:00
wrstuden 0ce4a385a5 Should have done this sooner. Bump to version 1.7 to indicate good
alloc.c.
2002-10-18 21:22:40 +00:00
wrstuden 470e4ff3ac Remove vestiges of the syncicache() call originally in powerpc/ofwboot
before rev 1.4. This change makes OF 2.4 machines actually boot, and
it works fine on my OF 2.01 machine. No reports of failures on other
archs.

I expect this change is fine as the original code flushed the just-loaded
ofwboot out of the cache, conditionalized on FIRMWORKSBUGS. In rev.
1.4, the code got in-lined, and changed to actually flush low memory
out of the cache. Since machines kept booting, I expect the firmware
was really flushing the binary out of the cache, so we're fine.
2002-09-27 00:32:17 +00:00
wrstuden 4f7aaad83c Re-add own alloc(). Recent issues with kernels randomly dying on boot
are related to using libsa's alloc(). Problems go away with this alloc().

The problem is that the libsa alloc() assumes we can grab memory off
the end of the program. That assumption doesn't work for us. It's
much better to use the alloc() we were using as it calls OF_claim()
to get memory.
2002-09-20 03:20:24 +00:00
itojun 73941c5096 avoid hardcoding MBR_MAGICOFF and MBR_MAGIC. 2002-06-18 00:37:25 +00:00
itojun 980d7c811b LABELSECTOR is redefined to be 0 on macppc, so it is not usable for MBR
disk label offset.  use hardcoded "1" for now, i guess we need a new #define
in sys/disklabel_mbr.h.  fixes ofwboot to boot kernel off from MBR-formatted
disk.
2002-06-17 23:59:01 +00:00
tsutsui c7a7330ca9 Add "cleanlibdir" target. 2002-04-13 13:35:23 +00:00
tsutsui c58dce575b Set USE_LIBSA_MEMCPY and USE_LIBSA_MEMSET to save a few bytes. 2002-04-13 13:31:40 +00:00
tsutsui 9e9f7b6c60 Bump version for ustarfs support. 2002-03-30 07:17:48 +00:00
tsutsui 4a12192a62 Enable SUPPORT_USTARFS and HAVE_CHANGEDISK_HOOK in CPPFLAGS. 2002-03-30 07:17:09 +00:00
tsutsui 5cb20a9896 Add changedisk_hook() for ustarfs. (from tsubai) 2002-03-30 07:15:51 +00:00
tsutsui 18c67eedf6 Add ustarfs ops. 2002-03-30 07:14:49 +00:00
tsutsui a0453e4c67 Remove unused define/include/variable. 2002-03-29 20:31:52 +00:00
tsutsui 2167e61bce Add back -I. to CPPFLAGS. 2002-03-29 20:26:06 +00:00
tsutsui ad8cbb6cbc Cleanup some flags. 2002-03-29 18:21:38 +00:00
tsutsui a59e9106d6 Cosmetics. 2002-03-29 15:15:07 +00:00
jmc 68b038f787 Wrap the generation of machine and powerpc links so they don't happen during
make obj, clean or cleandir as the proper objdir may not be around yet.
2002-03-02 06:32:28 +00:00
wrstuden 3a971f756f Make this work with the dependall target.
Pointed out by Christian Groessle on port-macppc, and patch suggested bu
Izumi Tsutsui.
2002-02-13 17:52:08 +00:00
wrstuden 0dd5e345ea Check in machinery to make ofwboot load at 600000, while ofwboot.elf
and ofwboot.xcf will load at 640000. The idea is that we can now
leave load-base at 600000, and it will work right for all three methods.

The problem is that the file loader and the net loader use load-base
as a scratch area, so if the executable really wants to load there,
the load fails.
2002-02-01 18:45:29 +00:00
matt 3b0bdd1f0f Remove machine/powerpc links on clean as well. 2002-01-07 23:09:53 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
tv 5489b30b60 ${MAKE} print-objdir -> ${PRINTOBJDIR} 2001-11-14 00:58:48 +00:00
scw 45e7238a02 Bump the version numbers of all bootloaders which use loadfile_elfXX() now
that it tries hard to avoid backwards seeks.
2001-11-09 19:53:11 +00:00
wiz 4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
tv ab11c169b5 objcopy -> ${OBJCOPY}; remove redundant definitions of OBJCOPY?= (it is
now in bsd.own.mk).
2001-09-22 03:34:17 +00:00
tsubai e20342e78d Fix a bug introduced when machine_type.h was removed.
Now the kernel can read symbol table again.
2001-08-23 14:17:27 +00:00
tsubai b1d1120084 Search "/netbsd.gz" and "/netbsd.macppc" in addition to "/netbsd". 2001-08-13 15:38:11 +00:00
bjh21 ad2c12a28d Bump version numbers of all bootloaders that use loadfile/ELF, to account for
my changes to symbol loading.  I should probably have done this at the time,
but it's better late than never.
2001-08-02 12:24:05 +00:00
wiz c5a6be17f4 bcopy -> memcpy, bzero -> memset, bcmp -> memcmp.
Reviewed by Matt Thomas, ok'd by Tsubai Masanari.
2001-07-22 11:29:44 +00:00
matt b499a7d558 Add -Wno-main since this is a standalone program. 2001-07-18 05:37:55 +00:00
soren 945b972563 PPC machine type tags haven't been used for a while. 2001-05-03 13:11:24 +00:00
matt 9dd26cf7c4 It's hfs.c, not hfs. Add -I${.CURDIR} for objdirs. XXX hfs.c should
be integrated into libsa.
2000-11-16 07:36:04 +00:00
tsubai e3ae93dfd4 Add hfs support. Currently this layer simply throw the request to the OF
(and the OF recognizes HFS).
2000-11-14 11:25:34 +00:00
garbled b7c07855f6 make -> ${MAKE} 2000-10-28 15:41:25 +00:00
wrstuden 07a9408ae6 Move ofwboot to 600000 hex. Should make loading better (less likely to
run into OF internals).
2000-10-13 00:19:30 +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
tsubai 1267826d5d Increase stack size. 2000-08-20 07:04:59 +00:00
tsubai 46ab3e89fb Use libsa alloc(). 2000-07-25 06:26:18 +00:00
tsubai dd54c272e5 Add ofwboot.{mrg,xcf} to CLEANFILES. 2000-07-25 06:22:05 +00:00
tsubai 8dc7633036 Make this compile again. 2000-07-25 06:18:23 +00:00
jdolecek 20933708ec switch to sys/conf/newvers_stand.sh for generation of version file
slighly adjust the Makefile WRT vers.c and SRCS & CLEANFILES
2000-07-21 21:42:25 +00:00
dmcmahill db5c144019 make sure ofwboot.xcf gets installed 2000-07-06 19:42:55 +00:00
matt d3336b64a1 Squeeze a few more bytes so the INSTALL kernel will fit on a floppy.
Use tlp instead of de.  Add in gm[ac].  Remove slip and Gallant 22x12 font.
Compile ofwboot.elf -Os.
2000-06-08 17:35:47 +00:00
mycroft 26d692df9e Use DHCP, not BOOTP. At least with dhcpd, the root path gets dropped due to
lack of space in the reply when using BOOTP.
2000-04-29 22:18:31 +00:00
tsubai cf532aa7eb Move CFLAGS and CPPFLAGS to {bootxx,ofwboot}/Makefile to compile installboot
without -D_STANDALONE.
2000-02-07 16:26:59 +00:00
mycroft 7b49d242ce Clean up the machine symlink stuff ever so slightly. Needs to be
standardized between files.
2000-01-23 17:04:03 +00:00
thorpej db1042f3bc Update some comments. 1999-12-22 18:57:12 +00:00
wrstuden e9c570ec77 Now make an ofwboot.xcf, and XCOFF version of ofwboot. Uses the new
fix-coff program.
1999-11-23 01:35:37 +00:00
tsubai 4eb4de3592 Make ``boot kernelname'' work on OF-3.x too. 1999-08-03 07:08:36 +00:00