patch-2.4.4 linux/arch/ia64/kernel/brl_emu.c
Next file: linux/arch/ia64/kernel/efi.c
Previous file: linux/arch/ia64/kernel/acpi.c
Back to the patch index
Back to the overall index
- Lines: 93
- Date:
Thu Apr 5 12:51:47 2001
- Orig file:
v2.4.3/linux/arch/ia64/kernel/brl_emu.c
- Orig date:
Thu Jun 22 07:09:44 2000
diff -u --recursive --new-file v2.4.3/linux/arch/ia64/kernel/brl_emu.c linux/arch/ia64/kernel/brl_emu.c
@@ -1,6 +1,6 @@
/*
* Emulation of the "brl" instruction for IA64 processors that
- * don't support it in hardware.
+ * don't support it in hardware.
* Author: Stephan Zeisset, Intel Corp. <Stephan.Zeisset@intel.com>
*/
@@ -23,9 +23,9 @@
* of an and operation with the mask must be all 0's
* or all 1's for the address to be valid.
*/
-#define unimplemented_virtual_address(va) ( \
- ((va) & my_cpu_data.unimpl_va_mask) != 0 && \
- ((va) & my_cpu_data.unimpl_va_mask) != my_cpu_data.unimpl_va_mask \
+#define unimplemented_virtual_address(va) ( \
+ ((va) & local_cpu_data->unimpl_va_mask) != 0 && \
+ ((va) & local_cpu_data->unimpl_va_mask) != local_cpu_data->unimpl_va_mask \
)
/*
@@ -35,13 +35,13 @@
* address to be valid.
*/
#define unimplemented_physical_address(pa) ( \
- ((pa) & my_cpu_data.unimpl_pa_mask) != 0 \
+ ((pa) & local_cpu_data->unimpl_pa_mask) != 0 \
)
/*
- * Handle an illegal operation fault that was caused by an
+ * Handle an illegal operation fault that was caused by an
* unimplemented "brl" instruction.
- * If we are not successful (e.g because the illegal operation
+ * If we are not successful (e.g because the illegal operation
* wasn't caused by a "brl" after all), we return -1.
* If we are successful, we return either 0 or the address
* of a "fixup" function for manipulating preserved register
@@ -64,8 +64,8 @@
* Decode the instruction bundle.
*/
- if (copy_from_user(bundle, (void *) (regs->cr_iip), sizeof(bundle)))
- return rv;
+ if (copy_from_user(bundle, (void *) (regs->cr_iip), sizeof(bundle)))
+ return rv;
next_ip = (unsigned long) regs->cr_iip + 16;
@@ -79,14 +79,14 @@
btype = ((bundle[1] >> 29) & 0x7);
qp = ((bundle[1] >> 23) & 0x3f);
offset = ((bundle[1] & 0x0800000000000000L) << 4)
- | ((bundle[1] & 0x00fffff000000000L) >> 32)
+ | ((bundle[1] & 0x00fffff000000000L) >> 32)
| ((bundle[1] & 0x00000000007fffffL) << 40)
| ((bundle[0] & 0xffff000000000000L) >> 24);
tmp_taken = regs->pr & (1L << qp);
switch(opcode) {
-
+
case 0xC:
/*
* Long Branch.
@@ -169,7 +169,7 @@
*/
regs->cr_ifs = ((regs->cr_ifs & 0xffffffc00000007f)
- ((regs->cr_ifs >> 7) & 0x7f));
-
+
break;
default:
@@ -180,7 +180,7 @@
}
- regs->cr_iip += offset;
+ regs->cr_iip += offset;
ia64_psr(regs)->ri = 0;
if (ia64_psr(regs)->it == 0)
@@ -188,7 +188,7 @@
else
unimplemented_address = unimplemented_virtual_address(regs->cr_iip);
- if (unimplemented_address) {
+ if (unimplemented_address) {
/*
* The target address contains unimplemented bits.
*/
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)