svn commit: r297931 - in head/sys: amd64/amd64 i386/i386

John Baldwin jhb at FreeBSD.org
Wed Apr 13 17:37:32 UTC 2016


Author: jhb
Date: Wed Apr 13 17:37:31 2016
New Revision: 297931
URL: https://svnweb.freebsd.org/changeset/base/297931

Log:
  Expose doreti as a global symbol on amd64 and i386.
  
  doreti provides the common code path for returning from interrupt
  andlers on x86.  Exposing doreti as a global symbol allows kernel
  modules to include low-level interrupt handlers instead of requiring
  all low-level handlers to be statically compiled into the kernel.
  
  Submitted by:	Howard Su <howard0su at gmail.com>
  Reviewed by:	kib

Modified:
  head/sys/amd64/amd64/exception.S
  head/sys/i386/i386/exception.s

Modified: head/sys/amd64/amd64/exception.S
==============================================================================
--- head/sys/amd64/amd64/exception.S	Wed Apr 13 16:47:14 2016	(r297930)
+++ head/sys/amd64/amd64/exception.S	Wed Apr 13 17:37:31 2016	(r297931)
@@ -659,6 +659,7 @@ MCOUNT_LABEL(eintr)
 	.text
 	SUPERALIGN_TEXT
 	.type	doreti, at function
+	.globl	doreti
 doreti:
 	FAKE_MCOUNT($bintr)		/* init "from" bintr -> doreti */
 	/*

Modified: head/sys/i386/i386/exception.s
==============================================================================
--- head/sys/i386/i386/exception.s	Wed Apr 13 16:47:14 2016	(r297930)
+++ head/sys/i386/i386/exception.s	Wed Apr 13 17:37:31 2016	(r297931)
@@ -343,6 +343,7 @@ MCOUNT_LABEL(eintr)
 	.text
 	SUPERALIGN_TEXT
 	.type	doreti, at function
+	.globl	doreti
 doreti:
 	FAKE_MCOUNT($bintr)		/* init "from" bintr -> doreti */
 doreti_next:


More information about the svn-src-head mailing list