Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2016 17:37:31 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r297931 - in head/sys: amd64/amd64 i386/i386
Message-ID:  <201604131737.u3DHbVsG029598@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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,@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,@function
+	.globl	doreti
 doreti:
 	FAKE_MCOUNT($bintr)		/* init "from" bintr -> doreti */
 doreti_next:



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