summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/dev/gbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hp300/dev/gbox.c')
-rw-r--r--sys/arch/hp300/dev/gbox.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/hp300/dev/gbox.c b/sys/arch/hp300/dev/gbox.c
index f6068d66a21..a4d701fd5d6 100644
--- a/sys/arch/hp300/dev/gbox.c
+++ b/sys/arch/hp300/dev/gbox.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gbox.c,v 1.14 2006/08/11 18:33:13 miod Exp $ */
+/* $OpenBSD: gbox.c,v 1.15 2007/01/07 15:13:52 miod Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat
@@ -433,7 +433,8 @@ gbox_windowmove(struct diofb *fb, u_int16_t sx, u_int16_t sy,
src = src + ((cy - 4) * 1024) + (cx - 4);
dest= dest + ((cy - 4) * 1024) + (cx - 4);
}
- FBBASE(fb)[dest] = FBBASE(fb)[src];
+ *(volatile u_int8_t *)(fb->fbkva + dest) =
+ *(volatile u_int8_t *)(fb->fbkva + src);
tile_mover_waitbusy(gb);