git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: corner case for x87 context restore on execve
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
process.h
diff --git
a/lunaix-os/includes/lunaix/process.h
b/lunaix-os/includes/lunaix/process.h
index 7d385a472d899283bb2773cc581513245df4df1e..1453e71634a72b5ee562f97131899693928ebb12 100644
(file)
--- a/
lunaix-os/includes/lunaix/process.h
+++ b/
lunaix-os/includes/lunaix/process.h
@@
-45,8
+45,6
@@
#define proc_hanged(proc) (((proc)->state) & PS_BLOCKED)
#define proc_runnable(proc) (((proc)->state) & PS_PAUSED)
#define proc_hanged(proc) (((proc)->state) & PS_BLOCKED)
#define proc_runnable(proc) (((proc)->state) & PS_PAUSED)
-#define PROC_FINPAUSE 1
-
struct sigact
{
struct sigact* prev;
struct sigact
{
struct sigact* prev;
@@
-76,17
+74,17
@@
struct proc_info
{
/*
Any change to *critical section*, including layout, size
{
/*
Any change to *critical section*, including layout, size
- must be reflected in
kernel/asm/x86/interrupt.S
to avoid
+ must be reflected in
arch/x86/interrupt.S.inc
to avoid
disaster!
*/
/* ---- critical section start ---- */
disaster!
*/
/* ---- critical section start ---- */
- pid_t pid;
// offset = 0
- struct proc_info* parent;
// offset = 4
- isr_param* intr_ctx;
// offset = 8
- ptr_t ustack_top;
// offset = 84 -> 56 -> 60 -> 12
- ptr_t page_table;
// offset = 88 -> 60 -> 64 -> 16
+ pid_t pid;
+ struct proc_info* parent;
+ isr_param* intr_ctx;
+ ptr_t ustack_top;
+ ptr_t page_table;
/* ---- critical section end ---- */
/* ---- critical section end ---- */
@@
-108,7
+106,6
@@
struct proc_info
u8_t state;
int32_t exit_code;
int32_t k_status;
u8_t state;
int32_t exit_code;
int32_t k_status;
- int flags;
struct sighail sigctx;
struct v_fdtable* fdtable;
struct v_dnode* cwd;
struct sighail sigctx;
struct v_fdtable* fdtable;
struct v_dnode* cwd;
@@
-195,4
+192,7
@@
get_process(pid_t pid);
void
proc_setsignal(struct proc_info* proc, int signum);
void
proc_setsignal(struct proc_info* proc, int signum);
+void
+proc_clear_signal(struct proc_info* proc);
+
#endif /* __LUNAIX_PROCESS_H */
#endif /* __LUNAIX_PROCESS_H */