Subversion Repositories HelenOS

Rev

Go to most recent revision | Hide changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff Changes
1790 6527 d 6 h jermar /trunk/ Remove OpenFirmware calls from kernel/ entirely.

Switch the sparc64 port to use bootinfo.

Copy memcpy from boot/ to sparc64 kernel/ and
adjust it for memcpy_from/to_uspace.
 
/trunk/kernel/genarch/include/ofw
/trunk/kernel/genarch/src/ofw
/trunk/boot/arch/sparc64/loader/asm.S
/trunk/boot/arch/sparc64/loader/main.c
/trunk/boot/arch/sparc64/loader/main.h
/trunk/boot/genarch/ofw.c
/trunk/boot/genarch/ofw.h
/trunk/kernel/arch/ppc32/src/ppc32.c
/trunk/kernel/arch/sparc64/Makefile.inc
/trunk/kernel/arch/sparc64/_link.ld.in
/trunk/kernel/arch/sparc64/include/boot/boot.h
/trunk/kernel/arch/sparc64/include/drivers/fb.h
/trunk/kernel/arch/sparc64/include/drivers/i8042.h
/trunk/kernel/arch/sparc64/include/drivers/tick.h
/trunk/kernel/arch/sparc64/src/asm.S
/trunk/kernel/arch/sparc64/src/console.c
/trunk/kernel/arch/sparc64/src/drivers/i8042.c
/trunk/kernel/arch/sparc64/src/mm/frame.c
/trunk/kernel/arch/sparc64/src/mm/memory_init.c
/trunk/kernel/arch/sparc64/src/sparc64.c
/trunk/kernel/arch/sparc64/src/start.S
/trunk/kernel/genarch/Makefile.inc
/trunk/kernel/genarch/src/fb/fb.c
/trunk/kernel/generic/src/mm/frame.c
1789 6527 d 9 h jermar /trunk/ Fix ofw_memmap() in boot infrastructure.
The cell size is 32-bit and not equal sizeof(ofw_arg_t).
Define architecture dependant #address-cells and #size-cells for cases
the respective properties are missing in the OpenFirmware device tree.
The algorithm now works both for ppc32 and sparc64.

Add memmap_t, screen_t and keyboard_t to sparc64 bootinfo structure.
Be more verbose during sparc64 boot.

Move ALIGN_UP to generic part of boot/.

Change header guards in several places so that they don't contain double underscore.
 
/trunk/boot/arch/ppc32/loader/ofwarch.c
/trunk/boot/arch/ppc32/loader/ofwarch.h
/trunk/boot/arch/ppc64/loader/ofwarch.c
/trunk/boot/arch/ppc64/loader/ofwarch.h
/trunk/boot/arch/sparc64/loader/ofwarch.c
/trunk/boot/arch/sparc64/loader/ofwarch.h
/trunk/boot/generic/align.h
/trunk/kernel/arch/sparc64/include/regdef.h
/trunk/boot/arch/ppc32/loader/ofw.c
/trunk/boot/arch/ppc64/loader/ofw.c
/trunk/boot/arch/sparc64/loader/ofw.c
/trunk/boot/arch/ppc32/loader/Makefile
/trunk/boot/arch/ppc32/loader/asm.h
/trunk/boot/arch/ppc32/loader/boot.S
/trunk/boot/arch/ppc32/loader/main.c
/trunk/boot/arch/ppc32/loader/main.h
/trunk/boot/arch/ppc32/loader/types.h
/trunk/boot/arch/ppc64/loader/Makefile
/trunk/boot/arch/ppc64/loader/boot.S
/trunk/boot/arch/ppc64/loader/main.c
/trunk/boot/arch/ppc64/loader/main.h
/trunk/boot/arch/ppc64/loader/types.h
/trunk/boot/arch/sparc64/loader/Makefile
/trunk/boot/arch/sparc64/loader/asm.h
/trunk/boot/arch/sparc64/loader/boot.S
/trunk/boot/arch/sparc64/loader/main.c
/trunk/boot/arch/sparc64/loader/main.h
/trunk/boot/arch/sparc64/loader/types.h
/trunk/boot/genarch/ofw.c
/trunk/boot/genarch/ofw.h
/trunk/boot/generic/gentypes.h
/trunk/boot/generic/printf.h
/trunk/kernel/arch/sparc64/include/register.h
/trunk/kernel/arch/sparc64/src/asm.S
/trunk/kernel/arch/sparc64/src/start.S
1787 6529 d 6 h decky / move kernel/trunk, uspace/trunk and boot/trunk to trunk/kernel, trunk/uspace and trunk/boot  
/trunk
/trunk/boot
/trunk/kernel
/trunk/uspace
/boot/trunk
/kernel/trunk
/uspace/trunk
1783 6530 d 3 h jermar /boot/trunk/ Some 32-bit vs. 64-bit fixes.

