Message ID | 20201008043105.21058-1-chengang@emindsoft.com.cn (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | linux-user: target: signal: Support TARGET_SS_AUTODISARM | expand |
Le 08/10/2020 à 06:31, chengang@emindsoft.com.cn a écrit : > From: Chen Gang <chengang@emindsoft.com.cn> > > Add definitions to pass building. > > Signed-off-by: Chen Gang <chengang@emindsoft.com.cn> > --- > linux-user/alpha/target_signal.h | 6 ++++++ > linux-user/hppa/target_signal.h | 5 +++++ > linux-user/mips/target_signal.h | 6 ++++++ > linux-user/mips64/target_signal.h | 5 +++++ > linux-user/sparc/target_signal.h | 6 ++++++ > 5 files changed, 28 insertions(+) > > diff --git a/linux-user/alpha/target_signal.h b/linux-user/alpha/target_signal.h > index cd63d59fde..241e207815 100644 > --- a/linux-user/alpha/target_signal.h > +++ b/linux-user/alpha/target_signal.h > @@ -93,4 +93,10 @@ typedef struct target_sigaltstack { > #define TARGET_GEN_SUBRNG7 -25 > > #define TARGET_ARCH_HAS_SETUP_FRAME > + > +/* bit-flags */ > +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ > +/* mask for all SS_xxx flags */ > +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM > + > #endif /* ALPHA_TARGET_SIGNAL_H */ > diff --git a/linux-user/hppa/target_signal.h b/linux-user/hppa/target_signal.h > index c2a0102ed7..2c9d4e611e 100644 > --- a/linux-user/hppa/target_signal.h > +++ b/linux-user/hppa/target_signal.h > @@ -66,4 +66,9 @@ typedef struct target_sigaltstack { > #define TARGET_MINSIGSTKSZ 2048 > #define TARGET_SIGSTKSZ 8192 > > +/* bit-flags */ > +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ > +/* mask for all SS_xxx flags */ > +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM > + > #endif /* HPPA_TARGET_SIGNAL_H */ > diff --git a/linux-user/mips/target_signal.h b/linux-user/mips/target_signal.h > index 66e1ad44a6..4fdf15e279 100644 > --- a/linux-user/mips/target_signal.h > +++ b/linux-user/mips/target_signal.h > @@ -73,4 +73,10 @@ typedef struct target_sigaltstack { > /* compare linux/arch/mips/kernel/signal.c:setup_frame() */ > #define TARGET_ARCH_HAS_SETUP_FRAME > #endif > + > +/* bit-flags */ > +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ > +/* mask for all SS_xxx flags */ > +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM > + > #endif /* MIPS_TARGET_SIGNAL_H */ > diff --git a/linux-user/mips64/target_signal.h b/linux-user/mips64/target_signal.h > index 753e91fbd6..93c64df3b7 100644 > --- a/linux-user/mips64/target_signal.h > +++ b/linux-user/mips64/target_signal.h > @@ -68,4 +68,9 @@ typedef struct target_sigaltstack { > #define TARGET_MINSIGSTKSZ 2048 > #define TARGET_SIGSTKSZ 8192 > > +/* bit-flags */ > +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ > +/* mask for all SS_xxx flags */ > +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM > + > #endif /* MIPS64_TARGET_SIGNAL_H */ > diff --git a/linux-user/sparc/target_signal.h b/linux-user/sparc/target_signal.h > index 5cc40327d2..a465d699d2 100644 > --- a/linux-user/sparc/target_signal.h > +++ b/linux-user/sparc/target_signal.h > @@ -68,4 +68,10 @@ typedef struct target_sigaltstack { > #define TARGET_SIGSTKSZ 16384 > > #define TARGET_ARCH_HAS_SETUP_FRAME > + > +/* bit-flags */ > +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ > +/* mask for all SS_xxx flags */ > +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM > + > #endif /* SPARC_TARGET_SIGNAL_H */ > Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Le 08/10/2020 à 06:31, chengang@emindsoft.com.cn a écrit : > From: Chen Gang <chengang@emindsoft.com.cn> > > Add definitions to pass building. > > Signed-off-by: Chen Gang <chengang@emindsoft.com.cn> > --- > linux-user/alpha/target_signal.h | 6 ++++++ > linux-user/hppa/target_signal.h | 5 +++++ > linux-user/mips/target_signal.h | 6 ++++++ > linux-user/mips64/target_signal.h | 5 +++++ > linux-user/sparc/target_signal.h | 6 ++++++ > 5 files changed, 28 insertions(+) > > diff --git a/linux-user/alpha/target_signal.h b/linux-user/alpha/target_signal.h > index cd63d59fde..241e207815 100644 > --- a/linux-user/alpha/target_signal.h > +++ b/linux-user/alpha/target_signal.h > @@ -93,4 +93,10 @@ typedef struct target_sigaltstack { > #define TARGET_GEN_SUBRNG7 -25 > > #define TARGET_ARCH_HAS_SETUP_FRAME > + > +/* bit-flags */ > +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ > +/* mask for all SS_xxx flags */ > +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM > + > #endif /* ALPHA_TARGET_SIGNAL_H */ > diff --git a/linux-user/hppa/target_signal.h b/linux-user/hppa/target_signal.h > index c2a0102ed7..2c9d4e611e 100644 > --- a/linux-user/hppa/target_signal.h > +++ b/linux-user/hppa/target_signal.h > @@ -66,4 +66,9 @@ typedef struct target_sigaltstack { > #define TARGET_MINSIGSTKSZ 2048 > #define TARGET_SIGSTKSZ 8192 > > +/* bit-flags */ > +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ > +/* mask for all SS_xxx flags */ > +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM > + > #endif /* HPPA_TARGET_SIGNAL_H */ > diff --git a/linux-user/mips/target_signal.h b/linux-user/mips/target_signal.h > index 66e1ad44a6..4fdf15e279 100644 > --- a/linux-user/mips/target_signal.h > +++ b/linux-user/mips/target_signal.h > @@ -73,4 +73,10 @@ typedef struct target_sigaltstack { > /* compare linux/arch/mips/kernel/signal.c:setup_frame() */ > #define TARGET_ARCH_HAS_SETUP_FRAME > #endif > + > +/* bit-flags */ > +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ > +/* mask for all SS_xxx flags */ > +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM > + > #endif /* MIPS_TARGET_SIGNAL_H */ > diff --git a/linux-user/mips64/target_signal.h b/linux-user/mips64/target_signal.h > index 753e91fbd6..93c64df3b7 100644 > --- a/linux-user/mips64/target_signal.h > +++ b/linux-user/mips64/target_signal.h > @@ -68,4 +68,9 @@ typedef struct target_sigaltstack { > #define TARGET_MINSIGSTKSZ 2048 > #define TARGET_SIGSTKSZ 8192 > > +/* bit-flags */ > +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ > +/* mask for all SS_xxx flags */ > +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM > + > #endif /* MIPS64_TARGET_SIGNAL_H */ > diff --git a/linux-user/sparc/target_signal.h b/linux-user/sparc/target_signal.h > index 5cc40327d2..a465d699d2 100644 > --- a/linux-user/sparc/target_signal.h > +++ b/linux-user/sparc/target_signal.h > @@ -68,4 +68,10 @@ typedef struct target_sigaltstack { > #define TARGET_SIGSTKSZ 16384 > > #define TARGET_ARCH_HAS_SETUP_FRAME > + > +/* bit-flags */ > +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ > +/* mask for all SS_xxx flags */ > +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM > + > #endif /* SPARC_TARGET_SIGNAL_H */ > Applied with the part for linux-user/generic/signal.h from your other patch to my linux-user-for-6.0 branch. Thanks, Laurent
diff --git a/linux-user/alpha/target_signal.h b/linux-user/alpha/target_signal.h index cd63d59fde..241e207815 100644 --- a/linux-user/alpha/target_signal.h +++ b/linux-user/alpha/target_signal.h @@ -93,4 +93,10 @@ typedef struct target_sigaltstack { #define TARGET_GEN_SUBRNG7 -25 #define TARGET_ARCH_HAS_SETUP_FRAME + +/* bit-flags */ +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ +/* mask for all SS_xxx flags */ +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM + #endif /* ALPHA_TARGET_SIGNAL_H */ diff --git a/linux-user/hppa/target_signal.h b/linux-user/hppa/target_signal.h index c2a0102ed7..2c9d4e611e 100644 --- a/linux-user/hppa/target_signal.h +++ b/linux-user/hppa/target_signal.h @@ -66,4 +66,9 @@ typedef struct target_sigaltstack { #define TARGET_MINSIGSTKSZ 2048 #define TARGET_SIGSTKSZ 8192 +/* bit-flags */ +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ +/* mask for all SS_xxx flags */ +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM + #endif /* HPPA_TARGET_SIGNAL_H */ diff --git a/linux-user/mips/target_signal.h b/linux-user/mips/target_signal.h index 66e1ad44a6..4fdf15e279 100644 --- a/linux-user/mips/target_signal.h +++ b/linux-user/mips/target_signal.h @@ -73,4 +73,10 @@ typedef struct target_sigaltstack { /* compare linux/arch/mips/kernel/signal.c:setup_frame() */ #define TARGET_ARCH_HAS_SETUP_FRAME #endif + +/* bit-flags */ +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ +/* mask for all SS_xxx flags */ +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM + #endif /* MIPS_TARGET_SIGNAL_H */ diff --git a/linux-user/mips64/target_signal.h b/linux-user/mips64/target_signal.h index 753e91fbd6..93c64df3b7 100644 --- a/linux-user/mips64/target_signal.h +++ b/linux-user/mips64/target_signal.h @@ -68,4 +68,9 @@ typedef struct target_sigaltstack { #define TARGET_MINSIGSTKSZ 2048 #define TARGET_SIGSTKSZ 8192 +/* bit-flags */ +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ +/* mask for all SS_xxx flags */ +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM + #endif /* MIPS64_TARGET_SIGNAL_H */ diff --git a/linux-user/sparc/target_signal.h b/linux-user/sparc/target_signal.h index 5cc40327d2..a465d699d2 100644 --- a/linux-user/sparc/target_signal.h +++ b/linux-user/sparc/target_signal.h @@ -68,4 +68,10 @@ typedef struct target_sigaltstack { #define TARGET_SIGSTKSZ 16384 #define TARGET_ARCH_HAS_SETUP_FRAME + +/* bit-flags */ +#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ +/* mask for all SS_xxx flags */ +#define TARGET_SS_FLAG_BITS TARGET_SS_AUTODISARM + #endif /* SPARC_TARGET_SIGNAL_H */