configs/makerlisp: Update external memory settings in linker script.

This commit is contained in:
Gregory Nutt
2019-06-16 10:22:57 -06:00
parent cad6325589
commit 7e05bacd54
5 changed files with 183 additions and 195 deletions
+1 -17
View File
@@ -43,23 +43,7 @@
#include "arch/board/board.h" #include "arch/board/board.h"
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Public Data
****************************************************************************/
/****************************************************************************
* Private Data
****************************************************************************/
/****************************************************************************
* Private Data
****************************************************************************/ ****************************************************************************/
uint32_t ez80_systemclock = EZ80_SYS_CLK_FREQ; uint32_t ez80_systemclock = EZ80_SYS_CLK_FREQ;
/****************************************************************************
* Private Functions
****************************************************************************/
/****************************************************************************
* Public Functions
****************************************************************************/
+1 -1
View File
@@ -77,7 +77,7 @@
;************************************************************************** ;**************************************************************************
_ez80_startup: _ez80_startup:
; Set up the stack pointer at the location determined the lincmd ; Set up the stack pointer at the location determined the linkcmd
; file ; file
ld sp, __stack ld sp, __stack
+1 -1
View File
@@ -226,7 +226,7 @@ _ez80_rstcommon:
push bc ; Offset 1: BC push bc ; Offset 1: BC
; At this point, we know that interrupts were enabled (or we wouldn't be here ; At this point, we know that interrupts were enabled (or we wouldn't be here
; so we can save a fake indicationn that will cause interrupts to restored when ; so we can save a fake indication that will cause interrupts to restored when
; this context is restored ; this context is restored
ld bc, #EZ80_PV_FLAG ; Parity bit. 1=parity odd, IEF2=1 ld bc, #EZ80_PV_FLAG ; Parity bit. 1=parity odd, IEF2=1
+2
View File
@@ -207,6 +207,7 @@ _ez80_init:
_ez80_initsysclk: _ez80_initsysclk:
; check if the PLL should be used ; check if the PLL should be used
ld a, (_ez80_sysclksrc) ld a, (_ez80_sysclksrc)
cp a, PLL cp a, PLL
jr nz, _ez80_initsysclkdone jr nz, _ez80_initsysclkdone
@@ -231,6 +232,7 @@ _ez80_initsysclk:
out0 (PLL_CTL1), a out0 (PLL_CTL1), a
; Wait for PLL to lock ; Wait for PLL to lock
_ez80_initsysclkwait: _ez80_initsysclkwait:
in0 a, (PLL_CTL1) in0 a, (PLL_CTL1)
and a, LCK_STATUS and a, LCK_STATUS
+22 -20
View File
@@ -34,14 +34,15 @@
/****************************************************************************/ /****************************************************************************/
-FORMAT=OMF695,INTEL32 -FORMAT=OMF695,INTEL32
-map -maxhexlen=64 -quiet -NOwarnoverlap -xref -unresolved=fatal -map -maxhexlen=64 -quiet -warnoverlap -xref -unresolved=fatal
-sort ADDRESS=ascending -warn -NOdebug -NOigcase -sort NAME=ascending -warn -debug -NOigcase
RANGE ROM $000000 : $03FFFF RANGE ROM $000000 : $03FFFF
RANGE RAM $B80000 : $BFFFFF RANGE RAM $040000 : $13FFFF
RANGE EXTIO $000000 : $00FFFF RANGE EXTIO $000000 : $00FFFF
RANGE INTIO $000000 : $0000FF RANGE INTIO $000000 : $0000FF
CHANGE TEXT is CODE
CHANGE STRSECT is ROM CHANGE STRSECT is ROM
ORDER .RESET,.IVECTS,.STARTUP,CODE,DATA ORDER .RESET,.IVECTS,.STARTUP,CODE,DATA
@@ -60,25 +61,26 @@ DEFINE __low_code = base of CODE
DEFINE __len_code = length of CODE DEFINE __len_code = length of CODE
DEFINE __copy_code_to_ram = 0 DEFINE __copy_code_to_ram = 0
DEFINE __crtl = 1 DEFINE __crtl = 1
DEFINE __CS0_LBR_INIT_PARAM = $10
DEFINE __CS0_UBR_INIT_PARAM = $1f DEFINE __CS0_LBR_INIT_PARAM = $04
DEFINE __CS0_CTL_INIT_PARAM = $a8 DEFINE __CS0_UBR_INIT_PARAM = $0b
DEFINE __CS0_BMC_INIT_PARAM = $02 DEFINE __CS0_CTL_INIT_PARAM = $08
DEFINE __CS1_LBR_INIT_PARAM = $c0 DEFINE __CS0_BMC_INIT_PARAM = $00
DEFINE __CS1_UBR_INIT_PARAM = $c7 DEFINE __CS1_LBR_INIT_PARAM = $0c
DEFINE __CS1_CTL_INIT_PARAM = $28 DEFINE __CS1_UBR_INIT_PARAM = $13
DEFINE __CS1_BMC_INIT_PARAM = $02 DEFINE __CS1_CTL_INIT_PARAM = $08
DEFINE __CS2_LBR_INIT_PARAM = $80 DEFINE __CS1_BMC_INIT_PARAM = $00
DEFINE __CS2_UBR_INIT_PARAM = $bf DEFINE __CS2_LBR_INIT_PARAM = $20
DEFINE __CS2_CTL_INIT_PARAM = $28 DEFINE __CS2_UBR_INIT_PARAM = $9f
DEFINE __CS2_BMC_INIT_PARAM = $81 DEFINE __CS2_CTL_INIT_PARAM = $88
DEFINE __CS2_BMC_INIT_PARAM = $00
DEFINE __CS3_LBR_INIT_PARAM = $00 DEFINE __CS3_LBR_INIT_PARAM = $00
DEFINE __CS3_UBR_INIT_PARAM = $00 DEFINE __CS3_UBR_INIT_PARAM = $00
DEFINE __CS3_CTL_INIT_PARAM = $00 DEFINE __CS3_CTL_INIT_PARAM = $00
DEFINE __CS3_BMC_INIT_PARAM = $02 DEFINE __CS3_BMC_INIT_PARAM = $00
DEFINE __RAM_CTL_INIT_PARAM = $C0 DEFINE __RAM_CTL_INIT_PARAM = $80
DEFINE __RAM_ADDR_U_INIT_PARAM = $B7 DEFINE __RAM_ADDR_U_INIT_PARAM = $AF
DEFINE __FLASH_CTL_INIT_PARAM = $68 DEFINE __FLASH_CTL_INIT_PARAM = $88
DEFINE __FLASH_ADDR_U_INIT_PARAM = $00 DEFINE __FLASH_ADDR_U_INIT_PARAM = $00
define _SYS_CLK_FREQ = 50000000 define _SYS_CLK_FREQ = 50000000
@@ -86,7 +88,7 @@ define _SYS_CLK_FREQ = 50000000
define _OSC_FREQ = 5000000 define _OSC_FREQ = 5000000
define _SYS_CLK_SRC = 1 define _SYS_CLK_SRC = 1
define _OSC_FREQ_MULT = 10 define _OSC_FREQ_MULT = 10
define __PLL_CTL0_INIT_PARAM = $40 define __PLL_CTL0_INIT_PARAM = $41
define _zsl_g_clock_xdefine = 50000000 define _zsl_g_clock_xdefine = 50000000