diff options
Diffstat (limited to 'samples/microkernel/benchmark/footprint')
-rw-r--r-- | samples/microkernel/benchmark/footprint/src/microkernel_footprint.c | 42 | ||||
-rw-r--r-- | samples/microkernel/benchmark/footprint/src/test_asm_inline_gcc.h | 2 |
2 files changed, 22 insertions, 22 deletions
diff --git a/samples/microkernel/benchmark/footprint/src/microkernel_footprint.c b/samples/microkernel/benchmark/footprint/src/microkernel_footprint.c index e2997a463..8a4204fda 100644 --- a/samples/microkernel/benchmark/footprint/src/microkernel_footprint.c +++ b/samples/microkernel/benchmark/footprint/src/microkernel_footprint.c @@ -84,27 +84,27 @@ NANO_CPU_INT_REGISTER(isrDummyIntStub, TEST_SOFT_INT, 0); /* pointer array ensures specified functions are linked into the image */ static pfunc func_array[] = { - /* event functions */ + /* event functions */ (pfunc)task_event_send, (pfunc)_task_event_recv, - /* mutex functions */ + /* mutex functions */ (pfunc)_task_mutex_lock, (pfunc)_task_mutex_unlock, - /* FIFO functions */ + /* FIFO functions */ (pfunc)_task_fifo_put, (pfunc)_task_fifo_get, (pfunc)_task_fifo_ioctl, - /* memory map functions */ + /* memory map functions */ (pfunc)task_mem_map_used_get, (pfunc)_task_mem_map_alloc, (pfunc)_task_mem_map_free, #ifdef TEST_max - /* task device interrupt functions */ + /* task device interrupt functions */ (pfunc)task_irq_alloc, (pfunc)_task_irq_test, (pfunc)task_irq_ack, (pfunc)task_irq_free, - /* semaphore functions */ + /* semaphore functions */ (pfunc)isr_sem_give, (pfunc)task_sem_give, (pfunc)task_sem_group_give, @@ -113,7 +113,7 @@ static pfunc func_array[] = { (pfunc)task_sem_group_reset, (pfunc)_task_sem_take, (pfunc)_task_sem_group_take, - /* pipe functions */ + /* pipe functions */ (pfunc)task_pipe_put, (pfunc)task_pipe_put_wait, (pfunc)task_pipe_put_wait_timeout, @@ -123,17 +123,17 @@ static pfunc func_array[] = { (pfunc)_task_pipe_put_async, (pfunc)_task_pipe_put, (pfunc)_task_pipe_get, - /* mailbox functions */ + /* mailbox functions */ (pfunc)_task_mbox_put, (pfunc)_task_mbox_get, (pfunc)_task_mbox_put_async, (pfunc)_task_mbox_data_get, (pfunc)_task_mbox_data_get_async_block, - /* memory pool functions */ + /* memory pool functions */ (pfunc)_task_mem_pool_alloc, (pfunc)task_mem_pool_free, (pfunc)task_mem_pool_defragment, - /* task functions */ + /* task functions */ (pfunc)_task_ioctl, (pfunc)_task_group_ioctl, (pfunc)task_abort_handler_set, @@ -142,7 +142,7 @@ static pfunc func_array[] = { (pfunc)task_sleep, (pfunc)task_yield, #endif /* TEST_max */ - }; +}; /******************************************************************************* * @@ -152,9 +152,9 @@ static pfunc func_array[] = { */ void dummyIsr(void *unused) - { +{ ARG_UNUSED(unused); - } +} #ifdef TEST_reg /******************************************************************************* @@ -169,13 +169,13 @@ void dummyIsr(void *unused) */ static void isrDummyIntStub(void *unused) - { +{ ARG_UNUSED(unused); isr_dummy(); CODE_UNREACHABLE; - } +} #endif /* TEST_reg */ /******************************************************************************* @@ -191,14 +191,14 @@ static void isrDummyIntStub(void *unused) */ void fgTaskEntry(void) - { +{ #ifdef TEST_max - /* dynamically link in dummy ISR */ + /* dynamically link in dummy ISR */ irq_connect(NANO_SOFT_IRQ, IRQ_PRIORITY, dummyIsr, - (void *) 0, isrDummyHandlerStub); + (void *) 0, isrDummyHandlerStub); #endif /* TEST_max */ - /* note: referencing "func_array" ensures it isn't optimized out */ + /* note: referencing "func_array" ensures it isn't optimized out */ #ifdef TEST_max printf((char *)MESSAGE, func_array); #else @@ -206,8 +206,8 @@ void fgTaskEntry(void) #endif /* TEST_max */ while (1) { - i++; - } + i++; } +} #endif /* TEST_min */ diff --git a/samples/microkernel/benchmark/footprint/src/test_asm_inline_gcc.h b/samples/microkernel/benchmark/footprint/src/test_asm_inline_gcc.h index 427e32051..83570103f 100644 --- a/samples/microkernel/benchmark/footprint/src/test_asm_inline_gcc.h +++ b/samples/microkernel/benchmark/footprint/src/test_asm_inline_gcc.h @@ -42,7 +42,7 @@ static inline void isr_dummy(void) extern void _IntEnt(void); extern void _IntExit(void); - /* compiler-generated preamble pushes & modifies EBP */ + /* compiler-generated preamble pushes & modifies EBP */ __asm__ volatile ( "pop %%ebp;\n\t" "call _IntEnt;\n\t" |