summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2004-09-24 01:18:22 +0000
committerpeter <peter@FreeBSD.org>2004-09-24 01:18:22 +0000
commit81d75f50e251052b0dfbf2a58926866df922a9cc (patch)
treec8dfc22ada27a17c3d7b4ca658323a81d98ac694 /sys/dev/syscons
parent56d687195a132697394482f8e91a569bf1f6b5cd (diff)
downloadFreeBSD-src-81d75f50e251052b0dfbf2a58926866df922a9cc.zip
FreeBSD-src-81d75f50e251052b0dfbf2a58926866df922a9cc.tar.gz
Implement the syscons mouse pointer characters for amd64. It was only
implemented for i386 and alpha.
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 b26aa3d..1c904a3 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));
OpenPOWER on IntegriCloud