From b5f76666d8323fcca3f58de34e2e065c6ea9478c Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 13 Apr 2016 17:37:31 +0000 Subject: [PATCH] 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 Reviewed by: kib --- sys/amd64/amd64/exception.S | 1 + sys/i386/i386/exception.s | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/amd64/amd64/exception.S b/sys/amd64/amd64/exception.S index caabfd9f0cd4..fd8cdac989f2 100644 --- a/sys/amd64/amd64/exception.S +++ b/sys/amd64/amd64/exception.S @@ -659,6 +659,7 @@ MCOUNT_LABEL(eintr) .text SUPERALIGN_TEXT .type doreti,@function + .globl doreti doreti: FAKE_MCOUNT($bintr) /* init "from" bintr -> doreti */ /* diff --git a/sys/i386/i386/exception.s b/sys/i386/i386/exception.s index f91f51612269..c03cbce20eb5 100644 --- a/sys/i386/i386/exception.s +++ b/sys/i386/i386/exception.s @@ -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: