Skip to content
Snippets Groups Projects
Commit 6c0b3936 authored by patacongo's avatar patacongo
Browse files

Fix errors in handling interrupt bits on context restore

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1540 42af7a65-404d-4744-a932-0658087f49c3
parent bd0d1700
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ _ez80_restorecontext:
; Restore interrupt state
ex af, af' ; Recover interrupt state
jp po, noinrestore ; No parity, IFF2=0, means disabled
jp po, noinrestore ; Odd parity, IFF2=0, means disabled
ex af, af' ; Restore AF (before enabling interrupts)
ei ; yes.. Enable interrupts
ret ; and return
......
......@@ -122,7 +122,7 @@ _ez80_saveusercontext:
; Save the current interrupt state at offset 0
ld a, i ; Get interrupt state
ld a, i ; Get interrupt state in parity bit
push af
pop hl
ld (iy + XCPT_I), hl ; Index 0: I w/interrupt state in parity/overflow
......
......@@ -76,7 +76,7 @@
int up_timerisr(int irq, chipreg_t *regs)
{
ubyte reg;
volatile ubyte reg;
/* Read the appropropriate timer0 registr to clear the interrupt */
......@@ -116,7 +116,7 @@ void up_timerinit(void)
ubyte reg;
/* Disable the timer */
outp(EZ80_TMR0_CTL, 0x00);
/* Attach system timer interrupts */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment