removing hardcoded uart vbase

Marcel Moolenaar xcllnt at mac.com
Mon May 28 19:34:01 UTC 2007


On May 28, 2007, at 6:46 AM, John Hay wrote:

> To find the console, I just check for uart 0 in the hints. Is that
> good enough or should one also check for flags 0x10 like on sio
> devices?

Typically, you set uart.hw.console to point to the console. Since
device numbers don't make sense, you define the console in terms of
hardware I/O location. For example:
	uart.hw.console=io:0x3f8
or
	uart.hw.console=mm:0xfef04500

The uart.hw.console variable also allows you to specify baudrate,
stopbits, parity and the device class (ns8250, z8530, etc), which
hints do not.

Hints are not recommended, unless you already have hints to
describe the hardware. In that case you can simply add:
	hint.uart.0.flags=0x10

The patch looks good to me.

-- 
Marcel Moolenaar
xcllnt at mac.com




More information about the freebsd-arm mailing list