diff options
| author | 2001-02-04 06:51:14 +0000 | |
|---|---|---|
| committer | 2001-02-04 06:51:14 +0000 | |
| commit | 7400772631c5946f24d9f20d4d77f088230d5e5e (patch) | |
| tree | 883780a4e650f34c7227317c56c2af2ee953e118 | |
| parent | avoid infinite loop when -s is specified (select loop mistake). (diff) | |
| download | wireguard-openbsd-7400772631c5946f24d9f20d4d77f088230d5e5e.tar.xz wireguard-openbsd-7400772631c5946f24d9f20d4d77f088230d5e5e.zip | |
Fix an off-by-{1,2,4} error in i386_space_copy(). Console is now working much
more nicely, but not perfect yet.
| -rw-r--r-- | sys/arch/i386/include/bus.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/include/bus.h b/sys/arch/i386/include/bus.h index a2d5fa229d3..9a9bbb59afc 100644 --- a/sys/arch/i386/include/bus.h +++ b/sys/arch/i386/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.24 2001/02/04 01:49:21 aaron Exp $ */ +/* $OpenBSD: bus.h,v 1.25 2001/02/04 06:51:14 aaron Exp $ */ /* $NetBSD: bus.h,v 1.6 1996/11/10 03:19:25 thorpej Exp $ */ /*- @@ -725,7 +725,7 @@ void bus_space_free __P((bus_space_tag_t t, bus_space_handle_t bsh, #define i386_space_copy(a1, a2, sz, cnt) do { \ int _len = (sz) * (cnt); \ if ((void *)(a2) < ((void *)(a1) + _len)) { \ - a1 += _len; a2 += _len; \ + a1 += (_len - (sz)); a2 += (_len - (sz)); \ switch (sz) { \ case 1: i386_space_copy1(a1,a2,cnt,"movsb","std");break;\ case 2: i386_space_copy1(a1,a2,cnt,"movsw","std");break;\ |
