patch-1.3.12 linux/arch/alpha/kernel/setup.c
Next file: linux/arch/alpha/kernel/signal.c
Previous file: linux/arch/alpha/kernel/ptrace.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Mon Jul 24 17:38:25 1995
- Orig file:
v1.3.11/linux/arch/alpha/kernel/setup.c
- Orig date:
Tue Jun 27 14:11:30 1995
diff -u --recursive --new-file v1.3.11/linux/arch/alpha/kernel/setup.c linux/arch/alpha/kernel/setup.c
@@ -130,6 +130,9 @@
};
struct percpu_struct *cpu;
unsigned int cpu_index, system_index;
+ extern struct unaligned_stat {
+ unsigned long count, va, pc;
+ } unaligned;
# define N(a) (sizeof(a)/sizeof(a[0]))
cpu = (struct percpu_struct*)((char*)hwrpb + hwrpb->processor_offset);
@@ -151,7 +154,8 @@
"page size [bytes]\t: %ld\n"
"phys. address bits\t: %ld\n"
"max. addr. space #\t: %ld\n"
- "BogoMIPS\t\t: %lu.%02lu\n",
+ "BogoMIPS\t\t: %lu.%02lu\n"
+ "unaligned accesses\t: %ld (pc=%lx,va=%lx)\n",
(cpu_index < N(cpu_name) ? cpu_name[cpu_index] : "Unknown"),
cpu->variation, cpu->revision, (char*)cpu->serial_no,
@@ -164,6 +168,7 @@
hwrpb->pagesize,
hwrpb->pa_bits,
hwrpb->max_asn,
- loops_per_sec / 500000, (loops_per_sec / 5000) % 100);
+ loops_per_sec / 500000, (loops_per_sec / 5000) % 100,
+ unaligned.count, unaligned.pc, unaligned.va);
# undef N
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this