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
This commit is contained in:
parent
71fe52975d
commit
09f42c9736
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user