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/

-- 
linuxbios mailing list
[email protected]
http://www.openbios.org/mailman/listinfo/linuxbios

Reply via email to