Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Aug 2006 19:47:29 +0600
From:      Stanislav Sedov <ssedov@mbsd.msk.ru>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: exception handling in kernel code
Message-ID:  <20060814194729.436fc453@localhost>
In-Reply-To: <200608140932.57875.jhb@freebsd.org>
References:  <20060814124658.1d416cbe@localhost> <200608140932.57875.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_b.L.Jt9PH9ACZ_7KA7TBXjx
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

On Mon, 14 Aug 2006 09:32:57 -0400
John Baldwin <jhb@freebsd.org> mentioned:
>=20
> You can make use of pcb_onfault to recover from a page fault, but that's
> about it.  Kernel code is expected to not generate exceptions. :)
>=20

Thanks a lot! I'll try it.

To clarify:

I've implemented driver to allow user-level code to read MSRs (Model
specific registers) (like linux's /dev/cpu/msr). It's required for
some programs like x86info.

As long as not all MSRs documented and reading/writing unexistent MSR
leads to GP fault, I need to recover in that case.

--=20
Stanislav Sedov         MBSD labs, Inc.         <ssedov@mbsd.msk.ru>
=F2=CF=D3=D3=C9=D1, =ED=CF=D3=CB=D7=C1         http://mbsd.msk.ru

--------------------------------------------------------------------
If the facts don't fit the theory, change the facts.  -- A. Einstein
--------------------------------------------------------------------
PGP fingerprint:  F21E D6CC 5626 9609 6CE2  A385 2BF5 5993 EB26 9581

--Sig_b.L.Jt9PH9ACZ_7KA7TBXjx
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQFE4H7yK/VZk+smlYERAuGmAJ9uqkIjcl1Ez/wxO7KjY6KZyxzN4gCeNgbI
B/Ef4ghJlt4dcm014Z76gXE=
=ztsz
-----END PGP SIGNATURE-----

--Sig_b.L.Jt9PH9ACZ_7KA7TBXjx--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060814194729.436fc453>