about summary refs log tree commit diff
path: root/hurd
diff options
context:
space:
mode:
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurdsig.c2
-rw-r--r--hurd/intr-msg.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c
index 7dd2b8c2fc..10dbceb4f4 100644
--- a/hurd/hurdsig.c
+++ b/hurd/hurdsig.c
@@ -267,7 +267,7 @@ interrupted_reply_port_location (struct machine_thread_all_state *thread_state,
    *STATE_CHANGE is set nonzero if STATE->basic was modified and should
    be applied back to the thread if it might ever run again, else zero.  */
 
-static mach_port_t
+mach_port_t
 _hurdsig_abort_rpcs (struct hurd_sigstate *ss, int signo, int sigthread, 
 		     struct machine_thread_all_state *state, int *state_change,
 		     mach_port_t *reply_port,
diff --git a/hurd/intr-msg.c b/hurd/intr-msg.c
index cdcd8d51ea..6f670b538f 100644
--- a/hurd/intr-msg.c
+++ b/hurd/intr-msg.c
@@ -66,7 +66,7 @@ _hurd_intr_rpc_mach_msg (mach_msg_header_t *msg,
 	 "				movl $-25, %%eax\n"
 	 "_hurd_intr_rpc_msg_do_trap:	lcall $7, $0 # status in %0\n"
 	 "_hurd_intr_rpc_msg_in_trap:	movl %%ecx, %%esp"
-	 : "=a" (err) : "m" ((&msg)[1]) : "%ecx");
+	 : "=a" (err) : "m" ((&msg)[-1]) : "%ecx");
 
   switch (err)
     {