jake
d314b7908f
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
trhodes
28d42899b7
More s/file system/filesystem/g
2002-05-16 21:28:32 +00:00
obrien
f788b3f04d
Match the default newfs UFS block size.
2002-05-13 05:09:34 +00:00
jake
2923a1a3ac
Attempt to not crash and burn on UltraSPARC III machines; the cpuid property
...
is named differently.
2002-05-11 22:05:22 +00:00
obrien
ce04447cdf
-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
9a5eae2a45
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
11cf71a416
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
40d13085f4
Add an exit function.
2002-04-24 02:50:59 +00:00
jake
628ea2a252
Add -Wno-unused.
2002-04-24 02:50:36 +00:00
jake
3473cf4ec1
memcpy, memset -> bcopy, bzero.
2002-04-24 02:24:32 +00:00
jake
ab92bb92b7
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
205c7831cd
Remove xfsread. Just call fsread directly.
2002-04-24 01:47:05 +00:00
jake
1aa7da0fd6
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
obrien
76b7ec65d9
o Use our own elf2aout now.
...
o Generalize a little.
2002-04-21 02:37:55 +00:00
tmm
eb20435a69
Do not use semi-fixed TLB slots for the 4M kernel pages any more.
2002-04-02 17:10:15 +00:00
tmm
2025cfe33a
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
tmm
a683bcc922
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
tmm
7151c10d96
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
obrien
d6e11fba68
was repocopied to ../boot1
2002-03-28 02:56:05 +00:00
obrien
892e01faba
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
obrien
69ebea4b1c
Opps, bootblock component is no more.
2002-03-28 01:41:23 +00:00
obrien
21fae6eb80
Add a Makefile for sparc64 at this level.
2002-03-28 01:01:43 +00:00
robert
3114b0f152
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
29222a8f67
- 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
7d70ce2abc
Catch up to change in tte format.
...
Forgetten by: jake
Submitted by: tmm
2002-03-01 06:17:28 +00:00
robert
01103f4256
- Fix indentation and return statements to conform to style(9).
...
- Use the __FBSDID macro.
- Fix some warnings.
Submitted by: obrien (partly)
2002-02-26 10:05:20 +00:00
jake
33e8ee5265
Keep track of the ttes used to map the kernel and pass them to it as loader
...
metadata. Modify tlb handling functions to take a tte, instead of virtual
address, physical address and flags.
2002-02-23 11:06:37 +00:00
jake
ce801add09
Add make variables for fs support and propagate them to CFLAGS. Put
...
-ffreestanding in CFLAGS. Remove unnecessary LDFLAGS.
2002-02-23 04:35:28 +00:00
jake
c34e322792
Fix fs support ifdefs. Add tftp support. Add physical and virtual
...
watchpoint support for debugging (under LOADER_DEBUG). Claim the
physical and virtual addresses used to map the kernel from the prom;
we map it ourselves behind the scenes though. Add a reboot command.
Submitted by: tmm
2002-02-23 04:04:30 +00:00
jake
9ee486a3f2
Allocate a frame on our initial stack so that it doesn't run off into
...
random memory. Disable interrupts while loading the tlb.
Submitted by: tmm
2002-02-23 03:38:18 +00:00
jake
cd8694ee32
Include <machine/metadata.h>.
2002-02-23 03:33:39 +00:00
robert
a1db61378b
Add the FreeBSD/sparc64 bootblock and its make file.
2002-02-15 12:49:20 +00:00
robert
099b3fa082
Avoid having the text and data sections merged into one program
...
header table entry by removing the -N flag from the LDFLAGS.
2001-12-28 22:12:38 +00:00
jake
cf11e2a00d
Add code to copy the enironment and loader metadata into kernel space.
2001-10-30 06:37:36 +00:00
jake
db9bc81630
Add definitions for network support, doesn't work yet.
...
Pass the right arguments to the kernel.
Replace magic numbers with symbolic constants.
Pass the real openfirmware entry point to OF_init.
2001-10-30 06:31:45 +00:00
jake
2fe78b0a1e
Use ENTRY() for defining functions in asm.
...
Remove asm functions to call the openfirmware and kernel entry points;
we can just call them directly.
Don't use the stack pointer for an intermediate result in setx.
Put the stack in the bss.
2001-10-30 06:27:34 +00:00
robert
ffc6df5e2b
Fix some warnings.
2001-10-15 14:40:36 +00:00
robert
c710d21b7e
Add the FreeBSD/sparc64 boot loader source files.
2001-10-15 14:35:39 +00:00
robert
d4a2167afc
Add a Makefile for the sparc64 boot loader.
2001-10-15 10:36:35 +00:00