Make the call to OpenFirmware client interface architecture dependent.
For instance and contrary to my previous experience, the sparc64 version of
'translate' method would not work reliably unless the Address Mask bit in the
PSTATE register is cleared during duration of the call.

sparc64 and ppc32 OpenFirmware seem to differ in details, for example, the above
mentioned method 'translate' signals success by setting the first return value
to -1 on sparc64 while on ppc32 the value is/stays (???) zero.
 
/boot/trunk/arch/ppc32/loader/boot.S
/boot/trunk/arch/ppc32/loader/main.c
/boot/trunk/arch/ppc32/loader/ofw.c
/boot/trunk/arch/ppc64/loader/boot.S
/boot/trunk/arch/ppc64/loader/ofw.c
/boot/trunk/arch/sparc64/loader/asm.S
/boot/trunk/arch/sparc64/loader/boot.S
/boot/trunk/arch/sparc64/loader/main.c
/boot/trunk/arch/sparc64/loader/ofw.c
/boot/trunk/genarch/ofw.c
/boot/trunk/genarch/ofw.h
1771 6537 d 4 h jermar /boot/trunk/ Cleanup OpenFirmware driver and prepare it for integration with sparc64 bootloader.
Start sparc64 boot loader (now inactive and unfunctional).
 
/boot/trunk/arch/sparc64/loader
/boot/trunk/arch/sparc64/loader/ofw.c
/boot/trunk/arch/sparc64/loader/msim.c
/boot/trunk/arch/sparc64/loader/msim.h
/boot/trunk/arch/sparc64/loader/regname.h
/boot/trunk/arch/ppc32/loader/ofw.c
/boot/trunk/arch/ppc64/loader/ofw.c
/boot/trunk/arch/sparc64/Makefile.inc
/boot/trunk/arch/sparc64/loader/Makefile
/boot/trunk/arch/sparc64/loader/asm.S
/boot/trunk/arch/sparc64/loader/asm.h
/boot/trunk/arch/sparc64/loader/boot.S
/boot/trunk/arch/sparc64/loader/main.c
/boot/trunk/arch/sparc64/loader/pack
/boot/trunk/arch/sparc64/loader/types.h
/boot/trunk/genarch/ofw.c
/boot/trunk/genarch/ofw.h
1764 6545 d 2 h jermar /boot/trunk/ Cleanup boot infrastructure: ppc32 (and elsewhere).  
/boot/trunk/arch/ppc32/loader/types.h
/boot/trunk/genarch/ofw.c
/boot/trunk/genarch/ofw.h
/boot/trunk/generic/gentypes.h
/boot/trunk/arch/ppc32/loader/ofw.h
/boot/trunk/arch/ppc32/loader/printf.c
/boot/trunk/arch/ppc32/loader/printf.h
/boot/trunk/generic/types.h
/boot/trunk/Makefile
/boot/trunk/arch/mips32/Makefile.inc
/boot/trunk/arch/mips32/loader/Makefile
/boot/trunk/arch/mips32/loader/main.c
/boot/trunk/arch/mips32/loader/msim.c
/boot/trunk/arch/mips32/loader/types.h
/boot/trunk/arch/ppc32/Makefile.inc
/boot/trunk/arch/ppc32/loader/Makefile
/boot/trunk/arch/ppc32/loader/main.c
/boot/trunk/arch/ppc32/loader/ofw.c
/boot/trunk/arch/ppc64/Makefile.inc
1620 6564 d 7 h decky /boot/trunk/arch/ppc32/loader/ update boot loader API  
/boot/trunk/arch/ppc32/loader/main.c
/boot/trunk/arch/ppc32/loader/main.h
/boot/trunk/arch/ppc32/loader/ofw.c
/boot/trunk/arch/ppc32/loader/ofw.h
1146 6629 d 9 h decky /boot/trunk/arch/ppc32/loader/ add instruction cache flush
align framebuffer on 128K boundary
change OFW calling method
make OFW code more compatible
 
/boot/trunk/arch/ppc32/loader/asm.S
/boot/trunk/arch/ppc32/loader/asm.h
/boot/trunk/arch/ppc32/loader/main.c
/boot/trunk/arch/ppc32/loader/ofw.c
/boot/trunk/arch/ppc32/loader/ofw.h
1130 6638 d 5 h decky /boot/trunk/arch/ppc32/loader/ extend boot info  
/boot/trunk/arch/ppc32/loader/main.c
/boot/trunk/arch/ppc32/loader/ofw.c
/boot/trunk/arch/ppc32/loader/ofw.h
1075 6645 d 11 h decky /boot/trunk/arch/ppc32/loader/ relocate boot loader structures if needed
(allowing to boot on stupid OFW implementations)
 
/boot/trunk/arch/ppc32/loader/asm.S
/boot/trunk/arch/ppc32/loader/asm.h
/boot/trunk/arch/ppc32/loader/main.c
/boot/trunk/arch/ppc32/loader/main.h
/boot/trunk/arch/ppc32/loader/ofw.c
/boot/trunk/arch/ppc32/loader/ofw.h
1058 6646 d 5 h decky /boot/trunk/arch/ppc32/loader/ relocate kernel in real mode  
/boot/trunk/arch/ppc32/loader/Makefile
/boot/trunk/arch/ppc32/loader/_link.ld
/boot/trunk/arch/ppc32/loader/asm.S
/boot/trunk/arch/ppc32/loader/asm.h
/boot/trunk/arch/ppc32/loader/main.c
/boot/trunk/arch/ppc32/loader/ofw.c
/boot/trunk/arch/ppc32/loader/ofw.h
/boot/trunk/arch/ppc32/loader/regname.h
964 6648 d 15 h decky /boot/trunk/arch/ppc32/loader/ ofw code cleanup
get memory map from ofw
 
/boot/trunk/arch/ppc32/loader/_link.ld
/boot/trunk/arch/ppc32/loader/asm.S
/boot/trunk/arch/ppc32/loader/asm.h
/boot/trunk/arch/ppc32/loader/main.c
/boot/trunk/arch/ppc32/loader/main.h
/boot/trunk/arch/ppc32/loader/ofw.c
/boot/trunk/arch/ppc32/loader/ofw.h
956 6649 d 4 h decky /boot/trunk/arch/ppc32/loader/ relocate ppc32 kernel above 2 GB  
/boot/trunk/arch/ppc32/loader/_link.ld
/boot/trunk/arch/ppc32/loader/asm.S
/boot/trunk/arch/ppc32/loader/asm.h
/boot/trunk/arch/ppc32/loader/main.c
/boot/trunk/arch/ppc32/loader/ofw.c
/boot/trunk/arch/ppc32/loader/ofw.h
953 6649 d 5 h decky /boot/trunk/arch/ppc32/loader/ cleanup and extend OFW code  
/boot/trunk/arch/ppc32/loader/asm.S
/boot/trunk/arch/ppc32/loader/asm.h
/boot/trunk/arch/ppc32/loader/main.c
/boot/trunk/arch/ppc32/loader/ofw.c
/boot/trunk/arch/ppc32/loader/ofw.h
/boot/trunk/arch/ppc32/loader/printf.c
/boot/trunk/arch/ppc32/loader/printf.h
885 6664 d 11 h decky /boot/trunk/ move ppc32 boot loader to /boot tree  
/boot/trunk/arch/ppc32
/boot/trunk/arch/ppc32/Makefile.inc
/boot/trunk/arch/ppc32/loader
/boot/trunk/arch/ppc32/loader/Makefile
/boot/trunk/arch/ppc32/loader/_link.ld
/boot/trunk/arch/ppc32/loader/boot.S
/boot/trunk/arch/ppc32/loader/main.c
/boot/trunk/arch/ppc32/loader/main.h
/boot/trunk/arch/ppc32/loader/ofw.c
/boot/trunk/arch/ppc32/loader/ofw.h
/boot/trunk/arch/ppc32/loader/printf.c
/boot/trunk/arch/ppc32/loader/printf.h
/boot/trunk/arch/ppc32/loader/regname.h
/boot/trunk/boot.config