
/*
 * A simple program that demonstrates executing NAPA code
 * start in ROM, jump to this program in SRAM, and then jump to NAPA.
 * This test program doesn't work (due to initChip()?)
 *
 * Use to build napa.mem:
 *
 * SRAM_SPLASH_CFLAGS_B= -I../include -ffreestanding -nostdlib -mbig-endian 
 *   -Ttext 0xfff00000 -Tdata 0xfff02000
 *
 * $(CC) $(SRAM_SPLASH_CFLAGS_B) -o napa1B.arm sram_init1B.o napa1.c 
 *   $(PROJECT_ROOT)/main/hw/diag/lib/arm/armcommon.a
 *
 */

#include "mmu.h"
#include "proto.h"

extern void initChip();

void
_user_start (void)
{
    initChip();

    asm ("ldr sp, =0x00103800");
    asm ("ldr pc, =0x00100000");
}

/* eof */
