projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lm3s1968: implement the IRQ manager.
[bertos.git]
/
bertos
/
kern
/
proc.h
diff --git
a/bertos/kern/proc.h
b/bertos/kern/proc.h
index 842566b9db08cc3a77488b7092c866f9eff12b2e..bacd052be848fdebf85b826ece98fb527a88ca63 100644
(file)
--- a/
bertos/kern/proc.h
+++ b/
bertos/kern/proc.h
@@
-148,6
+148,7
@@
void proc_exit(void);
void proc_yield(void);
void proc_preempt(void);
int proc_needPreempt(void);
void proc_yield(void);
void proc_preempt(void);
int proc_needPreempt(void);
+void proc_wakeup(Process *proc);
/**
* Dummy function that defines unimplemented scheduler class methods.
/**
* Dummy function that defines unimplemented scheduler class methods.
@@
-167,7
+168,7
@@
INLINE void __proc_noop(void)
* Preemptive scheduler: private methods.
*/
#define preempt_switch proc_switch
* Preemptive scheduler: private methods.
*/
#define preempt_switch proc_switch
- #define preempt_
init proc_schedInit
+ #define preempt_
wakeup proc_wakeup
#else
/**
* Co-operative scheduler: public methods.
#else
/**
* Co-operative scheduler: public methods.
@@
-179,7
+180,7
@@
INLINE void __proc_noop(void)
* Co-operative scheduler: private methods.
*/
#define coop_switch proc_switch
* Co-operative scheduler: private methods.
*/
#define coop_switch proc_switch
- #define
proc_schedInit __proc_noo
p
+ #define
coop_wakeup proc_wakeu
p
#endif
void proc_rename(struct Process *proc, const char *name);
#endif
void proc_rename(struct Process *proc, const char *name);
@@
-193,7
+194,11
@@
const char *proc_currentName(void);
* the returned pointer to the correct type.
* \return Pointer to the user data of the current process.
*/
* the returned pointer to the correct type.
* \return Pointer to the user data of the current process.
*/
-iptr_t proc_currentUserData(void);
+INLINE iptr_t proc_currentUserData(void)
+{
+ extern struct Process *current_process;
+ return current_process->user_data;
+}
int proc_testSetup(void);
int proc_testRun(void);
int proc_testSetup(void);
int proc_testRun(void);