diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2006-02-08 09:28:47 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2006-02-08 09:28:47 +0000 |
commit | 747dbaf216d7aeb4ba0fc72951dc66b08a6f3db5 (patch) | |
tree | c9afb667e7f89f1a0adeebf0d8f269947be4a963 /sys | |
parent | 4be0725b5755ef8913587e16a643ebb2168c3aaa (diff) |
Use __LP64__ instead of __amd64__ for portability.
Pointed out by miod@.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_nfe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c index 3c91205a284..277311bbd02 100644 --- a/sys/dev/pci/if_nfe.c +++ b/sys/dev/pci/if_nfe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nfe.c,v 1.20 2006/02/07 08:55:37 jsg Exp $ */ +/* $OpenBSD: if_nfe.c,v 1.21 2006/02/08 09:28:46 jsg Exp $ */ /*- * Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr> @@ -671,7 +671,7 @@ nfe_rxeof(struct nfe_softc *sc) ether_input_mbuf(ifp, m); skip: if (sc->sc_flags & NFE_40BIT_ADDR) { -#if defined(__amd64__) +#if defined(__LP64__) desc64->physaddr[0] = htole32(data->map->dm_segs->ds_addr >> 32); #endif @@ -834,7 +834,7 @@ nfe_encap(struct nfe_softc *sc, struct mbuf *m0) if (sc->sc_flags & NFE_40BIT_ADDR) { desc64 = &sc->txq.desc64[sc->txq.cur]; -#if defined(__amd64__) +#if defined(__LP64__) desc64->physaddr[0] = htole32(map->dm_segs[i].ds_addr >> 32); #endif @@ -1136,7 +1136,7 @@ nfe_alloc_rx_ring(struct nfe_softc *sc, struct nfe_rx_ring *ring) if (sc->sc_flags & NFE_40BIT_ADDR) { desc64 = &sc->rxq.desc64[i]; -#if defined(__amd64__) +#if defined(__LP64__) desc64->physaddr[0] = htole32(data->map->dm_segs->ds_addr >> 32); #endif |