Minor fix re: USELEDS
Sergey Svishchev <[email protected]> Sun, 17 Sep 2006 16:42:01 +0400
| Newsgroups | gmane.os.netbsd.ports.hp700 |
|---|---|
| Message-ID | <[email protected]> |
Good day,
Kernel won't build without option USELEDS -- here's the fix:
--- sys/arch/hp700/dev/asp.c 11 Dec 2005 12:17:24 -0000 1.9
+++ sys/arch/hp700/dev/asp.c 28 Jan 2006 14:52:34 -0000
@@ -225,8 +225,10 @@
ga.ga_ether_address, sizeof(ga.ga_ether_address));
bus_space_unmap(ca->ca_iot, ioh, sizeof(ga.ga_ether_address));
+#ifdef USELEDS
machine_ledaddr = &sc->sc_trs->asp_cled;
machine_ledword = asp_spus[sc->sc_trs->asp_spu].ledword;
+#endif
/* reset ASP */
/* sc->sc_hw->asp_reset = 1; */
--- sys/arch/hp700/gsc/gscbus.c 11 Dec 2005 12:17:24 -0000 1.12
+++ sys/arch/hp700/gsc/gscbus.c 17 Sep 2006 11:57:05 -0000
@@ -144,8 +144,10 @@
sc->sc_ga = *ga;
+#ifdef USELEDS
if (machine_ledaddr)
printf(": %sleds", machine_ledword? "word" : "");
+#endif
printf ("\n");
--
Sergey Svishchev
signature.asc
(application/pgp-signature, 167 B)
-----BEGIN PGP SIGNATURE----- Comment: '' iD8DBQFFDUKZ3P+wmuUns7URAshnAJ9cpZZZYJe0IUCnW2vDjWKfHB+newCghZx9 tEZroDNAZQCm6RWEzyDY0wE= =zwMm -----END PGP SIGNATURE-----