// Mask NMI and change from edge to level whilst sleeping (copied directly from OS9 code)
nmiIntSourceAddr = (volatile unsigned long *)kExtInt9_NMIIntSource;
- nmiIntSource = *nmiIntSourceAddr;
+ nmiIntSource = ml_phys_read(nmiIntSourceAddr);
nmiIntSource |= kNMIIntLevelMask;
- *nmiIntSourceAddr = nmiIntSource;
+ ml_phys_write(nmiIntSourceAddr, nmiIntSource);
eieio();
nmiIntSource |= kNMIIntMask;
- *nmiIntSourceAddr = nmiIntSource;
+ ml_phys_write(nmiIntSourceAddr, nmiIntSource);
eieio();
}
else
// Unmask NMI and change back to edge (copied directly from OS9 code)
nmiIntSourceAddr = (volatile unsigned long *)kExtInt9_NMIIntSource;
- nmiIntSource = *nmiIntSourceAddr;
+ nmiIntSource = ml_phys_read(nmiIntSourceAddr);
nmiIntSource &= ~kNMIIntLevelMask;
- *nmiIntSourceAddr = nmiIntSource;
+ ml_phys_write(nmiIntSourceAddr, nmiIntSource);
eieio();
nmiIntSource &= ~kNMIIntMask;
- *nmiIntSourceAddr = nmiIntSource;
+ ml_phys_write(nmiIntSourceAddr, nmiIntSource);
eieio();
}
}