Date: Mon, 14 Aug 2006 12:46:58 +0600 From: Stanislav Sedov <ssedov@mbsd.msk.ru> To: freebsd-hackers@freebsd.org Subject: exception handling in kernel code Message-ID: <20060814124658.1d416cbe@localhost>
next in thread | raw e-mail | index | archive | help
--Sig_qWUgz/_QkiiVYFs+zVAkzMV Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Hi! I'm trying to write kernel code where exceptions are unavoidable. To clarify , I need to recover after GP (general protection) exception on i386 cpu and return an error in that case. Unfortunately, looking in trap.c kernel code I can't find any exception handling mechanism except inserting hooks into trap.c. So, the question is: how can one recover after exception in kernel code? AFAIK, linux build special exception table from various __ex_table sections to allow placing recover code into .fixup section. Does any such mechanism exists in freebsd? Thanks! --=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_qWUgz/_QkiiVYFs+zVAkzMV Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFE4BxiK/VZk+smlYERAqtQAKCBB1d6EBzBonTD4GTWJAJAny+dWwCfQO59 2ORTEWbOE8+8ilrTHjsTgIY= =M2BB -----END PGP SIGNATURE----- --Sig_qWUgz/_QkiiVYFs+zVAkzMV--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060814124658.1d416cbe>