From 7c5a5be8bb6e0b22474450124dd70646a43e37fc Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 12 Feb 2008 14:52:34 +0000 Subject: [PATCH] More z80 repairs due to z8 port git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@672 7fd9a85b-ad96-42d3-883c-3090e2eb8679 --- nuttx/ChangeLog | 1 + nuttx/Documentation/NuttX.html | 1 + nuttx/arch/z80/src/Makefile.sdcc | 16 ++++++++-------- nuttx/arch/z80/src/z80/z80_head.asm | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index 5c840fbe5..e3788e250 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -338,4 +338,5 @@ * Began adding support for the ZiLOG Z8Encore! microcontroller for the Z8Encore000ZCO development board and the Z8F642 part. + * Fix broken 'clean' target on z80sim configurations diff --git a/nuttx/Documentation/NuttX.html b/nuttx/Documentation/NuttX.html index c7a455600..f18c1bf7e 100644 --- a/nuttx/Documentation/NuttX.html +++ b/nuttx/Documentation/NuttX.html @@ -992,6 +992,7 @@ nuttx-0.3.9 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> * Began adding support for the ZiLOG Z8Encore! microcontroller for the Z8Encore000ZCO development board and the Z8F642 part. + * Fix broken 'clean' target on z80sim configurations pascal-0.1.3 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> diff --git a/nuttx/arch/z80/src/Makefile.sdcc b/nuttx/arch/z80/src/Makefile.sdcc index 500ed001e..89278d894 100644 --- a/nuttx/arch/z80/src/Makefile.sdcc +++ b/nuttx/arch/z80/src/Makefile.sdcc @@ -117,17 +117,17 @@ up_mem.h: @echo "#endif /* __UP_MEM_H */" >>up_mem.h asm_mem.h: - @echo " UP_COMPILER_OTHER == 0" > asm_mem.h - @echo " UP_COMPILER_SDCC == 1" >> asm_mem.h + @echo " CONFIG_COMPILER_OTHER == 0" > asm_mem.h + @echo " CONFIG_COMPILER_SDCC == 1" >> asm_mem.h ifeq ($(CC),sdcc) - @echo " UP_COMPILER == 1" >> asm_mem.h + @echo " CONFIG_COMPILER == 1" >> asm_mem.h else - @echo " UP_COMPILER == 0" >> asm_mem.h + @echo " CONFIG_COMPILER == 0" >> asm_mem.h endif - @echo " UP_STACK_END == ($(CONFIG_DRAM_SIZE) - 1)" >> asm_mem.h - @echo " UP_STACK_BASE == (UP_STACK_END - $(CONFIG_PROC_STACK_SIZE))" >> asm_mem.h - @echo " UP_HEAP1_END == (UP_STACK_END - $(CONFIG_PROC_STACK_SIZE) - 1)" >> asm_mem.h - @echo " UP_HEAP1_BASE == $(HEAP_BASE)" >> asm_mem.h + @echo " CONFIG_STACK_END == ($(CONFIG_DRAM_SIZE) - 1)" >> asm_mem.h + @echo " CONFIG_STACK_BASE == (CONFIG_STACK_END - $(CONFIG_PROC_STACK_SIZE))" >> asm_mem.h + @echo " CONFIG_HEAP1_END == (CONFIG_STACK_END - $(CONFIG_PROC_STACK_SIZE) - 1)" >> asm_mem.h + @echo " CONFIG_HEAP1_BASE == $(HEAP_BASE)" >> asm_mem.h # Combine all objects in this directory into a library diff --git a/nuttx/arch/z80/src/z80/z80_head.asm b/nuttx/arch/z80/src/z80/z80_head.asm index 816cab347..2a02cdf1c 100644 --- a/nuttx/arch/z80/src/z80/z80_head.asm +++ b/nuttx/arch/z80/src/z80/z80_head.asm @@ -166,7 +166,7 @@ _up_reset:: ; Set up the stack pointer at the location determined the Makefile ; and stored in asm_mem.h - ld SP, #UP_STACK_END ; Set stack pointer + ld SP, #CONFIG_STACK_END ; Set stack pointer ; Performed initialization unique to the SDCC toolchain