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
ld-tool portability fix: MacOS build experience
[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 ba73de0b8a5738bfa6ce0d0c789e1f632e80b9e1..fe33fa2136c5f73c731a950d90deba370ac9de6f 100644
(file)
--- a/
lunaix-os/includes/lunaix/process.h
+++ b/
lunaix-os/includes/lunaix/process.h
@@
-12,7
+12,7
@@
#include <lunaix/timer.h>
#include <lunaix/types.h>
#include <lunaix/spike.h>
#include <lunaix/timer.h>
#include <lunaix/types.h>
#include <lunaix/spike.h>
-#include <lunaix/
pcontext
.h>
+#include <lunaix/
hart_state
.h>
#include <stdint.h>
#include <stdint.h>
@@
-60,7
+60,7
@@
struct proc_sig
int sig_num;
void* sigact;
void* sighand;
int sig_num;
void* sigact;
void* sighand;
-
isr_param* saved_ictx
;
+
struct hart_state* saved_hstate
;
} __attribute__((packed));
} __attribute__((packed));
@@
-81,7
+81,7
@@
struct thread
*/
struct
{
*/
struct
{
-
isr_param* intr_ctx
;
+
struct hart_state* hstate
;
ptr_t ustack_top;
}; // *critical section
ptr_t ustack_top;
}; // *critical section
@@
-133,7
+133,7
@@
struct proc_info
};
struct proc_mm* mm;
};
struct proc_mm* mm;
- struct sigregist
er
* sigreg;
+ struct sigregist
ry
* sigreg;
struct v_fdtable* fdtable;
struct v_dnode* cwd;
struct {
struct v_fdtable* fdtable;
struct v_dnode* cwd;
struct {
@@
-351,7
+351,7
@@
thread_release_mem(struct thread* thread);
static inline struct sigact*
active_signal(struct thread* thread) {
struct sigctx* sigctx = &thread->sigctx;
static inline struct sigact*
active_signal(struct thread* thread) {
struct sigctx* sigctx = &thread->sigctx;
- struct sigregist
er
* sigreg = thread->process->sigreg;
+ struct sigregist
ry
* sigreg = thread->process->sigreg;
return sigreg->signals[sigctx->sig_active];
}
return sigreg->signals[sigctx->sig_active];
}