]> git.baikalelectronics.ru Git - kernel.git/commit
[IA64] Rationalize kernel mode alignment checking
authorTony Luck <tony.luck@intel.com>
Thu, 20 Nov 2008 21:27:12 +0000 (13:27 -0800)
committerTony Luck <tony.luck@intel.com>
Thu, 20 Nov 2008 21:27:12 +0000 (13:27 -0800)
commit50464ba9328080fa7bdee131c10e7a1b2379a823
treef5cc0f6d62b6b6a98e89ef50a3c77c89b847e393
parentef7347bc305dc2229d1748a66bba4f0427103ba9
[IA64] Rationalize kernel mode alignment checking

Itanium processors can handle some misaligned data accesses. They
also provide a mode where all such accesses are forced to trap. The
kernel was schizophrenic about use of this mode:

* Base kernel code ran in permissive mode where the only traps
  generated were from those cases that the h/w could not handle.
* Interrupt, syscall and trap code ran in strict mode where all
  unaligned accesses caused traps to the 0x5a00 unaligned reference
  vector.

Use strict alignment checking throughout the kernel, but make
sure that we continue to let user mode use more relaxed mode
as the default.

Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/entry.S
arch/ia64/kernel/head.S