Make register32_t unsigned so we don't have sign extension problems.

This commit is contained in:
eeh 1998-09-07 23:46:26 +00:00
parent 07b0821d4d
commit f162a39307
2 changed files with 10 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: frame.h,v 1.3 1998/09/07 18:23:54 eeh Exp $ */
/* $NetBSD: frame.h,v 1.4 1998/09/07 23:46:26 eeh Exp $ */
/*
* Copyright (c) 1992, 1993
@ -56,8 +56,8 @@
struct frame32 {
int32_t fr_local[8]; /* space to save locals (%l0..%l7) */
int32_t fr_arg[6]; /* space to save arguments (%i0..%i5) */
int32_t fr_fp; /* space to save frame pointer (%i6) */
int32_t fr_pc; /* space to save return pc (%i7) */
u_int32_t fr_fp; /* space to save frame pointer (%i6) */
u_int32_t fr_pc; /* space to save return pc (%i7) */
/*
* SunOS reserves another 8 words here; this is pointless
* but we do it for compatibility.
@ -94,8 +94,8 @@ struct frame32 {
struct frame64 {
int64_t fr_local[8]; /* space to save locals (%l0..%l7) */
int64_t fr_arg[6]; /* space to save arguments (%i0..%i5) */
int64_t fr_fp; /* space to save frame pointer (%i6) */
int64_t fr_pc; /* space to save return pc (%i7) */
u_int64_t fr_fp; /* space to save frame pointer (%i6) */
u_int64_t fr_pc; /* space to save return pc (%i7) */
/*
* SVR4 reserves a bunch of extra stuff.
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: types.h,v 1.6 1998/08/30 15:32:17 eeh Exp $ */
/* $NetBSD: types.h,v 1.7 1998/09/07 23:46:26 eeh Exp $ */
/*
* Copyright (c) 1992, 1993
@ -79,9 +79,10 @@ typedef unsigned long u_int64_t;
typedef long long int64_t;
typedef unsigned long long u_int64_t;
#endif
typedef long register_t;
typedef int32_t register32_t;
typedef int64_t register64_t;
/* The following are unsigned to prevent annoying sign extended pointers. */
typedef unsigned long register_t;
typedef u_int32_t register32_t;
typedef u_int64_t register64_t;
/* NB: This should probably be if defined(_KERNEL) */
#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)