summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2017-03-06 00:29:37 +0100
committerJustus Winter <justus@gnupg.org>2017-03-09 23:55:41 +0100
commitb66e7d0f2c4e0754e51ffce14386e1884c29d08e (patch)
tree77ab19eac943b34587a1199cfbe4b4aea0f84f10 /boot
parent40c752c4e5e3c8c20cee345790954511e9f3825b (diff)
boot: Move declaration.
* boot/boot.c (new_task_notification): Move declaration to the top, add comment.
Diffstat (limited to 'boot')
-rw-r--r--boot/boot.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/boot/boot.c b/boot/boot.c
index 9c2a02181..950aedb91 100644
--- a/boot/boot.c
+++ b/boot/boot.c
@@ -128,6 +128,10 @@ mach_port_t task_notification_port;
mach_port_t dead_task_notification_port;
auth_t authserver;
+/* The proc server registers for new task notifications which we will
+ send to this port. */
+mach_port_t new_task_notification;
+
struct store *root_store;
pthread_spinlock_t queuelock = PTHREAD_SPINLOCK_INITIALIZER;
@@ -1920,8 +1924,6 @@ S_host_processor_set_priv (mach_port_t host_priv,
return KERN_SUCCESS;
}
-mach_port_t new_task_notification;
-
kern_return_t
S_register_new_task_notification (mach_port_t host_priv,
mach_port_t notification)