PERFORCE change 37196 for review
Marcel Moolenaar
marcel at FreeBSD.org
Fri Aug 29 14:50:27 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=37196
Change 37196 by marcel at marcel_nfs on 2003/08/29 14:49:45
Apply a quick hack. Channel A is at offset 4; channel B at
offset 0. Since the console on the test box is on channel A,
add 4 to the handle.
As I mentioned before, we should ideally be looking at
"input-device" and "output-device" under /options instead
of looking at "stdin" and "stdout" under /chosen. That
way we can consider the arguments given to the device and
properly adjust the handle based on the channel referenced
by the properties. I'll do that later.
Affected files ...
.. //depot/projects/uart/dev/uart/uart_cpu_sparc64.c#7 edit
Differences ...
==== //depot/projects/uart/dev/uart/uart_cpu_sparc64.c#7 (text+ko) ====
@@ -98,9 +98,10 @@
di->ops = uart_sab82532_ops;
else if (!strcmp(buffer, "su") || !strcmp(buffer, "su_pnp"))
di->ops = uart_ns8250_ops;
- else if (!strcmp(buffer, "zs"))
+ else if (!strcmp(buffer, "zs")) {
di->ops = uart_z8530_ops;
- else
+ di->bas.bsh += 4;
+ } else
return (ENXIO);
/*
More information about the p4-projects
mailing list