zephyr/kernel/microkernel
Allan Stephens ddaebc15b3 kernel: Eliminate use of main() in microkernel
Revises microkernel initialization code by incorporating the existing
_k_kernel_init() and main() routines into _main(). This optimizes kernel
initialization a bit, and allows application code to use main()
if desired -- for example, as the entry point to an application task.
The change also eliminates the need for sysgen to generate a routine
whose content is always the same.

This change preserves the existing order of operations done during
kernel initialization, and leaves further improvements for later.

Change-Id: Ie03d8a6f38f8a311f398667ed977fd8478719d70
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
2016-02-05 20:24:21 -05:00
..
include kernel: Eliminate use of main() in microkernel 2016-02-05 20:24:21 -05:00
Kconfig kernel: kconfig: remove dependencies on EXPERIMENTAL 2016-02-05 20:24:20 -05:00
Makefile Rename microkernel's global.c to k_init.c 2016-02-05 20:14:25 -05:00
k_command_packet.c doxygen: move command_packet documentation to header 2016-02-05 20:15:34 -05:00
k_event.c Rename microkernel struct field 'Count' to 'count'. 2016-02-05 20:15:29 -05:00
k_fifo.c Rename microkernel struct field 'Hmark' to 'high_watermark'. 2016-02-05 20:15:29 -05:00
k_idle.c doxygen: microkernel timer header doxygenation 2016-02-05 20:15:34 -05:00
k_init.c kernel: Eliminate use of main() in microkernel 2016-02-05 20:24:21 -05:00
k_irq.c doxygen: microkernel irq header doxygenation 2016-02-05 20:15:34 -05:00
k_mailbox.c Rename microkernel struct field 'MovedReq' to 'moved_req'. 2016-02-05 20:15:31 -05:00
k_memory_map.c Rename microkernel struct field 'Free' to 'free'. 2016-02-05 20:15:30 -05:00
k_memory_pool.c doc: document memorypool API in header file 2016-02-05 20:15:33 -05:00
k_move_data.c Rename microkernel struct field 'MovedReq' to 'moved_req'. 2016-02-05 20:15:31 -05:00
k_mutex.c mutex: fix comments still containing the 'node' concept 2016-02-05 20:15:36 -05:00
k_nop.c microkernel: rename K_swapper to _k_server 2016-02-05 20:15:21 -05:00
k_offload.c doxygen: move task public api docs to header 2016-02-05 20:15:34 -05:00
k_pipe.c doc: document pipe API in header file 2016-02-05 20:15:34 -05:00
k_pipe_buffer.c Rename microkernel struct field 'iSize' to 'size'. 2016-02-05 20:15:31 -05:00
k_pipe_get.c pipes: remove lingering mentions of 'remote nodes' 2016-02-05 20:15:36 -05:00
k_pipe_put.c pipes: remove lingering mentions of 'remote nodes' 2016-02-05 20:15:36 -05:00
k_pipe_util.c Rename microkernel struct field 'iSize' to 'size'. 2016-02-05 20:15:31 -05:00
k_pipe_xfer.c Rename microkernel struct field 'MovedReq' to 'moved_req'. 2016-02-05 20:15:31 -05:00
k_semaphore.c Rename microkernel struct field 'Count' to 'count'. 2016-02-05 20:15:29 -05:00
k_server.c Rename microkernel struct field 'Head' to 'head'. 2016-02-05 20:15:30 -05:00
k_task.c microkernel: add task pointer list 2016-02-05 20:15:58 -05:00
k_task_monitor.c Rename microkernel struct field 'Args' to 'args'. 2016-02-05 20:15:29 -05:00
k_ticker.c doxygen: microkernel timer header doxygenation 2016-02-05 20:15:34 -05:00
k_timer.c doxygen: microkernel timer header doxygenation 2016-02-05 20:15:34 -05:00