mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
x86: Fix do_go_exec()
This was broken a long time ago by a49864593e
which munged the NIOS and x86 do_go_exec()
Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
This commit is contained in:
parent
433ff2bdbc
commit
9e08efcfee
1 changed files with 4 additions and 4 deletions
|
|
@ -422,10 +422,10 @@ void hang (void)
|
|||
unsigned long do_go_exec (ulong (*entry)(int, char *[]), int argc, char *argv[])
|
||||
{
|
||||
/*
|
||||
* TODO: Test this function - changed to fix compiler error.
|
||||
* Original code was:
|
||||
* return (entry >> 1) (argc, argv);
|
||||
* with a comment about Nios function pointers are address >> 1
|
||||
* x86 does not use a dedicated register to pass the pointer
|
||||
* to the global_data
|
||||
*/
|
||||
argv[-1] = (char *)gd;
|
||||
|
||||
return (entry) (argc, argv);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue