Skip to content
Snippets Groups Projects
board.c 23.6 KiB
Newer Older
  • Learn to ignore specific revisions
  • Wolfgang Denk's avatar
    Wolfgang Denk committed
    	/* Initialization complete - start the monitor */
    
    	/* main_loop() can return to retry autoboot, if so just run it again. */
    	for (;;) {
    
    		WATCHDOG_RESET();
    		main_loop();
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    	}
    
    	/* NOTREACHED - no way out of command loop except booting */
    }
    
    
    #if 0	/* We could use plain global data, but the resulting code is bigger */
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    /*
     * Pointer to initial global data area
     *
     * Here we initialize it.
     */
    #undef	XTRN_DECLARE_GLOBAL_DATA_PTR
    #define XTRN_DECLARE_GLOBAL_DATA_PTR	/* empty = allocate here */
    
    DECLARE_GLOBAL_DATA_PTR =
    	(gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
    #endif /* 0 */
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    /************************************************************************/