patch-2.3.4 linux/include/asm-ppc/processor.h
Next file: linux/include/asm-ppc/ptrace.h
Previous file: linux/include/asm-ppc/pgtable.h
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Tue May 25 14:55:05 1999
- Orig file:
v2.3.3/linux/include/asm-ppc/processor.h
- Orig date:
Tue May 11 08:24:32 1999
diff -u --recursive --new-file v2.3.3/linux/include/asm-ppc/processor.h linux/include/asm-ppc/processor.h
@@ -1,12 +1,22 @@
#ifndef __ASM_PPC_PROCESSOR_H
#define __ASM_PPC_PROCESSOR_H
+/*
+ * Default implementation of macro that returns current
+ * instruction pointer ("program counter").
+ */
+#define current_text_addr() ({ __label__ _l; _l: &&_l;})
+
#include <linux/config.h>
#include <asm/ptrace.h>
#include <asm/residual.h>
/* Bit encodings for Machine State Register (MSR) */
+#ifdef CONFIG_PPC64
+#define MSR_SF (1<<63)
+#define MSR_ISF (1<<61)
+#endif /* CONFIG_PPC64 */
#define MSR_POW (1<<18) /* Enable Power Management */
#define MSR_TGPR (1<<17) /* TLB Update registers in use */
#define MSR_ILE (1<<16) /* Interrupt Little-Endian enable */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)