Commit f5598943 authored by Alexander Viro's avatar Alexander Viro Committed by David S. Miller

[SPARC]: Trivial annotations in sparc signal.c / svr4.h

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f3ac72a3
...@@ -535,7 +535,7 @@ setup_frame(struct sigaction *sa, struct pt_regs *regs, int signr, sigset_t *old ...@@ -535,7 +535,7 @@ setup_frame(struct sigaction *sa, struct pt_regs *regs, int signr, sigset_t *old
sig_address = NULL; sig_address = NULL;
} }
} }
err |= __put_user((long)sig_address, &sframep->sig_address); err |= __put_user((unsigned long)sig_address, &sframep->sig_address);
err |= __put_user(sig_code, &sframep->sig_code); err |= __put_user(sig_code, &sframep->sig_code);
err |= __put_user(sc, &sframep->sig_scptr); err |= __put_user(sc, &sframep->sig_scptr);
if (err) if (err)
...@@ -832,7 +832,7 @@ setup_svr4_frame(struct sigaction *sa, unsigned long pc, unsigned long npc, ...@@ -832,7 +832,7 @@ setup_svr4_frame(struct sigaction *sa, unsigned long pc, unsigned long npc,
* to flush the user windows. * to flush the user windows.
*/ */
for (window = 0; window < tp->w_saved; window++) { for (window = 0; window < tp->w_saved; window++) {
err |= __put_user((int *) &(gw->win[window]), &gw->winptr[window]); err |= __put_user((int __user *) &(gw->win[window]), &gw->winptr[window]);
err |= __copy_to_user(&gw->win[window], err |= __copy_to_user(&gw->win[window],
&tp->reg_window[window], &tp->reg_window[window],
sizeof(svr4_rwindow_t)); sizeof(svr4_rwindow_t));
......
...@@ -49,7 +49,7 @@ typedef struct { ...@@ -49,7 +49,7 @@ typedef struct {
typedef struct { typedef struct {
int count; int count;
int *winptr [SVR4_MAXWIN]; /* pointer to the windows */ int __user *winptr [SVR4_MAXWIN]; /* pointer to the windows */
svr4_rwindow_t win[SVR4_MAXWIN]; /* the windows */ svr4_rwindow_t win[SVR4_MAXWIN]; /* the windows */
} svr4_gwindows_t; } svr4_gwindows_t;
...@@ -72,7 +72,7 @@ typedef struct { ...@@ -72,7 +72,7 @@ typedef struct {
/* Machine dependent context */ /* Machine dependent context */
typedef struct { typedef struct {
svr4_gregset_t greg; /* registers 0..19 (see top) */ svr4_gregset_t greg; /* registers 0..19 (see top) */
svr4_gwindows_t *gwin; /* may point to register windows */ svr4_gwindows_t __user *gwin; /* may point to register windows */
svr4_fregset_t freg; /* floating point registers */ svr4_fregset_t freg; /* floating point registers */
svr4_xrs_t xrs; /* mhm? */ svr4_xrs_t xrs; /* mhm? */
long pad[19]; long pad[19];
...@@ -86,7 +86,7 @@ enum svr4_stack_flags { ...@@ -86,7 +86,7 @@ enum svr4_stack_flags {
/* signal stack exection place, unsupported */ /* signal stack exection place, unsupported */
typedef struct svr4_stack_t { typedef struct svr4_stack_t {
char *sp; char __user *sp;
int size; int size;
int flags; int flags;
} svr4_stack_t; } svr4_stack_t;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment