arches: fix arch_new_thread param names
MISRA-C wants the parameter names in a function implementaion to match the names used by the header prototype. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
aa464052ff
commit
24825c8667
9 changed files with 58 additions and 60 deletions
|
@ -13,7 +13,7 @@ extern void x86_sse_init(struct k_thread *); /* in locore.S */
|
|||
|
||||
void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack,
|
||||
size_t stack_size, k_thread_entry_t entry,
|
||||
void *parameter1, void *parameter2, void *parameter3)
|
||||
void *p1, void *p2, void *p3)
|
||||
{
|
||||
void *switch_entry;
|
||||
|
||||
|
@ -44,9 +44,9 @@ void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack,
|
|||
* thread->callee_saved.rip
|
||||
*/
|
||||
thread->arch.rdi = (long) entry;
|
||||
thread->arch.rsi = (long) parameter1;
|
||||
thread->arch.rdx = (long) parameter2;
|
||||
thread->arch.rcx = (long) parameter3;
|
||||
thread->arch.rsi = (long) p1;
|
||||
thread->arch.rdx = (long) p2;
|
||||
thread->arch.rcx = (long) p3;
|
||||
|
||||
x86_sse_init(thread);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue