Home | History | Annotate | Download | only in ofwboot
History log of /src/sys/arch/ofppc/stand/ofwboot/Locore.c
RevisionDateAuthorComments
 1.23  20-Sep-2014  phx A stack size of 8K is too small for a block buffer of 65536 bytes.
Increased the stack size to 128K. This makes ofwboot work with FirmWorks
OpenFirmware systems again (tested with Motorola PowerStack II).
 1.22  12-Jan-2009  tsutsui branches: 1.22.24; 1.22.40;
WARNSfy
 1.21  12-Feb-2008  garbled branches: 1.21.6; 1.21.10; 1.21.18;
Add a very quick and simple hack to allow ofwboot to be compiled into a
program that dumps the entire ofw device tree automatically. I needed
this functionality to collect ofw dumps from users, and it doesn't hurt
to just commit it, as it's all protected inside a #ifdef OFWDUMP.
 1.20  24-Jan-2008  garbled Add padding to align the rodata section. This fixes a strange bug
where the bootloader would freak out if various printfs were enabled or
disabled.

Add code to autodetect a 64bit cpu, and attempt to load a different set
of kernels if they exist.

Bump version to 1.9
 1.19  23-Jan-2008  garbled Add a new mkbootinfo.sh script that builds a bootinfo.txt file. Remove a
printf in ofwboot.
 1.18  09-Jan-2008  garbled Changes to the ofppc ofwboot to make it boot on an IBM CHRP RS/6000.
Tested on a pegasos II and a 7044-270. Also, switch away from the hacked
up alloc.c we were using, and use the stock libsa one.
 1.17  24-Nov-2007  jmmv branches: 1.17.6;
Fix a typo in a comment, and while here also drop trailing whitespace.
 1.16  17-Oct-2007  garbled branches: 1.16.2;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.15  21-May-2007  tsutsui branches: 1.15.8; 1.15.10;
- convert to register prefixes
- zero out BSS before we start calling into C code instead of memset()
(pulled from macppc/stand/ofwboot/Locore.c rev 1.16)
 1.14  27-Jan-2006  uwe branches: 1.14.28; 1.14.30; 1.14.36;
Tell gcc that startup and stack are used.
 1.13  24-Dec-2005  perry branches: 1.13.2;
bare asm -> __asm
 1.12  11-Dec-2005  christos merge ktrace-lwp.
 1.11  08-Oct-2003  simonb branches: 1.11.16;
Don't use multi-line strings (keeps gcc331 happy).
 1.10  14-Jul-2003  aymeric . ANSIfy a bit more
. use the boot_entry_t type for the entry point

Makes ofwboot compile with -Wmissing-prototypes -Wstrict-prototypes, as
suggested by Chuck Silvers in a private e-mail.
 1.9  26-Jun-2003  aymeric branches: 1.9.2;
. ANSIfy
. Fix a missing return
. replace %x by %p to print pointers in OFW_DEBUG printf's
 1.8  25-Oct-2002  briggs Double the amount of stack space for ofwboot.
 1.7  18-Sep-2002  chs add OF_boot(), call it if the user says "reboot".
try loading "netbsd.ofppc" first, to allow sharing root fs.
 1.6  23-Oct-2001  thorpej branches: 1.6.4;
Clean up the NetBSD/ofppc boot loader:
- Garbage collect some cruft that doesn't apply to the ofppc port.
- Make our OFW-friendly alloc.c more like the libsa alloc.c
- Generally reduce some differences where we can between this
boot loader and the NetBSD/macppc boot loader.
- Use libsa's loadfile().
- Fix DDB symbol loading -- Add a magic number after the args string
so the kernel knows the symbols are there, provide both ssym and
esym, and make sure all these values are aligned to a 4-byte boundary.
- Add support for MS-DOS file systems.
 1.5  17-Jan-2001  ws branches: 1.5.4;
Increase stack size to make this work again.
 1.4  22-Feb-1998  mycroft branches: 1.4.14;
Clean up #include paths.
Copy prom2boot() from kernel source.
rename _rtt() to OF_exit(), and add a _rtt() that calls it.
 1.3  28-Apr-1997  mycroft A handle of 0 means the open failed...
 1.2  28-Apr-1997  mycroft DTRT if OF_read() returns 0 when no data is available.
 1.1  16-Apr-1997  thorpej New OpenFirmware boot code for NetBSD/powerpc, based on Wolfgang's original
NetBSD/powerpc boot program. Highligts:
- Rearrange a bit so that we can sanely add boot programs for
non-OpenFirmware systems.
- Add support for loading compressed kernels (for booting from
1.44M floppies).
- Add support for loading Elf kernels (Elf is the new standard format
for NetBSD/powerpc). (XXX Don't load symbols right now - the code
to do it is there, but I don't particularly like how space for the
symbol table is allocated; I will revisit this soon'ish).
 1.4.14.1  11-Feb-2001  bouyer Sync with HEAD.
 1.5.4.2  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.5.4.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.4.3  11-Nov-2002  nathanw Catch up to -current
 1.6.4.2  18-Oct-2002  nathanw Catch up to -current.
 1.6.4.1  23-Oct-2001  nathanw file Locore.c was added on branch nathanw_sa on 2002-10-18 02:39:20 +0000
 1.9.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.9.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.9.2.1  03-Aug-2004  skrll Sync with HEAD
 1.11.16.6  27-Feb-2008  yamt sync with head.
 1.11.16.5  04-Feb-2008  yamt sync with head.
 1.11.16.4  21-Jan-2008  yamt sync with head
 1.11.16.3  07-Dec-2007  yamt sync with head
 1.11.16.2  03-Sep-2007  yamt sync with head.
 1.11.16.1  21-Jun-2006  yamt sync with head.
 1.13.2.1  01-Feb-2006  yamt sync with head.
 1.14.36.1  22-May-2007  matt Update to HEAD.
 1.14.30.1  11-Jul-2007  mjf Sync with head.
 1.14.28.2  03-Dec-2007  ad Sync with HEAD.
 1.14.28.1  27-May-2007  ad Sync with head.
 1.15.10.3  23-Mar-2008  matt sync with HEAD
 1.15.10.2  09-Jan-2008  matt sync with HEAD
 1.15.10.1  06-Nov-2007  matt sync with HEAD
 1.15.8.1  27-Nov-2007  joerg Sync with HEAD. amd64 Xen support needs testing.
 1.16.2.2  18-Feb-2008  mjf Sync with HEAD.
 1.16.2.1  08-Dec-2007  mjf Sync with HEAD.
 1.17.6.1  10-Jan-2008  bouyer Sync with HEAD
 1.21.18.1  19-Jan-2009  skrll Sync with HEAD.
 1.21.10.1  04-May-2009  yamt sync with head.
 1.21.6.1  17-Jan-2009  mjf Sync with HEAD.
 1.22.40.1  22-Sep-2014  martin Pull up following revision(s) (requested by phx in ticket #114):
sys/arch/ofppc/stand/ofwboot/ofwstart.S: revision 1.4
sys/arch/ofppc/stand/ofwboot/Locore.c: revision 1.23
sys/arch/ofppc/stand/ofwboot/version: revision 1.13
A stack size of 8K is too small for a block buffer of 65536 bytes.
Increased the stack size to 128K. This makes ofwboot work with FirmWorks
OpenFirmware systems again (tested with Motorola PowerStack II).
 1.22.24.1  03-Dec-2017  jdolecek update from HEAD

RSS XML Feed