patch-2.3.18 linux/arch/ppc/kernel/misc.S
Next file: linux/arch/ppc/kernel/pci.c
Previous file: linux/arch/ppc/kernel/irq.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Wed Sep 8 10:59:07 1999
- Orig file:
v2.3.17/linux/arch/ppc/kernel/misc.S
- Orig date:
Tue Aug 31 17:29:13 1999
diff -u --recursive --new-file v2.3.17/linux/arch/ppc/kernel/misc.S linux/arch/ppc/kernel/misc.S
@@ -45,13 +45,7 @@
mtlr r0
blr
-/*
- * Disable interrupts
- * rc = _disable_interrupts()
- */
-_GLOBAL(_disable_interrupts)
_GLOBAL(__cli)
-_GLOBAL(_hard_cli)
mfmsr r0 /* Get current interrupt state */
rlwinm r3,r0,16+1,32-1,31 /* Extract old value of 'EE' */
li r4,0 /* Need [unsigned] value of MSR_EE */
@@ -61,16 +55,7 @@
mtmsr r0 /* Update machine state */
blr /* Done */
-/*
- * Enable interrupts
- * _enable_interrupts(int state)
- * turns on interrupts if state = 1.
- */
-_GLOBAL(_enable_interrupts)
- cmpi 0,r3,0 /* turning them on? */
- beqlr /* nothing to do if state == 0 */
_GLOBAL(__sti)
-_GLOBAL(_hard_sti)
lis r4,ppc_n_lost_interrupts@ha
lwz r4,ppc_n_lost_interrupts@l(r4)
mfmsr r3 /* Get current state */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)