From c4928554295f404fdb263e36e2770aa4a369cf12 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 22 Sep 1995 19:44:42 +0000 Subject: (sigmask): New macro. (__mig_dealloc_reply_port): Remove __ from call to mach_port_mod_refs. (main): Check for `d' in BOOTSTRAP_ARGS, not BOOT_ARGS. Don't declar MSG static. --- boot/boot.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'boot') diff --git a/boot/boot.c b/boot/boot.c index 02715ca4..8a0b02dc 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -80,6 +80,9 @@ char *bootdevice = "sd0a"; extern void __mach_init (); void (*mach_init_routine)() = __mach_init; +#define sigmask(m) (1 << ((m)-1)) + + /* We can't include for this, because that will fight witho our definitions of syscalls below. */ int syscall (int, ...); @@ -133,8 +136,8 @@ void mig_put_reply_port (mach_port_t port) } void __mig_dealloc_reply_port (mach_port_t port) { - __mach_port_mod_refs (__mach_task_self (), port, - MACH_PORT_RIGHT_RECEIVE, -1); + mach_port_mod_refs (__mach_task_self (), port, + MACH_PORT_RIGHT_RECEIVE, -1); } void mig_dealloc_reply_port (mach_port_t port) { @@ -653,9 +656,9 @@ main (int argc, char **argv, char **envp) } } - if (index (boot_args, 'd')) + if (index (bootstrap_args, 'd')) { - const char msg[] = "Pausing. . ."; + char msg[] = "Pausing. . ."; char c; write (2, msg, sizeof (msg) - 1); read (0, &c, 1); -- cgit v1.2.3