Commit Graph

111 Commits

Author SHA1 Message Date
igor.v.kovalenko
f13fecfb60 v1 Preliminary support for softint handler with trap to bug on other irqs
v0->v1: removed extra instructions

Signed-off-by: igor.v.kovalenko@gmail.com
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@566 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-22 06:04:00 +00:00
igor.v.kovalenko
6433c74bf7 Enable timer after trap table is initialized
Signed-off-by: igor.v.kovalenko@gmail.com
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@563 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-21 19:15:55 +00:00
igor.v.kovalenko
b26b3c4391 Save locked tlb space by aligning to 512k pages.
Signed-off-by: igor.v.kovalenko@gmail.com
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@562 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-21 19:15:46 +00:00
Blue Swirl
bc770eddac Fix OpenBSD boot
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@560 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-19 19:44:40 +00:00
Blue Swirl
9162f1b584 Introduce quiet build
Make forthstrap quiet by default. Use generic rules when possible, unify
the rules and cleanup white space. Use ld flag --whole-archive to avoid
some local rule use. We can also remove some hacks introduced to avoid
missing symbols.

Fix problems brought in by ld flag --whole-archive:
 * x86: fix missing nvram symbols
 * PPC: disable misc.S build for qemu (conflicts with our libgcc)

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@556 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-17 16:58:42 +00:00
Blue Swirl
9d5df30977 Fix most Sparc64 warnings from Sparse
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@536 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-04 20:37:36 +00:00
Blue Swirl
44ede105c1 switch sparc64 to ofmem module implementation (Igor Kovalenko)
git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@528 f158a5a8-5612-0410-a976-696ce0be7e32
2009-08-02 11:08:01 +00:00
Blue Swirl
ffd20b950d Switch sparc64 to ofmem (Igor Kovalenko)
Initialize ofmem at startup.
Switch malloc/realloc/free to use ofmem.
Implement runtime migration of startup mappings to ofmem.
Implement mmu miss handlers to install tlb entries based on ofmem
translations list.


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@517 f158a5a8-5612-0410-a976-696ce0be7e32
2009-07-31 11:16:24 +00:00
Blue Swirl
e5b34330ee Sparc64 ofmem implementation (Igor Kovalenko)
Add sparc64 ofmem implementation.


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@516 f158a5a8-5612-0410-a976-696ce0be7e32
2009-07-31 11:15:30 +00:00
Blue Swirl
480883cebd Add a file missing from r508
git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@510 f158a5a8-5612-0410-a976-696ce0be7e32
2009-07-12 10:13:39 +00:00
igor.v.kovalenko
5f5b8d6f8c sparc64: fix registers dealing with client (Igor Kovalenko)
Signed-off-by: igor.v.kovalenko@gmail.com


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@508 f158a5a8-5612-0410-a976-696ce0be7e32
2009-07-11 12:25:26 +00:00
Blue Swirl
b5b8d3c039 sparc64: clear unused registers when calling client image (Igor Kovalenko)
git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@500 f158a5a8-5612-0410-a976-696ce0be7e32
2009-05-30 07:43:58 +00:00
Blue Swirl
047609e0fa Add claim and release client methods
git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@496 f158a5a8-5612-0410-a976-696ce0be7e32
2009-05-23 16:03:20 +00:00
Blue Swirl
b098842b5b Use firmware configuration instead of NVRAM (initial patch by Aurelien Jarno)
Use firmware configuration device for boot device, kernel, initrd and
kernel command line parameters on PPC, Sparc32 and Sparc64.


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@479 f158a5a8-5612-0410-a976-696ce0be7e32
2009-03-08 09:45:25 +00:00
Blue Swirl
0c9a399601 Clear TLBs on reset
git-svn-id: svn://coreboot.org/openbios/openbios-devel@457 f158a5a8-5612-0410-a976-696ce0be7e32
2009-02-21 11:11:56 +00:00
Blue Swirl
c39ebf65f7 Add #defines for PCI vendor and device IDs for all devices, taken from Linux
and pciids.sourceforge.net.

Also fix a confusion between Sabre and Simba device IDs.


git-svn-id: svn://coreboot.org/openbios/openbios-devel@437 f158a5a8-5612-0410-a976-696ce0be7e32
2009-02-01 11:25:16 +00:00
Blue Swirl
36bab875b8 Refactor QEMU firmware confguration device handling (based on patch by
Aurelien Jarno)


git-svn-id: svn://coreboot.org/openbios/openbios-devel@432 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-31 08:49:16 +00:00
Blue Swirl
91cba136b9 Add UPA decode and encode methods
git-svn-id: svn://coreboot.org/openbios/openbios-devel@424 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-25 07:31:15 +00:00
Blue Swirl
65057d6167 Fix Sabre device ID
git-svn-id: svn://coreboot.org/openbios/openbios-devel@423 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-25 07:30:45 +00:00
Blue Swirl
bcd092ad4a Add support for configuring for multiple targets
git-svn-id: svn://coreboot.org/openbios/openbios-devel@420 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-23 20:09:26 +00:00
Blue Swirl
0726678a35 Use PCI IDE controller
git-svn-id: svn://coreboot.org/openbios/openbios-devel@415 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-17 18:42:48 +00:00
Blue Swirl
52f8efadc0 Set up console input and output variables correctly
git-svn-id: svn://coreboot.org/openbios/openbios-devel@414 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-17 15:37:30 +00:00
Blue Swirl
e66ae17fc7 Shave off a few padding bytes
git-svn-id: svn://coreboot.org/openbios/openbios-devel@389 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-11 08:16:52 +00:00
Blue Swirl
91a9c7865a Add EBUS bridge, refactor PC serial and keyboard, generalize floppy
git-svn-id: svn://coreboot.org/openbios/openbios-devel@377 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-10 11:37:34 +00:00
Blue Swirl
0c3877f095 Enable Sparc64 PCI probing, use probed display but not IDE
git-svn-id: svn://coreboot.org/openbios/openbios-devel@376 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-09 21:00:38 +00:00
Blue Swirl
8a4aadc9b8 Create PCI properties "interrupts", "interrupt-map" and "interrupt-map-mask" (Laurent Vivier)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@363 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-07 15:45:26 +00:00
Blue Swirl
2742ea5723 Really create a tree for PCI devices (Laurent Vivier)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@362 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-07 15:43:10 +00:00
Blue Swirl
4a9d1a7613 Support cd/cdrom and hd/disk aliases on all architectures
git-svn-id: svn://coreboot.org/openbios/openbios-devel@361 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-06 20:27:01 +00:00
Blue Swirl
a767eeb2d4 Allocate Forth memory and dictionary using malloc like PPC (cf. r345)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@347 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-04 14:47:11 +00:00
Blue Swirl
b700809e7f Clean up Sparc64 memory management
Concentrate memory and MMU management (lib.c malloc, OF /memory) to lib.c.


git-svn-id: svn://coreboot.org/openbios/openbios-devel@346 f158a5a8-5612-0410-a976-696ce0be7e32
2009-01-04 12:53:26 +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
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
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
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
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
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
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
Laurent Vivier
f4f7644d8c This patch moves all definitions of REGISTER_NAMED_NODE and
REGISTER_NODE_METHODS to openbios/bindings.h.

Signed-off-by: Laurent Vivier <Laurent@lvivier.info>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/openbios/openbios-devel@252 f158a5a8-5612-0410-a976-696ce0be7e32
2008-11-24 12:15:08 +00:00