[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Date: Mon, 7 Sep 1998 10:06:55 -0500 (CDT)
- From: joel at oarcorp.com (joel at oarcorp.com)
- Subject: patch
On Tue, 1 Sep 1998, VALETTE Eric wrote:
> >>>>> "qqi" == qqi <qqi at world.std.com> writes:
> qqi> I think that if we have different board it may make sense to have separate
> qqi> BSP for this board, or to have ifdef and appropriate entry in pc386.cfg.
> qqi> In all cases it has to be done once and as early as possible.
> A separate BSP for two lines that can be under #ifdef? No I don't think
> I want a new BSP! Anyway I can live with the actual code. I'm
> really curious how you will react when the system will crash with an
> exeption frame on console and nothing on the serial line...
> If you use serial line only for gdb, no problem if you correctly catch the
> exception. But for real console, I'm affraid it may be non obvious
> to go and see the console.
> Anyway, nothing important as again its two lines of code inside an #ifdef
The least destructive way I can think of to make this a variation would be
to have a probe routine determine which console to use. The probe routine
could check a value set in a linker script. Then all you have to do is
specify the appropriate linker script to use.
- From: valette at crf.canon.fr (VALETTE Eric)