Page MenuHomeFreeBSD

D31286.id92742.diff
No OneTemporary

D31286.id92742.diff

Index: sys/i386/linux/linux.h
===================================================================
--- sys/i386/linux/linux.h
+++ sys/i386/linux/linux.h
@@ -257,7 +257,7 @@
} l_sigaction_t;
typedef struct {
- void *ss_sp;
+ l_uintptr_t ss_sp;
l_int ss_flags;
l_size_t ss_size;
} l_stack_t;
Index: sys/i386/linux/linux_sysvec.c
===================================================================
--- sys/i386/linux/linux_sysvec.c
+++ sys/i386/linux/linux_sysvec.c
@@ -441,7 +441,7 @@
frame.sf_sc.uc_flags = 0; /* XXX ??? */
frame.sf_sc.uc_link = NULL; /* XXX ??? */
- frame.sf_sc.uc_stack.ss_sp = td->td_sigstk.ss_sp;
+ frame.sf_sc.uc_stack.ss_sp = PTROUT(td->td_sigstk.ss_sp);
frame.sf_sc.uc_stack.ss_size = td->td_sigstk.ss_size;
frame.sf_sc.uc_stack.ss_flags = (td->td_pflags & TDP_ALTSTACK)
? ((oonstack) ? LINUX_SS_ONSTACK : 0) : LINUX_SS_DISABLE;
@@ -751,7 +751,7 @@
/* Call sigaltstack & ignore results. */
lss = &uc.uc_stack;
- ss.ss_sp = lss->ss_sp;
+ ss.ss_sp = PTRIN(lss->ss_sp);
ss.ss_size = lss->ss_size;
ss.ss_flags = linux_to_bsd_sigaltstack(lss->ss_flags);

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 6:53 AM (21 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14691573
Default Alt Text
D31286.id92742.diff (1 KB)

Event Timeline