Blue Swirl
91148c0702
Clean up Sparc32 memory management
...
Concentrate memory and MMU management (lib.c malloc, romvec opb_, iommu,
OF /memory) to lib.c.
git-svn-id: svn://coreboot.org/openbios/openbios-devel@344 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-03 13:45:02 +00:00
Blue Swirl
ec53fcec45
Clean up video routines
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@343 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-02 14:53:33 +00:00
Blue Swirl
2137312f95
Clean up font handling
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@342 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-02 13:32:15 +00:00
Blue Swirl
b2692171f9
Correct duplicate /cpus and more (Laurent Vivier)
...
Correct duplicate /cpus
Correct mmu properties in /chosen
Add mmu methods to /cpus/<cpu>
git-svn-id: svn://coreboot.org/openbios/openbios-devel@341 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-02 07:41:40 +00:00
Blue Swirl
e3ff961f02
Fix Unix host build on PPC
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@339 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-01 07:34:30 +00:00
Blue Swirl
aad2f953c6
Suppress useless printing of kernel address and size
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@338 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-31 20:07:10 +00:00
Blue Swirl
5548667b76
Define the translations property for cpu (Laurent Vivier)
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@333 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-31 16:19:15 +00:00
Blue Swirl
7ae5790865
Remove unused definition from qemu/tree.fs and move cd and hd alias
...
definition to ide.c (Laurent Vivier)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@332 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-31 16:18:34 +00:00
Blue Swirl
c7621f3a8b
Add CPU reg node from PIR if available
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@328 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-28 14:04:49 +00:00
Blue Swirl
000686c328
Add more CPU definitions
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@326 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-25 20:23:02 +00:00
Blue Swirl
1beaaac8fa
Allow yaboot to read files from cdrom (Laurent Vivier)
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@325 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-25 10:38:40 +00:00
Blue Swirl
612dd8d75d
Change cdrom alias (original patch by Laurent Vivier)
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@324 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-25 10:36:19 +00:00
Blue Swirl
f7e2ff3e4c
Get ram size from the configuration device
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@322 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-23 20:36:45 +00:00
Blue Swirl
978e8b3003
Probe CPU type
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@320 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-23 15:54:58 +00:00
Blue Swirl
32591c48f0
Check configuration device version
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@319 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-23 13:38:11 +00:00
Blue Swirl
a7c3b47d20
Clean up configuration device and NVRAM access, add UUID to Sparc32
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@318 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-23 13:14:33 +00:00
Blue Swirl
37cc208996
Move serial console functions to obio.c
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@317 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-23 12:07:07 +00:00
Blue Swirl
18cd147df3
Get machine ID, boot device, preloaded kernel parameters and UUID from Qemu
...
configuration device and NVRAM.
git-svn-id: svn://coreboot.org/openbios/openbios-devel@315 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-23 11:57:36 +00:00
Blue Swirl
882edb55de
Parse bootscript in ppc\bootinfo.txt
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@314 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-23 11:54:25 +00:00
Blue Swirl
fa30d06c1d
Use boot-device and boot-args NVRAM variables, fix warnings when debugging
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@313 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-23 11:53:13 +00:00
Blue Swirl
58d21fb1c2
Change part_length to a define
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@312 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-23 10:15:14 +00:00
Blue Swirl
972aba5fe6
Add clock-frequency property (original patch by Igor Kovalenko)
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@308 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-23 08:11:53 +00:00
Blue Swirl
24b4bc7fe8
Fix Linux OOPS (Laurent Vivier)
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@305 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-22 06:19:19 +00:00
Blue Swirl
187a0ae950
Add missing "static"
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@304 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-21 14:24:30 +00:00
Blue Swirl
7456a60d4b
Avoid using NVRAM area for ROM, add SRE vector
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@303 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-21 10:17:03 +00:00
Blue Swirl
e7b906fd86
Fix gcc and Sparse warnings generated by r301
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@302 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-21 09:15:57 +00:00
Laurent Vivier
e11b806d1c
qemu better support
...
This patches copies all needed ppc files to qemu and modifies them.
The generated OpenBIOS image must be loaded at adresse 0xfff00000 by Qemu.
It is able to load Yaboot from disk and Yaboot is able to load Linux, but Linux hangs somewhere... of course it needs more work (but this cleans up my patch queue).
Thank you to Blue Swirl and Aurelien Jarno for their help.
Signed-off-by: Laurent Vivier <Laurent@lvivier.info >
git-svn-id: svn://coreboot.org/openbios/openbios-devel@301 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-21 08:30:42 +00:00
Laurent Vivier
15a6ebf30b
Qemu console cleanup (Laurent Vivier)
...
This patch removes unused macro from qemu/console.c
Signed-off-by: Laurent Vivier <Laurent@lvivier.info >
git-svn-id: svn://coreboot.org/openbios/openbios-devel@298 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-20 20:22:17 +00:00
Blue Swirl
d7208a6daf
Fix Sparse warnings
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@296 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-20 18:36:23 +00:00
Blue Swirl
7e21fc929d
Fix almost all remaining warnings
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@294 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-20 17:15:47 +00:00
Blue Swirl
edafcf6e86
IDE fixes for PPC (Laurent Vivier)
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@292 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-20 14:48:40 +00:00
Blue Swirl
c5d270009e
Warning fixes for Sparc32, Sparc64, PPC
...
Fix warnings that would be caused by gcc flag -Wwrite-strings and
-Wmissing-prototypes. Also fix most PPC specific warnings.
git-svn-id: svn://coreboot.org/openbios/openbios-devel@288 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-14 12:54:23 +00:00
Blue Swirl
a757800a01
Remove unnecessary trailing newlines
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@285 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-13 09:26:41 +00:00
Blue Swirl
58ca864765
Delete extra whitespace at the end of line, which annoys quilt
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@284 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-11 20:30:53 +00:00
Blue Swirl
3038a07be7
Fix fake CPU ID value (Igor Kovalenko)
...
Small correction: cpuid property of qemu cpu should be "0" for the
linux kernel to boot on qemu. This is because kernel is reading cpu
registers to find out current smp processor ID and it happens to find
out "0" cpuid because corresponding register is zeroed by qemu.
Currently kernel fails since there is no "0" cpu node in tree.
git-svn-id: svn://coreboot.org/openbios/openbios-devel@283 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-11 17:10:03 +00:00
Blue Swirl
e338f06ba1
Initialize VGA from PCI configuration (Laurent Vivier)
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@281 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-05 18:31:27 +00:00
Blue Swirl
1b49d198f1
Fix NetBSD booting
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@278 f158a5a8-5612-0410-a976-696ce0be7e32
2008-12-01 18:04:16 +00:00
Blue Swirl
c77259ec3a
Change uses of sprintf to snprintf
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@277 f158a5a8-5612-0410-a976-696ce0be7e32
2008-11-30 13:44:38 +00:00
Blue Swirl
bf0c6b1c38
Fix most warnings from Sparse
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@274 f158a5a8-5612-0410-a976-696ce0be7e32
2008-11-30 11:54:01 +00:00
Blue Swirl
c52d26b976
Reduce warnings by 29%
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@273 f158a5a8-5612-0410-a976-696ce0be7e32
2008-11-29 19:31:28 +00:00
Blue Swirl
a0cabb495a
Fix most print format warnings
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@272 f158a5a8-5612-0410-a976-696ce0be7e32
2008-11-29 16:24:51 +00:00
Blue Swirl
f446864114
Use pci_arch_t also on Sparc64 (but disable PCI probing for now, hangs)
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@270 f158a5a8-5612-0410-a976-696ce0be7e32
2008-11-29 13:18:32 +00:00
Blue Swirl
80df7beb9f
Eliminate M4 macros
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@266 f158a5a8-5612-0410-a976-696ce0be7e32
2008-11-28 19:40:28 +00:00
Blue Swirl
5340b2fa51
Add some debug macros and correct nvram_init() call for other PPC
...
architectures (Laurent Vivier).
git-svn-id: svn://coreboot.org/openbios/openbios-devel@264 f158a5a8-5612-0410-a976-696ce0be7e32
2008-11-25 19:50:53 +00:00
Blue Swirl
b210e52224
Rearrange nvram init
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@262 f158a5a8-5612-0410-a976-696ce0be7e32
2008-11-25 18:30:22 +00:00
Stefan Reinauer
99568ec767
ADB/CUDA fixes
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@259 f158a5a8-5612-0410-a976-696ce0be7e32
2008-11-24 12:41:36 +00:00
Stefan Reinauer
34f110b694
Add Bochs VBE VGA support
...
git-svn-id: svn://coreboot.org/openbios/openbios-devel@258 f158a5a8-5612-0410-a976-696ce0be7e32
2008-11-24 12:38:23 +00:00
Laurent Vivier
ec800147a3
Copy serial support from arch/amd64/console.c
...
Signed-off-by: Laurent Vivier <Laurent@lvivier.info >
Acked-by: Stefan Reinauer <stepan@coresystems.de >
git-svn-id: svn://coreboot.org/openbios/openbios-devel@256 f158a5a8-5612-0410-a976-696ce0be7e32
2008-11-24 12:23:01 +00:00
Laurent Vivier
bee6afbc60
Access to nvram must left shifted by 4.
...
Initialize device tree (used by PCI patch, to follow).
Signed-off-by: Laurent Vivier <Laurent@lvivier.info >
Acked-by: Stefan Reinauer <stepan@coresystems.de >
git-svn-id: svn://coreboot.org/openbios/openbios-devel@255 f158a5a8-5612-0410-a976-696ce0be7e32
2008-11-24 12:21:36 +00:00
Laurent Vivier
c619e7c4a1
Define the ISA io base according machine type.
...
Signed-off-by: Laurent Vivier <Laurent@lvivier.info >
Acked-by: Stefan Reinauer <stepan@coresystems.de >
git-svn-id: svn://coreboot.org/openbios/openbios-devel@254 f158a5a8-5612-0410-a976-696ce0be7e32
2008-11-24 12:19:05 +00:00