diff --git a/src/Makefile b/src/Makefile index 3207b6b..58b8616 100644 --- a/src/Makefile +++ b/src/Makefile @@ -41,7 +41,7 @@ OBJCOPY=mips-elf-objcopy PROG-ml402 = $(addprefix $(BUILD_DIR)/, hello.elf testbench.elf test_irq.elf dhry.elf queens.elf stanford.elf paranoia.elf rmd160_test.elf Bessel.elf whet.elf phrasen.elf dttl.elf richards_benchmark.elf test_exception.elf life.elf r3.elf gunzip.elf basic_math.elf jman_patches.elf jman_patchmeshes.elf jman_polys.elf test_hpi.elf test_vga.elf test_fft.elf) -PROG-denano = $(addprefix $(BUILD_DIR)/, hello.elf dhry.elf queens.elf stanford.elf paranoia.elf rmd160_test.elf Bessel.elf whet.elf phrasen.elf dttl.elf richards_benchmark.elf test_exception.elf) +PROG-denano = $(addprefix $(BUILD_DIR)/, hello.elf dhry.elf queens.elf stanford.elf paranoia.elf rmd160_test.elf Bessel.elf whet.elf phrasen.elf dttl.elf richards_benchmark.elf test_exception.elf testbench_denano.elf) all: $(PROG-$(BOARD)) diff --git a/src/libsys/Makefile b/src/libsys/Makefile index c356f9b..6787e77 100644 --- a/src/libsys/Makefile +++ b/src/libsys/Makefile @@ -5,7 +5,7 @@ BOARD ?= ml402 TLB ?= no ENDIANESS ?= eb -DEBUGGER ?= mips +DEBUGGER ?= rom ifeq ($(ENDIANESS),el) diff --git a/src/libsys/boards/denano/board.c b/src/libsys/boards/denano/board.c index 6a80d69..cd21c7d 100644 --- a/src/libsys/boards/denano/board.c +++ b/src/libsys/boards/denano/board.c @@ -13,6 +13,9 @@ extern uart_if_t uart_if[]; +#ifdef WITH_ROM_DEBUGGER +const fp_xcpt_t dbg_func = (fp_xcpt_t)0xbfc01fc0; +#else #ifdef WITH_GDB_STUB extern void handle_exception (unsigned long *registers); #else @@ -28,14 +31,11 @@ int dbg_stub(struct xcptcontext * xcp) #else return dbg_handler(xcp); #endif - } -#ifdef WITH_ROM_DEBUGGER -const fp_xcpt_t dbg_func = (fp_xcpt_t)0xbfc01fc0; -#else const fp_xcpt_t dbg_func = (fp_xcpt_t)dbg_stub; #endif + #define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))