microkernel: remove kernel service dispatch table
This change removes the internal number-to-function mapping of microkernel services. Instead, function pointers are used to specify which service to use. This is in preparation for private kernel objects. Before this, only kernel objects that are defined in MDEF files would have corresponding functions included in the final binary, via sysgen by populating an array of number-to-function mapping. This causes an issue when a certain type of objects are all defined with source code, and never in MDEF file. The corresponding mapping would be deleted, and the functions are never included in the binary. For example, if no mutexes are defined in MDEF file, the _k_mutex_*() functions would not be included. With this change, any usage of private kernel objects will hint to the linker that those functions are needed, and should not be removed from final binary. Change-Id: If48864abcd6471bcb7964ec00fe668bcabe3239b Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
619eec89ce
commit
74c8852d05
22 changed files with 266 additions and 396 deletions
|
@ -74,7 +74,7 @@ void _TaskAbort(void)
|
|||
if (_ScbIsInThreadMode()) {
|
||||
_task_ioctl(_k_current_task->Ident, taskAbortCode);
|
||||
} else {
|
||||
cmd_packet.Comm = TSKOP;
|
||||
cmd_packet.Comm = _K_SVC_TASK_OP;
|
||||
cmd_packet.Args.g1.task = _k_current_task->Ident;
|
||||
cmd_packet.Args.g1.opt = taskAbortCode;
|
||||
cmd_packet.alloc = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue