kern

diff src/proc.h @ 57:437360696883

I think we're done for now. two processes seem to be scheduled and switched just fine, fork seems to work (NO CoW YET!)
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 16 Aug 2011 03:26:53 +0300
parents 0be4615594df
children 0a205396e1a0
line diff
     1.1 --- a/src/proc.h	Mon Aug 15 06:17:58 2011 +0300
     1.2 +++ b/src/proc.h	Tue Aug 16 03:26:53 2011 +0300
     1.3 @@ -45,6 +45,8 @@
     1.4  
     1.5  void init_proc(void);
     1.6  
     1.7 +int fork(void);
     1.8 +
     1.9  void context_switch(int pid);
    1.10  
    1.11  void set_current_pid(int pid);
    1.12 @@ -52,4 +54,9 @@
    1.13  struct process *get_current_proc(void);
    1.14  struct process *get_process(int pid);
    1.15  
    1.16 +/* defined in proc-asm.S */
    1.17 +uint32_t get_instr_ptr(void);
    1.18 +uint32_t get_caller_instr_ptr(void);
    1.19 +void get_instr_stack_ptr(uint32_t *iptr, uint32_t *sptr);
    1.20 +
    1.21  #endif	/* PROC_H_ */