[SeaBIOS] [PATCH] Support for booting from QEMU emulated LSI Logic LSI53C1030, SAS1068, SAS1068e.
Don Slutz
Don at CloudSwitch.com
Sat Sep 29 16:42:05 CEST 2012
On 09/13/12 08:52, Don Slutz wrote:
> On 09/11/12 21:03, Kevin O'Connor wrote:
>> On Tue, Sep 11, 2012 at 02:11:23PM -0400, Don Slutz wrote:
>>> Also known as Fusion MPT disk.
>>>
>>> This needs the patch (for the QEMU emulation):
>>>
>>> http://lists.gnu.org/archive/html/qemu-devel/2012-09/msg01608.html
>> Okay - generally speaking I prefer to commit code to SeaBIOS after the
>> upstream support goes in.
>>
The delay in QEMU is big endian support. I do not see any changes
needed to this code. I have a V2 with all comments so far addressed,
just have not sent it out because of the above. Should I send it?
>> A couple of comments below:
>>
>> [...]
>>> +#pragma pack(1)
>> There is a PACKED attribute that should be used instead of pragma.
> Will do for V2.
>>
>> [...]
>>> +try_again:
>>> + outl((u32)MAKE_FLATPTR(GET_SEG(SS), &req), iobase +
>>> MPT_REG_REQ_Q);
>>> +
>>> + for (;;) {
>>> + u32 istatus = inl(iobase + MPT_REG_ISTATUS);
>>> + u32 resp;
>>> + if (istatus & MPT_IMASK_REPLY) {
>>> + do {
>>> + resp = inl(iobase + MPT_REG_REP_Q);
>>> + if (resp == MPT_CONTEXT_MAGIC) {
>>> + return DISK_RET_SUCCESS;
>>> + } else if ((resp << 1) == (u32)&reply_msg[0]) {
>>> + if (retry == 0) {
>>> + retry = 1;
>>> + goto try_again;
>> I'd prefer not to use goto in this situation.
> Will re-work for V2.
>> Thanks,
>> -Kevin
>
-Don Slutz
More information about the SeaBIOS
mailing list