Subject: Re: Enabling alignment faults
To: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: port-arm
Date: 10/23/2003 18:50:36
"Valeriy E. Ushakov" <uwe@ptc.spbu.ru> writes:
> Can we have something like that for i386? *grin*
> PS: Seriously?
It could be done for user programs, though not for kernel mode; it's a
SMOP to implement it (set the AM flag in CR0 and the AC bit in the
EFLAGS register of each process for which you want to enable alignment
checking). See sections 2.3, 2.5, 4.10.5, and the description of trap
type 17 in volume 3 of the IA32 manuals.
- Nathan