diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-06-26 20:32:37 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-06-26 20:32:37 +0000 |
commit | 73d30892be70240ab5f38b0b3141c5df5aadaf7d (patch) | |
tree | 2f34845c0fb1cf464c54aee0a3f81b6fcf644347 /sys/arch | |
parent | c0514d215f7dc95172bc750125d5d725982249e5 (diff) |
Fix some inconsistencies in how we build 64-bit addresses from OF properties.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/dev/psycho.c | 6 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/pyro.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/schizo.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/vpci.c | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/sys/arch/sparc64/dev/psycho.c b/sys/arch/sparc64/dev/psycho.c index 6f2d3232cf1..97da3a46080 100644 --- a/sys/arch/sparc64/dev/psycho.c +++ b/sys/arch/sparc64/dev/psycho.c @@ -1,4 +1,4 @@ -/* $OpenBSD: psycho.c,v 1.67 2010/12/04 17:06:32 miod Exp $ */ +/* $OpenBSD: psycho.c,v 1.68 2011/06/26 20:32:36 kettenis Exp $ */ /* $NetBSD: psycho.c,v 1.39 2001/10/07 20:30:41 eeh Exp $ */ /* @@ -1027,7 +1027,7 @@ psycho_bus_map(bus_space_tag_t t, bus_space_tag_t t0, bus_addr_t offset, continue; paddr = pp->pp_range[i].phys_lo + offset; - paddr |= ((bus_addr_t)pp->pp_range[i].phys_hi << 32); + paddr |= ((bus_addr_t)pp->pp_range[i].phys_hi) << 32; DPRINTF(PDB_BUSMAP, ("\n_psycho_bus_map: mapping paddr space %lx offset %lx " "paddr %qx", @@ -1066,7 +1066,7 @@ psycho_bus_mmap(bus_space_tag_t t, bus_space_tag_t t0, bus_addr_t paddr, continue; paddr = pp->pp_range[i].phys_lo + offset; - paddr |= ((bus_addr_t)pp->pp_range[i].phys_hi << 32); + paddr |= ((bus_addr_t)pp->pp_range[i].phys_hi) << 32; DPRINTF(PDB_BUSMAP, ("\npsycho_bus_mmap: mapping paddr " "space %lx offset %lx paddr %qx", (long)ss, (long)offset, diff --git a/sys/arch/sparc64/dev/pyro.c b/sys/arch/sparc64/dev/pyro.c index aad1360d6e6..77cc1b4e17c 100644 --- a/sys/arch/sparc64/dev/pyro.c +++ b/sys/arch/sparc64/dev/pyro.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pyro.c,v 1.20 2010/12/05 15:15:14 kettenis Exp $ */ +/* $OpenBSD: pyro.c,v 1.21 2011/06/26 20:32:36 kettenis Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -494,7 +494,7 @@ _pyro_bus_mmap(bus_space_tag_t t, bus_space_tag_t t0, bus_addr_t paddr, continue; paddr = pbm->pp_range[i].phys_lo + offset; - paddr |= ((bus_addr_t)pbm->pp_range[i].phys_hi<<32); + paddr |= ((bus_addr_t)pbm->pp_range[i].phys_hi) << 32; return ((*t->parent->sparc_bus_mmap) (t, t0, paddr, off, prot, flags)); } diff --git a/sys/arch/sparc64/dev/schizo.c b/sys/arch/sparc64/dev/schizo.c index 5d6e6ef89c3..1ed9e1b525d 100644 --- a/sys/arch/sparc64/dev/schizo.c +++ b/sys/arch/sparc64/dev/schizo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: schizo.c,v 1.61 2010/12/04 17:06:32 miod Exp $ */ +/* $OpenBSD: schizo.c,v 1.62 2011/06/26 20:32:36 kettenis Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -714,7 +714,7 @@ schizo_bus_mmap(bus_space_tag_t t, bus_space_tag_t t0, bus_addr_t paddr, continue; paddr = pbm->sp_range[i].phys_lo + offset; - paddr |= ((bus_addr_t)pbm->sp_range[i].phys_hi<<32); + paddr |= ((bus_addr_t)pbm->sp_range[i].phys_hi) << 32; return ((*t->parent->sparc_bus_mmap) (t, t0, paddr, off, prot, flags)); } diff --git a/sys/arch/sparc64/dev/vpci.c b/sys/arch/sparc64/dev/vpci.c index 147c3e6a6e4..94dbda8a8f9 100644 --- a/sys/arch/sparc64/dev/vpci.c +++ b/sys/arch/sparc64/dev/vpci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vpci.c,v 1.6 2010/12/05 15:15:14 kettenis Exp $ */ +/* $OpenBSD: vpci.c,v 1.7 2011/06/26 20:32:36 kettenis Exp $ */ /* * Copyright (c) 2008 Mark Kettenis <kettenis@openbsd.org> * @@ -400,7 +400,7 @@ vpci_bus_mmap(bus_space_tag_t t, bus_space_tag_t t0, bus_addr_t paddr, continue; paddr = pbm->vp_range[i].phys_lo + offset; - paddr |= ((bus_addr_t)pbm->vp_range[i].phys_hi<<32); + paddr |= ((bus_addr_t)pbm->vp_range[i].phys_hi) << 32; return ((*t->parent->sparc_bus_mmap) (t, t0, paddr, off, prot, flags)); } |