[LinuxBIOS] Flashrom and superiotool on non-x86 platforms?
Carl-Daniel Hailfinger
c-d.hailfinger.devel.2006 at gmx.net
Mon Oct 22 17:59:29 CEST 2007
On 22.10.2007 17:44, Stefan Reinauer wrote:
> * ron minnich <rminnich at gmail.com> [071022 17:37]:
>
>> On 10/21/07, Peter Lemenkov <lemenkov at gmail.com> wrote:
>>
>>> Hello All!
>>> Does anybody tried to use linuxbios and LB-tools on non-x86 platforms?
>>> There are some issues we need to fir even for compilation (not for
>>> successful usage).
>>>
>>> One thing I found so far is excessive usage of non-portable inb/outb
>>> macros. For instance - inb may be emulated as folliwing:
>>>
>>> +unsigned char inb (unsigned short int port)
>>> +{
>>> + static unsigned char in = 0;
>>> + FILE* f = fopen ("/dev/port", "a");
>>> + if (f !=NULL){
>>> + if (fseek (f, port, SEEK_SET) == port){
>>> + fread (&in, sizeof (unsigned char), 1, f);
>>> + fclose (f);
>>> + return in;
>>> + }
>>> + }
>>> + return ERROR;
>>>
>
> Ok, which platforms does this actually fix? Has this been tested?
>
> I know it _breaks_ just about every x86 platform except Linux.
>
> So, we should deliberate before going this route.
>
Sorry, I don't see any reason to do this now. Maybe later when there is
any platform besides x86 which we intend to support.
Regards,
Carl-Daniel
More information about the coreboot
mailing list