Subject: CVS commit: src/sys/dev/wscons
To: None <source-changes@NetBSD.org>
From: Michael Lorenz <email@example.com>
Date: 12/04/2005 14:03:42
Module Name: src
Committed By: macallan
Date: Sun Dec 4 14:03:42 UTC 2005
Make the VT_* ioctl()s work in LP64/big endian platforms, like sparc64.
The problem is that these ioctl()s are declared as _IO() and expect to pass an
integer as argument, instead of a pointer. When dereferencing the argument
pointer in the ioctl() handler as an int we get the upper 32bit of the value so
we simply dereference it as long. Other _IO() ioctl()s may need similar fixes.
Tested on sparc64, sparc and macppc.
To generate a diff of this commit:
cvs rdiff -r1.26 -r1.27 src/sys/dev/wscons/wsdisplay_compat_usl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.