Commit Graph

722 Commits

Author SHA1 Message Date
Igor V. Kovalenko
37f9164937 sparc64: fix pci host bridge offsets
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@780 f158a5a8-5612-0410-a976-696ce0be7e32
2010-05-26 19:10:25 +00:00
Igor V. Kovalenko
4b25b8b537 sparc64: replace ASI numbers with macros
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@779 f158a5a8-5612-0410-a976-696ce0be7e32
2010-05-26 19:10:23 +00:00
Igor V. Kovalenko
681269e77f sparc64: move asi.h to arch includes
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@778 f158a5a8-5612-0410-a976-696ce0be7e32
2010-05-26 19:10:21 +00:00
Mark Cave-Ayland
00b2f978f8 Fix RR alignment bug in the grubfs iso9660 driver which prevented CD directory entries from being read correctly.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@777 f158a5a8-5612-0410-a976-696ce0be7e32
2010-05-24 20:55:21 +00:00
Blue Swirl
aa9dde5d19 Clean generated version files
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@774 f158a5a8-5612-0410-a976-696ce0be7e32
2010-05-22 13:34:10 +00:00
Blue Swirl
a6f4eb0956 Fix find expression in clean target
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@773 f158a5a8-5612-0410-a976-696ce0be7e32
2010-05-22 13:34:08 +00:00
Mark Cave-Ayland
12eab86f39 Move creation of MMU translation property entries into architecture-specific files, rather than in ofmem_common.c. This is because different architectures have
different translation entries described within the OF platform bindings. With thanks to Andreas Färber and Igor Kovalenko.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@772 f158a5a8-5612-0410-a976-696ce0be7e32
2010-05-21 11:07:53 +00:00
Mark Cave-Ayland
389529217e Move the retained magic block to the top of physical RAM and implement code that should do the right thing. Probably needs more
testing though.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@771 f158a5a8-5612-0410-a976-696ce0be7e32
2010-05-03 11:29:38 +00:00
Mark Cave-Ayland
1f2d742bad Fix missing parentheses from r766.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@770 f158a5a8-5612-0410-a976-696ce0be7e32
2010-05-03 06:56:57 +00:00
Mark Cave-Ayland
4cbc339ae7 Create extra CPU properties required by OpenSolaris kernel.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@769 f158a5a8-5612-0410-a976-696ce0be7e32
2010-05-02 23:00:21 +00:00
Blue Swirl
c0ee565d88 Sparc64: add upa-portid properties
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@768 f158a5a8-5612-0410-a976-696ce0be7e32
2010-05-02 20:08:43 +00:00
Blue Swirl
9a729f8a27 Sparc64: fix reset
The zeroth I/D TLB entries weren't cleared.

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

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@767 f158a5a8-5612-0410-a976-696ce0be7e32
2010-05-02 20:01:34 +00:00
Mark Cave-Ayland
ca0f9c5a03 Commit partial implementation of SUNW,retain for SPARC64 based upon the existing physical allocation routines. I've been unable
to finish the code and test retention after a restart since the OpenBIOS words reset and reset-all don't seem to work at the 
moment. However, it enables OpenSolaris boot to get further in the meantime.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@766 f158a5a8-5612-0410-a976-696ce0be7e32
2010-05-02 19:26:29 +00:00
Mark Cave-Ayland
0c2f6e929d Demote the 'byte-load: stack overflow' message so that it only appears when fcode-debug? is set to true. This is because the
stack is automatically corrected anyway, and is triggered by a bug in older versions of the OpenSolaris boot blocks. See the 
following for more information:

http://src.opensolaris.org/source/history/onnv/onnv-gate/usr/src/psm/stand/bootblks/common/boot.fth (rev 9941:eb1c075cb0e4)
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6803195

