patch-2.4.0-test7 linux/include/asm-arm/proc-armv/assembler.h

Next file: linux/include/asm-arm/proc-armv/elf.h
Previous file: linux/include/asm-arm/proc-armo/system.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test6/linux/include/asm-arm/proc-armv/assembler.h linux/include/asm-arm/proc-armv/assembler.h
@@ -6,10 +6,6 @@
  * This file contains ARM processor specifics for
  * the ARM6 and better processors.
  */
-#ifndef __ASSEMBLY__
-#error "Only include this from assembly code"
-#endif
-
 #define MODE_USR	USR_MODE
 #define MODE_FIQ	FIQ_MODE
 #define MODE_IRQ	IRQ_MODE
@@ -35,9 +31,8 @@
 	instr	regs
 
 /*
- * Save the current IRQ state and disable IRQs
- * Note that this macro assumes FIQs are enabled, and
- * that the processor is in SVC mode.
+ * Save the current IRQ state and disable IRQs.  Note that this macro
+ * assumes FIQs are enabled, and that the processor is in SVC mode.
  */
 	.macro	save_and_disable_irqs, oldcpsr, temp
 	mrs	\oldcpsr, cpsr
@@ -46,8 +41,8 @@
 	.endm
 
 /*
- * Restore interrupt state previously stored in
- * a register
+ * Restore interrupt state previously stored in a register.  We don't
+ * guarantee that this will preserve the flags.
  */
 	.macro	restore_irqs, oldcpsr
 	msr	cpsr_c, \oldcpsr

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)