F-12890: change_stack_and_invoke has no callback arg

The function takes (new_stack, other_func) only; the doc described a
nonexistent 'ptr' parameter.
pull/892/head
Daniele Lacamera 2026-09-16 12:14:13 +02:00
parent ae2145a380
commit 43a0e59f37
1 changed files with 1 additions and 2 deletions

View File

@ -147,11 +147,10 @@ static int get_top_address(uint64_t *top, struct efi_hob *hoblist)
* \brief Change the stack and invoke a function with the new stack.
*
* This function changes the stack to the specified 'new_stack' value and then
* calls the function pointed to by 'other_func', passing the 'ptr' parameter as an argument.
* calls the function pointed to by 'other_func'.
*
* \param new_stack The new stack address.
* \param other_func Pointer to the function to be invoked with the new stack.
* \param ptr Pointer to the parameter to be passed to the invoked function.
*/
static void change_stack_and_invoke(uint32_t new_stack,
void (*other_func)(void))