Skip to content
Snippets Groups Projects
Commit 9e08efcf authored by Graeme Russ's avatar Graeme Russ Committed by Wolfgang Denk
Browse files

x86: Fix do_go_exec()


This was broken a long time ago by a4986459
which munged the NIOS and x86 do_go_exec()

Signed-off-by: default avatarGraeme Russ <graeme.russ@gmail.com>
parent 433ff2bd
Branches
Tags
No related merge requests found
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment