X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fsignal_test.c;h=ea8c76e26fde6f9768810ad48e6e627ef50de091;hb=f709a37e5659fd591b5a61d80b45257105ac1850;hp=f2a4acfc62d22fd098393fa98322b4cd24b97103;hpb=e423e63cade618baf616a79b99aaab5de74ec76e;p=bertos.git diff --git a/bertos/kern/signal_test.c b/bertos/kern/signal_test.c index f2a4acfc..ea8c76e2 100644 --- a/bertos/kern/signal_test.c +++ b/bertos/kern/signal_test.c @@ -76,7 +76,7 @@ sigmask_t sig_to_slave; * These macros generate the code needed to create the test process functions. */ #define PROC_TEST_SLAVE(index, signal) \ -static void NORETURN proc_test##index(void) \ +static void NORETURN proc_signalTest##index(void) \ { \ for(;;) \ { \ @@ -96,8 +96,8 @@ static void NORETURN proc_test##index(void) \ count++; \ } while(0) \ -#define PROC_TEST_SLAVE_STACK(index) static cpu_stack_t proc_test##index##_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)]; -#define PROC_TEST_SLAVE_INIT(index, master_process) proc_new(proc_test##index, master_process, sizeof(proc_test##index##_stack), proc_test##index##_stack) +#define PROC_TEST_SLAVE_STACK(index) static cpu_stack_t proc_signal_test##index##_stack[700 / sizeof(cpu_stack_t)]; +#define PROC_TEST_SLAVE_INIT(index, master_process) proc_new(proc_signalTest##index, master_process, sizeof(proc_signal_test##index##_stack), proc_signal_test##index##_stack) // Generate the code for signal test. PROC_TEST_SLAVE(0, SIG_USER0)