summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-16 00:05:05 +0000
committerbde <bde@FreeBSD.org>1998-08-16 00:05:05 +0000
commit8814b380eb06aeefb7ad5557e2cbb58aafb4c057 (patch)
treeea68b706f9216e4e0bf7050b3f6ea1ebe7569fc1 /sys/i386
parentc96f169902b2f0814f47953253986e524b1139f3 (diff)
downloadFreeBSD-src-8814b380eb06aeefb7ad5557e2cbb58aafb4c057.zip
FreeBSD-src-8814b380eb06aeefb7ad5557e2cbb58aafb4c057.tar.gz
Use an array of uintptr_t's instead of an array of u_longs to hold
address constants. This fixes some warnings for conversions from 64-bit integers to 32-bit pointers on i386's with 64-bit longs. vm86 still uses too many u_longs.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/vm86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/i386/vm86.c b/sys/i386/i386/vm86.c
index 0d0e903..6949c39 100644
--- a/sys/i386/i386/vm86.c
+++ b/sys/i386/i386/vm86.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: vm86.c,v 1.13 1998/07/27 16:45:04 jlemon Exp $
+ * $Id: vm86.c,v 1.14 1998/08/11 16:06:10 bde Exp $
*/
#include "opt_vm86.h"
@@ -557,7 +557,7 @@ vm86_initflags(struct vm86frame *vmf)
void
vm86_prepcall(struct vm86frame vmf)
{
- u_long addr[] = { 0xA00, 0x1000 }; /* code, stack */
+ uintptr_t addr[] = { 0xA00, 0x1000 }; /* code, stack */
u_char intcall[] = {
CLI, INTn, 0x00, STI, HLT
};
OpenPOWER on IntegriCloud