[LinuxBIOS] [PATCH] Support for Winbond W83627EHG Super I/O
Carl-Daniel Hailfinger
c-d.hailfinger.devel.2006 at gmx.net
Wed Feb 28 19:12:13 CET 2007
On 28.02.2007 18:22, Lu, Yinghai wrote:
> In the V2 you need to everyone happy
> 1. ROMCC: print
> 2. CAR: a. print
> b. printk
> c. print when ram is enabled already
> d. printk when ram is enabled already
> c/d are introduced for USBDebug direct, because dbg_info will be in RAM
> instead of cache..
Can we use a variable to automatically call the right version in CAR?
I know the code below will not work, but to give you an idea...
int do_printk(int msg_level, const char *fmt, ...)
{
if (ram_enabled)
return do_ram_printk()
else
return do_car_printk()
}
Or we do that with function pointer manipulation.
Comments?
Regards,
Carl-Daniel
--
http://www.hailfinger.org/
More information about the coreboot
mailing list