Make atomthreads link with SDCC

This commit is contained in:
Philipp Klaus Krause
2016-06-16 21:01:38 +02:00
parent 7e03729526
commit 9251272859
2 changed files with 6 additions and 3 deletions

View File

@@ -21,7 +21,10 @@ _archContextSwitch::
; restore context
ldw x, (5, sp)
jra restore
ldw x, (x)
ldw sp, x
ret
; void archFirstThreadRestore (ATOM_TCB *new_tcb_ptr)
_archFirstThreadRestore::

View File

@@ -44,8 +44,8 @@ vpath %.hex .\$(BUILD_DIR)
# Compiler/Assembler flags
CFLAGS= -mstm8 -c -D $(PART) --opt-code-size --max-allocs-per-node 3000
DBG_CFLAGS= -mstm8 -c -D $(PART) --opt-code-size --max-allocs-per-node 3000
ASMFLAGS= -off
DBG_ASMFLAGS= -off
ASMFLAGS= -loff
DBG_ASMFLAGS= -loff
LINKFLAGS= -mstm8
DBG_LINKFLAGS= -mstm8