aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscons
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2004-09-24 01:18:22 +0000
committerPeter Wemm <peter@FreeBSD.org>2004-09-24 01:18:22 +0000
commitd88cc593710c175f83c540af668e947a09b0ba1e (patch)
treec8dfc22ada27a17c3d7b4ca658323a81d98ac694 /sys/dev/syscons
parent6fdf763cef43168e4ca59c682bcc5bb6cc06c5b1 (diff)
Notes
Diffstat (limited to 'sys/dev/syscons')
-rw-r--r--sys/dev/syscons/scvgarndr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/syscons/scvgarndr.c b/sys/dev/syscons/scvgarndr.c
index b26aa3d1aabc6..1c904a3d7e1b6 100644
--- a/sys/dev/syscons/scvgarndr.c
+++ b/sys/dev/syscons/scvgarndr.c
@@ -750,7 +750,7 @@ draw_pxlmouse(scr_stat *scp, int x, int y)
if (x < scp->xpixel - 8) {
for (i = y, j = 0; i < ymax; ++i, ++j) {
m = ~(mouse_and_mask[j] >> xoff);
-#ifdef __i386__
+#if defined(__i386__) || defined(__amd64__)
*(u_char *)p &= m >> 8;
*(u_char *)(p + 1) &= m;
#elif defined(__alpha__)
@@ -763,7 +763,7 @@ draw_pxlmouse(scr_stat *scp, int x, int y)
xoff += 8;
for (i = y, j = 0; i < ymax; ++i, ++j) {
m = ~(mouse_and_mask[j] >> xoff);
-#ifdef __i386__
+#if defined(__i386__) || defined(__amd64__)
*(u_char *)p &= m;
#elif defined(__alpha__)
writeb(p, readb(p) & (m >> 8));
@@ -776,7 +776,7 @@ draw_pxlmouse(scr_stat *scp, int x, int y)
if (x < scp->xpixel - 8) {
for (i = y, j = 0; i < ymax; ++i, ++j) {
m = mouse_or_mask[j] >> xoff;
-#ifdef __i386__
+#if defined(__i386__) || defined(__amd64__)
*(u_char *)p &= m >> 8;
*(u_char *)(p + 1) &= m;
#elif defined(__alpha__)
@@ -788,7 +788,7 @@ draw_pxlmouse(scr_stat *scp, int x, int y)
} else {
for (i = y, j = 0; i < ymax; ++i, ++j) {
m = mouse_or_mask[j] >> xoff;
-#ifdef __i386__
+#if defined(__i386__) || defined(__amd64__)
*(u_char *)p &= m;
#elif defined(__alpha__)
writeb(p, readb(p) & (m >> 8));