adding in ecen425 RTOS final lab

This commit is contained in:
dm
2016-04-10 09:23:15 -07:00
parent 4014513685
commit e3fae2b680
18 changed files with 2605 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
YKIdleTask:
push bp
mov bp, sp
yak_loop:
inc word [YKIdleCount]
jmp yak_loop
YKDispatcher:
cli
push bp
mov bp, sp
mov bx, [bp+4] ;Obtain stack pointer from TCB
mov sp, [bx+4] ;Load stack pointer into SP
pop bp
pop es
pop ds
pop si
pop di
pop dx
pop cx
pop bx
pop ax
iret
YKEnterMutex:
cli
ret
YKExitMutex:
sti
ret