diff options
| author | Warner Losh | 2021-06-25 06:57:07 +0200 |
|---|---|---|
| committer | Richard Henderson | 2021-06-29 19:04:57 +0200 |
| commit | 4f862f79ca497f68d147520e847f86d69eec950b (patch) | |
| tree | 03992e8a4cc842bf4f820d65553ae34c05235395 /include | |
| parent | tcg: Implement tcg_gen_vec_add{sub}32_tl (diff) | |
| download | qemu-4f862f79ca497f68d147520e847f86d69eec950b.tar.gz qemu-4f862f79ca497f68d147520e847f86d69eec950b.tar.xz qemu-4f862f79ca497f68d147520e847f86d69eec950b.zip | |
tcg: Use correct trap number for page faults on *BSD systems
The trap number for a page fault on BSD systems is T_PAGEFLT
not 0xe -- 0xe is used by Linux and represents the intel hardware
trap vector. The BSD kernels, however, translate this to T_PAGEFLT
in their Xpage, Xtrap0e, Xtrap14, etc fault handlers. This is true
for i386 and x86_64, though the name of the trap hanlder can very
on the flavor of BSD. As far as I can tell, Linux doesn't provide
a define for this value. Invent a new one (PAGE_FAULT_TRAP) and
use it instead to avoid uglier ifdefs.
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Signed-off-by: Juergen Lock <nox@FreeBSD.org>
[ Rework to avoid ifdefs and expand it to i386 ]
Signed-off-by: Warner Losh <imp@bsdimp.com>
Message-Id: <20210625045707.84534-3-imp@bsdimp.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
