X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fproc.h;h=00ad4a094b8fd74404aeedfbc13c8f9f0512ae60;hb=19691d6e16c66fa0ed6176efa0d741b0f3e9d7bb;hp=0071ca13f41d3b779ab7630162598dae8aaaab55;hpb=b072c6de512ccd3a7b3b094175b7184526d2cb26;p=bertos.git diff --git a/bertos/kern/proc.h b/bertos/kern/proc.h index 0071ca13..00ad4a09 100644 --- a/bertos/kern/proc.h +++ b/bertos/kern/proc.h @@ -59,7 +59,9 @@ struct Process *proc_new_with_name(const char* name, void (*entry)(void), iptr_t #endif void proc_exit(void); -void proc_switch(void); +void proc_yield(void); +#define proc_switch proc_yield /* OBSOLETE */ + int proc_testSetup(void); int proc_testRun(void); int proc_testTearDown(void); @@ -68,7 +70,7 @@ struct Process *proc_current(void); iptr_t proc_current_user_data(void); void proc_rename(struct Process *proc, const char* name); -#if CONFIG_KERN_PREEMPTIVE +#if CONFIG_KERN_PREEMPT void proc_forbid(void); void proc_permit(void); #else @@ -117,9 +119,6 @@ void proc_rename(struct Process *proc, const char* name); #endif #endif -/* OBSOLETE */ -#define CONFIG_KERN_DEFSTACKSIZE CONFIG_PROC_DEFSTACKSIZE - /* Memory fill codes to help debugging */ #if CONFIG_KERN_MONITOR #include