From 645682fd40b5855a1dfbca5ddb330dda7cf5ddc0 Mon Sep 17 00:00:00 2001 From: Luoqi Chen Date: Mon, 11 Oct 1999 20:33:17 +0000 Subject: Add a per-signal flag to mark handlers registered with osigaction, so we can provide the correct context to each signal handler. Fix broken sigsuspend(): don't use p_oldsigmask as a flag, use SAS_OLDMASK as we did before the linuxthreads support merge (submitted by bde). Move ps_sigstk from to p_sigacts to the main proc structure since signal stack should not be shared among threads. Move SAS_OLDMASK and SAS_ALTSTACK flags from sigacts::ps_flags to proc::p_flag. Move PS_NOCLDSTOP and PS_NOCLDWAIT flags from proc::p_flag to procsig::ps_flag. Reviewed by: marcel, jdp, bde --- sys/amd64/include/md_var.h | 3 +-- sys/amd64/include/ucontext.h | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/amd64/include') diff --git a/sys/amd64/include/md_var.h b/sys/amd64/include/md_var.h index d9a43fa29007..e0bc65acfb9a 100644 --- a/sys/amd64/include/md_var.h +++ b/sys/amd64/include/md_var.h @@ -58,7 +58,7 @@ extern void (*netisrs[32]) __P((void)); extern int nfs_diskless_valid; extern void (*ovbcopy_vector) __P((const void *from, void *to, size_t len)); extern char sigcode[]; -extern int szsigcode; +extern int szsigcode, oszsigcode; typedef void alias_for_inthand_t __P((u_int cs, u_int ef, u_int esp, u_int ss)); struct proc; @@ -91,7 +91,6 @@ int i586_copyout __P((const void *kaddr, void *udaddr, size_t len)); void i686_pagezero __P((void *addr)); int is_physical_memory __P((vm_offset_t addr)); u_long kvtop __P((void *addr)); -int load_gs_param __P((u_int sel)); void setidt __P((int idx, alias_for_inthand_t *func, int typ, int dpl, int selec)); void swi_vm __P((void)); diff --git a/sys/amd64/include/ucontext.h b/sys/amd64/include/ucontext.h index 6397a31a309a..c0a3aa8e1c6e 100644 --- a/sys/amd64/include/ucontext.h +++ b/sys/amd64/include/ucontext.h @@ -31,8 +31,6 @@ #ifndef _MACHINE_UCONTEXT_H_ #define _MACHINE_UCONTEXT_H_ -#include - typedef struct __mcontext { /* * The first 20 fields must match the definition of -- cgit v1.3