Anyone developing new Fcode under OpenBIOS is extremely likely to want fcode-debug? enabled during development, so this 
seems like a reasonable compromise.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@765 f158a5a8-5612-0410-a976-696ce0be7e32
2010-05-01 12:13:16 +00:00
Mark Cave-Ayland
d2f9a689ac Add checks to the read_io, seek_io and close_io routines to ensure that they do not perform any actions if an invalid
file handle (-1) is passed. This resolves the issue with extra arguments being left on the Forth stack when an invalid device 
access is attempted.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@764 f158a5a8-5612-0410-a976-696ce0be7e32
2010-05-01 09:48:57 +00:00
Mark Cave-Ayland
d183b53338 Promote out of memory messages from debug level to standard console messages. This makes it possible to determine that you've
not allocated enough memory in qemu without having to rebuild with CONFIG_DEBUG_OFMEM enabled.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@763 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-30 21:56:29 +00:00
Mark Cave-Ayland
b46a6a523e Fix for PPC bootloaders that force the output to the "screen" device when -nographic is used with qemu. Note that this isn't a
complete fix in that the VGA device is still present within the device tree, but it at least allows the bootloader and kernel to 
execute far enough to prevent you from wondering why the console has apparently frozen.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@762 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-30 20:57:27 +00:00
Mark Cave-Ayland
7e28db1a6e Move the temporary compilation buffer into dictionary space. This prevent spurious dictionary overflow messages appearing due to
setup-tmp-comp switching dictionaries to memory outside of the initial dictionary space.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@761 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-30 20:54:03 +00:00
Blue Swirl
2864f104c5 Fix NULL pointer dereferences, spotted by clang analyzer
Fix clang warnings:
../packages/disk-label.c:83:6: warning: Dereference of null pointer
        if( *s == '-' || isdigit(*s) ||
../libopenbios/elf_load.c:267:5: warning: Null pointer passed as an argument to a 'nonnull' parameter
    memcpy(addr, name, nhdr.n_namesz);

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

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@752 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-25 12:53:39 +00:00
Blue Swirl
183f3f9b00 Fix dead variable assignment, spotted by clang analyzer
Fix clang warnings:
../kernel/dict.c:289:2: warning: Value stored to 'len' is never read
        len -= sizeof(dictionary_header_t);
../packages/cmdline.c:181:8: warning: Value stored to 'buf' during its
      initialization is never read
        char *buf = ci->buf;
../libopenbios/elf_info.c:126:2: warning: Value stored to 'name' is never read
        name = addr;
../libopenbios/elf_load.c:277:5: warning: Value stored to 'addr' is never read
    addr += pad;
../drivers/ide.c:209:3: warning: Value stored to 'err' is never read
                err = ob_ide_pio_readb(drive, IDEREG_ERROR);
../drivers/ide.c:219:17: warning: Value stored to 'old_cdb' during its initialization is never read
                unsigned char old_cdb = cmd->cdb[0];
../drivers/ide.c:222:4: warning: Value stored to 'old_cdb' is never read
                        old_cdb = cmd->old_cdb;
../drivers/pci.c:103:2: warning: Value stored to 'ss' is never read
        ss = 0;
../drivers/pci.c:100:2: warning: Value stored to 'dev' is never read
        dev = 0;
../drivers/pci.c:212:2: warning: Value stored to 'bus' is never read
        bus = (hi >> 16) & 0xFF;
../drivers/pci.c:953:4: warning: Value stored to 'rev' is never read
                        rev = pci_config_read8(addr, PCI_REVISION_ID);
../packages/video.c:331:2: warning: Value stored to 's' is never read
        s = video.fb.mphys - s;
../packages/video.c:330:2: warning: Value stored to 'size' is never read
        size = ((video.fb.h * video.fb.rb + s) + 0xfff) & ~0xfff;
../fs/hfsplus/btree.c:229:5: warning: Value stored to 'p' is never read
    p = btree_readhead(&bt->head, p);
../fs/hfsplus/volume.c:149:2: warning: Value stored to 'p' is never read
        p = volume_readfork(p, &vh->start_file );

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

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@751 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-25 12:53:37 +00:00
Blue Swirl
747b59656b Fix clang errors about undefined llong etc.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@750 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-25 12:53:32 +00:00
Mark Cave-Ayland
454b8225dc Fix a mistake in call-client.S whereby the stack offsets were out by one item. When saving registers upon a client's entry into
the CIF, we were using space for one more stack item than we had allocated. Hence a subsequent stack push would corrupt the 
topmost item (in this case register %g7) causing it to be restored with a random value before returning to the client.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@749 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-16 10:20:06 +00:00
Mark Cave-Ayland
a183f2ed4b Increase dictionary size from 256K to 512K on SPARC64 as it is clear that on OpenSolaris we are overflowing the dictionary at
runtime and corrupting OpenBIOS memory.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@748 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-16 10:01:42 +00:00
Blue Swirl
a2f14b47b8 Remove unused memchr()
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@747 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-15 16:43:01 +00:00
Blue Swirl
80cead52eb Remove unused strstr()
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@746 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-15 16:42:59 +00:00
Blue Swirl
28cff5734c Remove unused memscan()
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@745 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-15 16:42:56 +00:00
Blue Swirl
5221245af9 Remove unused bcopy()
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@744 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-15 16:42:54 +00:00
Blue Swirl
fd569ca2f8 Remove unused strspn()
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@743 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-15 16:42:51 +00:00
Blue Swirl
e14d5b08e9 Remove unused strtok()
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@742 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-15 16:42:49 +00:00
Igor V. Kovalenko
2d74db1de3 Commit revised version of Igor Kovalenko's patch for detecting whether dictionary allocations have overrun the memory
buffer allocated for them.

Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@741 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-12 20:02:53 +00:00
Mark Cave-Ayland
2f18dff299 Revert r739 since the update translations code only updates the OpenBIOS properties and not the real MMU translations.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@740 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-12 10:03:05 +00:00
Mark Cave-Ayland
35a7ef00a2 Don't try and update the MMU mappings when claiming physical memory. This is probably related to r737 and seems to solve an
issue whereby Forth starts doing strange things just after attemping a claim on physical memory resource.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@739 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-10 11:08:57 +00:00
Mark Cave-Ayland
b265b42d58 Slight correct to r736 so that the number of getprop arguments is correctly displayed.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@738 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-08 21:31:44 +00:00
Mark Cave-Ayland
ce38a05886 According to the OF spec, any calls to claim made through the /memory node should not attempt to add a memory translation. This
solves a problem in Milax boot whereby the boot loader was attempting to map the address after it had already been done.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@737 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-08 21:22:39 +00:00
Mark Cave-Ayland
e5e7d12503 Fix bug when DEBUG_CIF is enabled and getprop is called with nret set to zero. Originally the code tried to use the size
returned from the CIF, but with nret set to zero then the size argument is never pushed onto the stack and so the size would be 
set to whatever junk was left in the argument block. Change the code to use the size expected by the client instead.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@736 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-08 21:19:09 +00:00
Mark Cave-Ayland
aa6519e1f2 Fix incorrect stack (dropping one too many items) when a phandle of 0 is passed into getprop CIF.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@735 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-05 19:19:37 +00:00
Mark Cave-Ayland
f21a9ceb00 Partially fix up the OpenBIOS PPC build. While the code technically works, even with this fix in place the PPC console output
disappears when booting a FC12 test ISO directly. Interestingly enough, if the equivalent "load" and "go" commands are entered 
manually then the console output works fine and the ISO can boot?! So there is still an issue with the console not being 
initialised correctly somewhere.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@734 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-05 18:41:11 +00:00
Mark Cave-Ayland
a757d43d04 Another couple of client interface fixes:
i) Ensure that the CIF caller's idea of pb->nret is always respected, but if there is a mismatch then log a warning if DEBUG_CIF 
is enabled, then correct the stack and continue.

