aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-06-09pci: Modify PCI display devices so that open and close words are not createdMark Cave-Ayland2-0/+9
automatically during initialisation. This is because the work needs to be done by the "is-install" word as per the IEEE1275 specification. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1143 f158a5a8-5612-0410-a976-696ce0be7e32
2013-06-09video_common.c: Move primitive graphic operations into ↵Mark Cave-Ayland6-202/+215
libopenbios/video_common.c. Remove several more low-level graphic primitives from packages/video.c into libopenbios/video_common.c. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1142 f158a5a8-5612-0410-a976-696ce0be7e32
2013-06-09video: Create new video_common.c file for shared video primitive routines.Mark Cave-Ayland6-55/+84
Start by moving the get_color() and set_color() functions into the library. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1141 f158a5a8-5612-0410-a976-696ce0be7e32
2013-06-09terminal.fs: Fix backspace sequence in Forth terminal.Mark Cave-Ayland1-2/+2
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1140 f158a5a8-5612-0410-a976-696ce0be7e32
2013-06-09terminal.fs: Fix linefeeds on the bottom line of the Forth console.Mark Cave-Ayland1-0/+6
Fix cursor position when a linefeed is entered on the bottom line. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1139 f158a5a8-5612-0410-a976-696ce0be7e32
2013-06-09display.fs: Fix fb8-delete-lines within the inbuilt Forth terminal emulator.Mark Cave-Ayland1-7/+7
This enables us to provide a basic scrolling console terminal. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1138 f158a5a8-5612-0410-a976-696ce0be7e32
2013-06-09display.fs: Fix up default-font word.Mark Cave-Ayland2-1/+5
This enables us to execute "default-font set-font" as per the the IEEE1275 specification. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1137 f158a5a8-5612-0410-a976-696ce0be7e32
2013-05-04Bump version to 1.1v1.1Blue Swirl1-1/+1
Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1135 f158a5a8-5612-0410-a976-696ce0be7e32
2013-05-03SPARC64: Add trivial implementation of udelay()Mark Cave-Ayland1-0/+3
The OpenBIOS IDE driver calls udelay() in order to wait for IDE transfers to complete. Without an implementation of udelay(), the IDE timeout is too low causing sporadic errors during periods of high I/O activity. As reported by Artyom Tarasenko. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1134 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-27use the proper name for the virtio-blk devicesArtyom Tarasenko1-1/+1
The name 'virtio-scsi' is misleading, since there is another device called 'virtio-scsi' in QEMU. Use the name 'virtio-blk' instead. Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1133 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-27sparc64: remove hacks for the "interrupts" propertyArtyom Tarasenko4-13/+2
Forcing the "interrupts" property to the value of zero is not necessary, and is incompatible with the IRQ mapping schema introduced in the previous commit Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1132 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-27sparc64: use direct interrupt mapping for PCI devicesArtyom Tarasenko1-0/+7
Every PCI Slot in PBM has 4 directly mapped IRQ lines. Use the IRQ routing schema 0bssnn (Bus, Slot, interrupt Number) described in Section 19.3.3 of UltraSPARC™-IIi User's Manual. Please note that this patch requires the QEMU counterpart patch. Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1131 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-27SPARC32: Remove high memory virtual memory reservationMark Cave-Ayland1-3/+0
The high memory virtual memory reservation introduced in r1114 was a mistake. We need to leave this area as available for clients but simply not allocate from it so that the 0xffc00000 area is free for kadb on older versions of SunOS. Since this part is already handled by the introduction of OFMEM_VIRT_TOP in the same commit then the behaviour is already correct. As reported by Artyom Tarasenko. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1130 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-26SPARC: Another escc alignment fix for escc_keyboardMark Cave-Ayland1-1/+1
Further tests show that the Sun ESCC serial driver routines are also used for the keyboard device. Hence we also need to update the escc_keyboard bindings declaration to use ucell instead of phys_addr_t. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1129 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-21SPARC: Fix escc instance structure alignmentMark Cave-Ayland1-4/+4
When binding C functions to Forth words using NODE_METHODs for the SPARC ESCC serial driver, the C instance parameter pointer was set to be a pointer to a phys_addr_t. This is incorrect in the case where sizeof(phys_addr_t) != sizeof(cell) such as on SPARC32, as the address allocated from the Forth machine would be aligned to sizeof(cell); hence an alignment exception could be generated on random occasions on SPARC32 when the allocated address generated by Forth when opening the device was aligned to just 4 bytes (and not also 8 bytes) when dereferencing the instance parameter pointer. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1128 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-21disk-label.c: Fix opening of raw block devicesMark Cave-Ayland1-49/+56
If open-dev is called on a raw block device such as cdrom, the current code will always attempt to interpose a partition handler for the first valid partition table type it finds. This is incorrect when opening a raw block device directly as it means we "fall into" the first valid partition that can be found, rather than using the full raw device. Fix this by only attempting to interpose a partition handler if the package arguments are not empty. This fixes the NetBSD SPARC64 bootloader as reported by Martin Husemann in https://bugs.launchpad.net/qemu/+bug/1169856. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1127 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-19SPARC64: Remove limit on kernel command line length caused by using a static ↵Mark Cave-Ayland1-6/+5
buffer Instead use malloc() so that we can dynamically allocate the string ourselves. As reported by Rob Landley <rob@landley.net>. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1126 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-19SPARC32: Remove limit on kernel command line length caused by using a static ↵Mark Cave-Ayland1-6/+5
buffer Instead use strdup() so that we can dynamically allocate the string ourselves. As reported by Rob Landley <rob@landley.net>. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1125 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-19PPC: Remove zero page mapping from MMU to enable detection of NULL pointer ↵Mark Cave-Ayland1-3/+8
dereferences Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1124 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-19SPARC32: Remove zero page mapping from MMU to enable detection of NULL ↵Mark Cave-Ayland2-3/+6
pointer dereferences Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Artyom Tarasenko <atar4qemu@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1123 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-19SPARC32: Remove manual fix for bad alignments passed into the romvec ↵Mark Cave-Ayland1-19/+5
malloc() functions Since the handling of bad alignments is now internal to OFMEM, there is no need for the SPARC32 malloc() functions to have to do this any more. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1122 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-19OFMEM: Fix bad alignments passed into the OFMEM claim wordsMark Cave-Ayland1-3/+17
If a memory claim is made with an alignment that is not an exact power of 2, round up to the nearest power of 2 as per the IEEE1275 specification rather than switching to a 4K default. Also we make sure that the minimum alignment is equivalent to PAGE_SIZE. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1121 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-19Remove /chosen "memory" property from the default device tree.Mark Cave-Ayland2-2/+1
Similar to the earlier commit for "mmu", do the same for /chosen "memory" property. Hence all architectures that want the "pretty" memory properties can provide suitable ihandles if required, and those that don't will not fail with a NULL pointer dereference from a zero ihandle. While we're here, correct the SPARC32 initialiser to point to the correct /virtual-memory node for "mmu" so that once again we can get "pretty" memory properties on SPARC32. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1120 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-19OFMEM: Fix selection of reusable memory areas from the internal malloc() ↵Mark Cave-Ayland1-1/+1
freelist. The existing code would incorrectly allow freelist memory to be reused if the requested size were 0x1000 greater than the freelist item size, rather than the freelist item size being 0x1000 greater than the requested size. Since internal memory allocations could be smaller than requested, it would be possible for a caller to clobber over the internal memory heap causing a crash or internal memory corruption. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1119 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-19SPARC32: Add debugging output for calls to the romvec obp_memalloc() and ↵Mark Cave-Ayland1-0/+4
obp_dumb_memalloc() functions. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1118 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-09Remove /chosen "mmu" property from the default device tree (second attempt).Mark Cave-Ayland1-1/+0
Not all architectures have an "mmu" property in /chosen, and having a NULL value causes the internal property formatting nodes to invoke a NULL ihandle reference. The architectures that require it already add it into the device tree as required during initialisation, so there should be no change in behaviour. As reported by Artyom Tarasenko. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1117 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-09Revert "Remove /chosen "mmu" property from the default device tree."Mark Cave-Ayland4-9/+9
This reverts commit 0bfdafe64f0e7e0a3a692292c82ed22df4d2188b as it accidentally contained parts of a subsequent patch. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1116 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-09Remove /chosen "mmu" property from the default device tree.Mark Cave-Ayland4-9/+9
Not all architectures have an "mmu" property in /chosen, and having a NULL value causes the internal property formatting nodes to invoke a NULL ihandle reference. The architectures that require it already add it into the device tree as required during initialisation, so there should be no change in behaviour. As reported by Artyom Tarasenko. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1115 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-09SPARC32: Move Forth dictionary location to a fixed location.Mark Cave-Ayland3-4/+10
Instead of using the automatic allocator to determine the location of the Forth dictionary, allocate it at a fixed location just underneath the ROM itself at 0xffd00000. This patch also prevents corruption within the RAM of the Forth machine by ensuring that we allocate virtual memory outside of OpenBIOS itself, plus reduces the size of the Forth dictionary to 128K so that it meets the memory constraints required to boot Linux and also kadb from older versions of SunOS (as reported by Artyom Tarasenko). Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1114 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-09SPARC32: Fix OFMEM mappings for OpenBIOS so that they show up in the ↵Mark Cave-Ayland1-0/+2
translations property. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1113 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-06sun-parts.c: Fix NULL-dereferencing in sunparts_openArtyom Tarasenko1-1/+1
Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1112 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-05macio: Remove unnecessary newworld checkAmadeusz Sławiński1-26/+24
openpic_init is only called on newworld machines. Signed-off-by: Amadeusz Sławiński <amade@asmblr.net> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1111 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-05pci: Set interrupts property only on newworld machinesAmadeusz Sławiński1-1/+1
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1110 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-05pci/macio: Add missing interrupt-parent propertiesAmadeusz Sławiński2-4/+16
Based on patch from Andreas Tobler. Signed-off-by: Amadeusz Sławiński <amade@asmblr.net> CC: Andreas Tobler <andreast@fgznet.ch> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1109 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-05macio: Fix ide interrupts initializationAmadeusz Sławiński1-3/+5
interrupts and #interrupt-cells are newworld properties. Also oldworld interrupts were not properly set, i.e. second one was always set to 0 instead of correct value. Signed-off-by: Amadeusz Sławiński <amade@asmblr.net> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1108 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-05Allow powerpc-unknown-linux-gnu- toolchain prefixAmadeusz Sławiński1-1/+1
crossdev on gentoo builds crosscompiler with powerpc-unknown-linux-gnu- prefix. Signed-off-by: Amadeusz Sławiński <amade@asmblr.net> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1107 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-05PPC: Add the old-world bootcode device dev:,%BOOT to the bootdevice listMark Cave-Ayland2-140/+1
By adding the bootcode device to the bootdevice list as processed by load, we automatically attempt to invoke the bootcode loader as required. As a consequence of this, we can now remove the separate C codepath used in order to facilitate an old-world boot. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> CC: Alexander Graf <agraf@suse.de> CC: Andreas Färber <afaerber@suse.de> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1106 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-05loader: implement new loader type for CHRP/Apple partition bootcode (%BOOT)Mark Cave-Ayland7-9/+119
One of the primary reasons that issues with the quik bootloader were not detected earlier was because arch/ppc/qemu/main.c has a separate code path for forcing an old-world boot when -boot c is passed to QEMU. This commit implements the bootcode loader as a core OpenBIOS loader which enables old-world payloads such as quik to be executed using: load hd:,%BOOT go Note that we also fix a bug in mac-parts.c to ensure that we don't try and interpose a filesystem package when %BOOT is passed as a filename. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> CC: Alexander Graf <agraf@suse.de> CC: Andreas Färber <afaerber@suse.de> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1105 f158a5a8-5612-0410-a976-696ce0be7e32
2013-04-04ppc: Fix is_apple() for PRePAndreas Färber1-1/+1
It was returning true for ARCH_PREP although not an Apple device. Limit it to Old World and New World Macs. Signed-off-by: Andreas Färber <andreas.faerber@web.de> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1104 f158a5a8-5612-0410-a976-696ce0be7e32
2013-03-22mac-parts.c: Fix auto-partition selection for the dir word.Mark Cave-Ayland2-6/+6
Commit r1100 fixed the quik bootloader but broke automatic partition selection for the dir word. Differentiate between the package having no arguments (argstr == NULL) and the package having empty arguments (argstr == ""), and alter the dir word to use the latter version to invoke the automatic partition selection code when required. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> CC: Alexander Graf <agraf@suse.de> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1103 f158a5a8-5612-0410-a976-696ce0be7e32
2013-03-08PPC: Handle trap_error on ppc64Alexander Graf1-0/+8
When running on ppc64, we have to disable MSR_SF before we issue a lis instruction. All exceptions were doing this, except for the error trap. This isn't crucial, because when we got there we're already screwed up, but let's not confuse users by jumping to invalid addresses. Signed-off-by: Alexander Graf <agraf@suse.de> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1102 f158a5a8-5612-0410-a976-696ce0be7e32
2013-03-03build: improve subdir rulesBlue Swirl1-6/+12
Use subdirectory build rules from QEMU. They allow a parallel build of all available subdirectory targets. Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1101 f158a5a8-5612-0410-a976-696ce0be7e32
2013-02-27mac-parts.c: Fix /packages/mac-parts boot when the package arguments are empty.Mark Cave-Ayland1-2/+2
Commit r1072 removed a couple of NULL pointer checks for package arguments, however if the arguments are empty in Forth then they are converted back to a NULL pointer which causes an exception when dereferenced. Add the checks back in which fixes boot of the debian_lenny_powerpc_small.qcow2 test image with quik once again. Based upon an earlier patch by Alexander Graf <agraf@suse.de>. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> CC: Alexander Graf <agraf@suse.de> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1100 f158a5a8-5612-0410-a976-696ce0be7e32
2013-02-16build: support disjoint build directoryBlue Swirl6-25/+35
Support building in any directory, not just in-tree build. Use VPATH for non-Forth files. Forth compiler does not support explicit paths, so drop source path prefixes added by XML and rely on directories passed with -I flag. Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1099 f158a5a8-5612-0410-a976-696ce0be7e32
2013-02-03SPARC32: microSPARC-II identificationOlivier DANET1-2/+2
For the microSPARC-II = Fujitsu MB86904 = Sun STP1012PGA, PSR.IMPL=0 and PSR.VERS=4. This CPU model is used as default by QEMU when emulating a SparcStation-4 or SparcStation-5. Signed-off-by: Olivier DANET <odanet@caramail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1098 f158a5a8-5612-0410-a976-696ce0be7e32
2013-01-31macio.c: Fix double nvram entry on newworldAmadeusz Sławiński1-6/+0
There are two nvram entries on newworld (for example qemu -M mac99) The first one (nvram@fff04000) has initialized .properties while the other one has words. 0 > dev / ls ... fff75e24 pci@f2000000 fff77848 nvram@fff04000 fff778e0 nvram ok 0 > dev /nvram@fff04000 ok 0 > words ok 0 > .properties name "nvram" reg fff04000 00004000 device_type "nvram" compatible "nvram,flash" ok 0 > dev /nvram@0 ok 0 > words close open seek write read size ok 0 > .properties name "nvram" ok This patch fixes initialization, so only one node is created containing both .properties and words. 0 > dev / ls ... fff75e24 pci@f2000000 fff77868 nvram@fff04000 ok 0 > dev /nvram@fff04000 ok 0 > words close open seek write read size ok 0 > .properties name "nvram" reg fff04000 00004000 device_type "nvram" compatible "nvram,flash" ok Signed-off-by: Amadeusz Sławiński <amade@asmblr.net> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1097 f158a5a8-5612-0410-a976-696ce0be7e32
2013-01-26SPARC32: WIM register update delayOlivier DANET1-0/+1
The SparcV8 standard states, page 134: "If any of the three instructions after a write state register instruction reads any field that was changed by the original write state register instruction, the contents of that field read by that instruction are undefined." The restore instruction depends on the %WIM register, three NOPs must be inserted. Signed-off-by: Olivier DANET <odanet@caramail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1096 f158a5a8-5612-0410-a976-696ce0be7e32
2013-01-26SPARC32: Clear FP registerOlivier DANET1-0/+1
The Frame Pointer register is used in "__switch_context_nosave" (switch.S) which is called at the end of the startup sequence (entry.S). This register should be initialized before use. (The SparcV8 standard states, page 75: "Supervisor software may not assume that any particular processor or memory state, except for the PSR's ET and S bits, has been initialized after a reset trap." Signed-off-by: Olivier DANET <odanet@caramail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1095 f158a5a8-5612-0410-a976-696ce0be7e32
2013-01-20esp.c: fix SCSI command code displayed in do_command() debug statement.Olivier DANET1-1/+1
The SCSI command code is at position 1, the first byte is the message_out byte (=0x80, constant). Signed-off-by: Olivier DANET <odanet@caramail.com> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1094 f158a5a8-5612-0410-a976-696ce0be7e32
2013-01-20esp.c: fix TEST_UNIT_READY SCSI command length.Olivier DANET1-2/+2
"TEST UNIT READY" is a 6 bytes SCSI command (00h/LUN/reserved/reserved/reserved/Control) and it is preceded by a IDENTIFY (0x80) message_out byte. The ESP transfer size is therefore 7 bytes. Signed-off-by: Olivier DANET <odanet@caramail.com> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1093 f158a5a8-5612-0410-a976-696ce0be7e32