forked from Firmware/Firmwares
		
	fixes TGC5L settings
This commit is contained in:
		
							
								
								
									
										4
									
								
								bare-metal-bsp/env/TGC5L/link.lds
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								bare-metal-bsp/env/TGC5L/link.lds
									
									
									
									
										vendored
									
									
								
							@@ -4,8 +4,8 @@ ENTRY( _start )
 | 
			
		||||
 | 
			
		||||
MEMORY
 | 
			
		||||
{
 | 
			
		||||
  flash (rxai!w) : ORIGIN = 0x80000000, LENGTH = 64k
 | 
			
		||||
  ram (wxa!ri) :   ORIGIN = 0x80010000, LENGTH = 64k
 | 
			
		||||
  flash (rxai!w) : ORIGIN = 0x00000000, LENGTH = 256M
 | 
			
		||||
  ram (wxa!ri) :   ORIGIN = 0x20000000, LENGTH = 1M
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
PHDRS
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										8
									
								
								bare-metal-bsp/env/start.S
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								bare-metal-bsp/env/start.S
									
									
									
									
										vendored
									
									
								
							@@ -5,6 +5,8 @@
 | 
			
		||||
	.type _start,@function
 | 
			
		||||
 | 
			
		||||
_start:
 | 
			
		||||
    la gp, trap_entry
 | 
			
		||||
    csrw mtvec, gp
 | 
			
		||||
.option push
 | 
			
		||||
.option norelax
 | 
			
		||||
    la gp, __global_pointer$
 | 
			
		||||
@@ -18,8 +20,8 @@ _start:
 | 
			
		||||
	bgeu a1, a2, 2f
 | 
			
		||||
1:
 | 
			
		||||
	lw t0, (a0)
 | 
			
		||||
	sw t0, (a1)
 | 
			
		||||
	addi a0, a0, 4
 | 
			
		||||
	sw t0, (a1)
 | 
			
		||||
	addi a1, a1, 4
 | 
			
		||||
	bltu a1, a2, 1b
 | 
			
		||||
2:
 | 
			
		||||
@@ -35,11 +37,11 @@ _start:
 | 
			
		||||
2:
 | 
			
		||||
 | 
			
		||||
	/* Call global constructors */
 | 
			
		||||
#ifdef HAVE_INIT_FINI
 | 
			
		||||
//#ifdef HAVE_INIT_FINI
 | 
			
		||||
	la a0, __libc_fini_array
 | 
			
		||||
	call atexit
 | 
			
		||||
	call __libc_init_array
 | 
			
		||||
#endif
 | 
			
		||||
//#endif
 | 
			
		||||
#ifndef __riscv_float_abi_soft
 | 
			
		||||
	/* Enable FPU */
 | 
			
		||||
	li t0, MSTATUS_FS
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user