[LinuxBIOS] No console, yet... Ideas?
Adam Talbot
talbotx at comcast.net
Tue Jan 24 01:44:52 CET 2006
-Ron
Just a guess. uchar = unsigned char???
-Adam
Ronald G Minnich wrote:
> Adam Talbot wrote:
>
>> I am missing an inclue or define statment...
>>
> oh, that code I sent is crap.
>
> I did not know you wanted the full thing.
>
> #include <stdio.h>
> #include <asm/io.h>
>
> main(){
> uchar c;
>
> c = inb(0x2e);
> printf("c %02x\n", c);
> }
>
> be sure to cc -O2 or the damned asm junk won't get inlined, and you'll
> get link-time errors.
>
> ron
>
>
More information about the coreboot
mailing list