ii) Correct the code path for call-method and interpret to ensure they ignore the extra status variable pushed onto the stack by 
client-call-iface.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@733 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-03 13:03:39 +00:00
Mark Cave-Ayland
3111a2293b Fix two errors related to argument passing in the client interface:
i) client-call-iface did not set a return value of 0 on success; hence the top stack argument was dropped as part of the status 
check causing an off-by-one error.

ii) instead of setting pb->nret to be the number of arguments returned, the (random) value being passed in was being used to 
control the number of arguments being returned.


Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>



git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@732 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-03 08:25:47 +00:00
Blue Swirl
db3348538a Fix build
CC    target/libc/vsprintf.o
cc1: warnings being treated as errors
../libc/string.c: In function 'strncasecmp':
../libc/string.c:518: warning: '__res' may be used uninitialized in this function

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

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@731 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-02 14:25:37 +00:00
Mark Cave-Ayland
85412826ed Add an extra linefeed in front of the jump message in (go) to make the debug output a bit tidier.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@730 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-02 14:17:45 +00:00
Mark Cave-Ayland
8cfdbc4b3d Enable (go) for SPARC64 and also force register o0 to be 0 as detailed in the OF specification.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@729 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-02 14:14:34 +00:00
Mark Cave-Ayland
bedc10adae Now that we have a C version of go available, rework client.fs so that it will automatically detect if a platform has execution
capability based upon the existence of the lower level (go) word. Also add standard ELF image support to (go) for SPARC32, 
SPARC64 and x86.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@728 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-02 14:03:38 +00:00
Mark Cave-Ayland
a025a2e653 Since the original boot code had been previously refactored to make use of saved-program-state, we can take the existing code
and with only slight modification use it as a C implementation of the go word.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@727 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-02 13:29:12 +00:00
Mark Cave-Ayland
1b273803c2 The new loader APIs in libopenbios already have routines to detect the type of executable at a given address and react
accordingly. Hence since the loaders are currently written in C, it makes more sense to drop down into C and re-use the same 
code rather than have a second implementation in Forth.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@726 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-02 13:01:10 +00:00
Mark Cave-Ayland
9661f91432 Create an initialisation function called openbios_init(), similar to modules_init(), for use by libopenbios and make sure all
architectures are updated to use it. This is required to allow binding of C functions into Forth by libopenbios (i.e. cross 
architecture) rather than having to update everything in every arch/*/ initialisation file.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@725 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-02 11:41:35 +00:00
Mark Cave-Ayland
075e485628 Finish the use of saved-program-state within the loaders. This involves 2 changes: firstly ensure that the saved-program-state
is being set correctly in all of the loaders, and secondly we change the bootinfo loader so that the bootscript is executed as 
part of init-program and not go. This seems to reflect the idea of execute-buffer in OpenBOOT that any Forth code is executed 
directly during init-program, rather than being deferred to go.

Note: the latter change is fairly simple, but I have been unable to test it myself other than verifying it compiles.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@724 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-02 10:28:48 +00:00
Mark Cave-Ayland
de891e0244 Move the bootinfo loader into libopenbios, refactoring and adding the new CONFIG_LOADER_BOOTINFO as appropriate.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@723 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-02 09:18:51 +00:00
Mark Cave-Ayland
7fdf25e044 Switch the bootinfo-loader over to using strncasecmp rather than strcasecmp which should be much safer on binary buffersi of
unknown content/length.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@722 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-02 08:33:07 +00:00
Alexander Graf
41dd5272ca [PPC] Make mac-io ata interrupts depend on local, not global index
In commit r680 I incorrectly made the interrupt number of the mac-io ata
device depend on its global index. Of course the interrupt only depends on
its index inside the mac-io chip.

So let's fix that up and make Qemu's oldworld emulation work again!

Signed-off-by: Alexander Graf <agraf@suse.de>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@721 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-01 23:40:21 +00:00