|
@@ -6,6 +6,7 @@
|
|
#include <common.h>
|
|
#include <common.h>
|
|
#include <os.h>
|
|
#include <os.h>
|
|
#include <asm/getopt.h>
|
|
#include <asm/getopt.h>
|
|
|
|
+#include <asm/io.h>
|
|
#include <asm/sections.h>
|
|
#include <asm/sections.h>
|
|
#include <asm/state.h>
|
|
#include <asm/state.h>
|
|
|
|
|
|
@@ -218,6 +219,7 @@ SANDBOX_CMDLINE_OPT_SHORT(terminal, 't', 1,
|
|
int main(int argc, char *argv[])
|
|
int main(int argc, char *argv[])
|
|
{
|
|
{
|
|
struct sandbox_state *state;
|
|
struct sandbox_state *state;
|
|
|
|
+ gd_t data;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
ret = state_init();
|
|
ret = state_init();
|
|
@@ -236,6 +238,9 @@ int main(int argc, char *argv[])
|
|
if (state->ram_buf_rm && state->ram_buf_fname)
|
|
if (state->ram_buf_rm && state->ram_buf_fname)
|
|
os_unlink(state->ram_buf_fname);
|
|
os_unlink(state->ram_buf_fname);
|
|
|
|
|
|
|
|
+ memset(&data, '\0', sizeof(data));
|
|
|
|
+ gd = &data;
|
|
|
|
+
|
|
/* Do pre- and post-relocation init */
|
|
/* Do pre- and post-relocation init */
|
|
board_init_f(0);
|
|
board_init_f(0);
|
|
|
|
|