Basic demo up and running.

This commit is contained in:
Richard Barry 2008-08-08 12:50:22 +00:00
parent 5ff84b9869
commit 181889d6b1
3 changed files with 48 additions and 9 deletions

View file

@ -9,9 +9,31 @@
*/
.global ulPortSetIPL
.global __cs3_isr_interrupt_127
.global __cs3_isr_interrupt_119
.global vPortStartFirstTask
.text
.macro portSAVE_CONTEXT
lea.l (-60, %sp), %sp
movem.l %d0-%fp, (%sp)
move.l pxCurrentTCB, %a0
move.l %sp, (%a0)
.endm
.macro portRESTORE_CONTEXT
move.l pxCurrentTCB, %sp
move.l (%sp), %sp
movem.l (%sp), %d0-%fp
lea.l %sp@(60), %sp
rte
.endm
/********************************************************************/
/*
* This routines changes the IPL to the value passed into the routine.
@ -47,6 +69,20 @@ ulPortSetIPL:
rts
/********************************************************************/
/* Yield interrupt. */
__cs3_isr_interrupt_127:
portSAVE_CONTEXT
jsr vPortClearYield
jsr vTaskSwitchContext
portRESTORE_CONTEXT
/********************************************************************/
vPortStartFirstTask:
portRESTORE_CONTEXT
.end