Thomas Moestl
07a41f740a
NFS support should be conditional on LOADER_NFS_SUPPORT, not
...
LOADER_NET_SUPPORT.
2003-07-11 16:12:50 +00:00
Jake Burkholder
caa4756af5
Remember to release the loader's heap.
...
Reviewed by: tmm
2003-06-15 19:16:43 +00:00
Peter Wemm
ec4eecb60b
Commit a missed change to keep in sync with the MI elf loader.
2003-05-01 04:39:22 +00:00
Peter Wemm
145b0eb56d
Also look for an "elf64 kernel" (for sparc64) and "elf32 kernel" (for
...
powerpc) when building metadata.
2003-04-30 22:00:16 +00:00
Poul-Henning Kamp
f770d2d3dd
Cut&Paste considered far too easy:
...
Don't include <sys/disklabel.h>
2003-04-16 21:09:41 +00:00
Poul-Henning Kamp
197e5e73ef
Libdisk does not need to include <sys/diskslice.h> any more.
...
Move the remaining bits of <sys/diskslice.h> to <i386/include/bootinfo.h>
Move i386/pc98 specific bits from <sys/reboot.h> to
<i386/include/bootinfo.h> as well.
Adjust includes in sys/boot accordingly.
2003-04-04 16:35:16 +00:00
Jake Burkholder
83110b06f8
Fix breakage from earlier inadvertant changes.
2002-12-20 04:32:10 +00:00
Jake Burkholder
7c6c018c0c
Renamed the loader's zipfs to gzipfs. zipfs.c was repo-copied to gzipfs.c.
2002-12-19 19:34:59 +00:00
Jake Burkholder
de0acbf78f
Change the device path representation in libofw to use the full firmware
...
path, instead of an internal i386 specific one. Don't try to interpret
a disklabel in ofw_disk.c, open the partition's device node directly and
let the firmware do it. This fixes booting from a partition other than 'a'
on sparc64, which is needed to support more installation methods.
No objection: ppc
2002-11-10 19:17:36 +00:00
Thomas Moestl
789a449d14
Pass the right number of tlb slots to the kernel. The allocation scheme
...
was changed in r1.4, but I neglected to update most of the code in
metadata.c.
Pointy hat to: tmm
2002-10-18 23:49:18 +00:00
Jake Burkholder
38013bd368
Compile in support for zipfs and bzipfs so we can load the gzipped mfsroot
...
that releases use.
2002-10-13 18:52:46 +00:00
Jake Burkholder
4f4f7ac78c
Remove NOFORTH=yes, it seems to work now thanks to scottl.
2002-09-02 01:11:46 +00:00
Robert Drehmel
9884a53c1a
- Do not pretend to compile a kernel and remove the definition
...
of the _KERNEL macro.
- Do not include <sys/pcpu.h> for no reason.
Suggested by: jake
2002-08-21 15:52:23 +00:00
Robert Drehmel
09bb4b96a4
- Define the macro _KERNEL to pretend we are compiling a kernel.
...
This is required by recent changes to <sys/pcpu.h>, which uses
the #error preprocessor directive to keep non-kernel
applications from using it.
_KERNEL is defined below the #include <stand.h>, because <stand.h>
removes the definition of _KERNEL.
- Move the inclusion of <sys/queue.h> above the inclusion of
<sys/linker.h> to avoid syntax errors.
2002-08-21 12:45:36 +00:00
Jake Burkholder
7746cd480a
Print out the strings in vers.o instead of hardcoding the loader banner.
2002-08-04 01:30:26 +00:00
Jake Burkholder
dd5629cde7
Enable netboot support by default, since it can now coexist with disk and
...
cdrom support. This avoids having to distribute separate loaders.
2002-07-07 23:08:22 +00:00
Jake Burkholder
3238ad66ae
Make building with ficl work. Unfortunately booting with it doesn't.
2002-07-07 18:23:10 +00:00
Jake Burkholder
d89286ce68
Enable cd9660 support by default.
2002-06-21 22:34:51 +00:00
Peter Wemm
92caa29d8e
Add boot_serial and boot_multicons variables to set RB_SERIAL and
...
RB_MULTIPLE since this seems to be the easiest way to add these flags
for non-forth loaders etc.
2002-06-20 06:29:42 +00:00
Poul-Henning Kamp
080ef30b20
Add explicit dependency on ufsread.c
2002-06-05 12:30:45 +00:00
Poul-Henning Kamp
af53575a04
Remove UFS related #includes, they're read in ufsread.c now.
2002-06-05 12:12:25 +00:00
Poul-Henning Kamp
3795d538a8
Make sparc64 share ufsread.c with i386.
...
Sponsored by: DARPA & NAI Labs.
2002-06-05 12:00:53 +00:00
Poul-Henning Kamp
7cbccd7f79
Avoid entering IOCCC with a memcpy turned bcopy.
2002-06-05 11:56:12 +00:00
Jake Burkholder
8c7b34b8a3
Add needed include of queue.h. Remove unneeded include of smp.h.
2002-05-29 19:38:49 +00:00
Jake Burkholder
35738638d6
Use a contrived 'tlb_entry' structure for passing the mappings for the
...
kernel text and data from the loader to the kernel, so that the tte format
is not part of the loader->kernel ABI.
2002-05-29 05:49:59 +00:00
Jake Burkholder
d9f2757eaa
Sync with i386. The loader was being installed before the beforeinstall
...
target, which conventiently moved it to loader.old, leaving no loader.
2002-05-28 23:09:59 +00:00
Tom Rhodes
d394511de3
More s/file system/filesystem/g
2002-05-16 21:28:32 +00:00
David E. O'Brien
21ab21338d
Match the default newfs UFS block size.
2002-05-13 05:09:34 +00:00
Jake Burkholder
6cc8d3ac6b
Attempt to not crash and burn on UltraSPARC III machines; the cpuid property
...
is named differently.
2002-05-11 22:05:22 +00:00
David E. O'Brien
d1bdfb40fd
-ffreestanding is the word.
...
(also resort some CFLAGS such that the more "important" value are first so
they are easier to see)
2002-05-10 09:26:35 +00:00
Jake Burkholder
127e8646b8
Split file system setup code out into a function called mount.
...
Implement vsnprintf. Implement panic in terms of it.
2002-04-24 05:54:10 +00:00
Jake Burkholder
0d0c927680
Add support for loading files other than /boot/loader. Useful if you're
...
loader is screwed and you want loader.old.
Rewrite the scaled down printf so it actually works right, and add support
for more formats.
2002-04-24 04:27:49 +00:00
Jake Burkholder
3ff6556567
Add an exit function.
2002-04-24 02:50:59 +00:00
Jake Burkholder
083d8c5bab
Add -Wno-unused.
2002-04-24 02:50:36 +00:00
Jake Burkholder
8c2f8986a6
memcpy, memset -> bcopy, bzero.
2002-04-24 02:24:32 +00:00
Jake Burkholder
4b487ad2ec
Clean up elf loading to not make assumptions about the ordering of sections.
...
Don't load the symbol table; this is only needed for loading kernels and we
load the loader.
2002-04-24 02:10:35 +00:00
Jake Burkholder
e2b255fdea
Remove xfsread. Just call fsread directly.
2002-04-24 01:47:05 +00:00
Jake Burkholder
912ceb7f18
Remove a bunch of unused variables, functions and macros. Allocate storage
...
statically instead of using a faked up malloc.
2002-04-24 01:40:54 +00:00
David E. O'Brien
34ef85ee3d
o Use our own elf2aout now.
...
o Generalize a little.
2002-04-21 02:37:55 +00:00
Thomas Moestl
bc3c153560
Do not use semi-fixed TLB slots for the 4M kernel pages any more.
2002-04-02 17:10:15 +00:00
Thomas Moestl
2c94cd1ba0
1.) Rename locore.s to locore.S (by repocopy), to be able to remove
...
special-case make rule
2.) Cleanups, remove superfluous expicit rules, add -nostdlib to LDFLAGS,
remove -X and -g, remove -g from CFLAGS
3.) Add BINDIR
4.) Build install the loader help file, add an empty help.sparc64
5.) Change the default configuration to only support booting from disk
6.) Get libofw.a from a path relative ${.OBJDIR}, not ${.CURDIR}
Submitted by: jake (1 - 5), obrien (6)
2002-04-02 17:08:37 +00:00
Thomas Moestl
ad68ab89e2
Add support for booting from CD-ROM. Make it possible to enable UFS
...
support using make arguments.
2002-04-01 23:28:35 +00:00
Thomas Moestl
163f47b1ec
1.) Produce a boot1 disklabel template of the format disklabel(8) expects.
...
2.) Clean up and change over to using bsd.prog.mk
Submitted by: jake (2)
2002-04-01 22:57:51 +00:00
David E. O'Brien
77dfe39221
was repocopied to ../boot1
2002-03-28 02:56:05 +00:00
David E. O'Brien
20d9715213
Apparently either gcc or ld, in their infinite wisdom, want to
...
put a bunch of crap before the code in .text. Since the firmware
doesn't seem to honour the a.out entry point, we need to include
a little assmbler file which jumps to where we want to be in C.
Submitted by: jake
2002-03-28 02:41:52 +00:00
David E. O'Brien
0ce1fc3fc3
Opps, bootblock component is no more.
2002-03-28 01:41:23 +00:00
David E. O'Brien
8fa3779837
Add a Makefile for sparc64 at this level.
2002-03-28 01:01:43 +00:00
Robert Drehmel
aa22cb469c
Change every occurrence of "bootblock" into "boot1" after
...
the repo-move from "src/sys/boot/sparc64/bootblock".
2002-03-05 16:39:36 +00:00
Robert Drehmel
83ea6c23b5
- Fix seeking for offsets requiring more than 32 bits.
...
- Add sanity checks to lookup().
- Implement the 'l' modifier in printf().
Submitted by: tmm
2002-03-05 11:22:43 +00:00
Jake Burkholder
dd4af53607
Catch up to change in tte format.
...
Forgetten by: jake
Submitted by: tmm
2002-03-01 06:17:28 +00:00