/*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
*/
#include <pexpert/pexpert.h>
+#include <pexpert/protos.h>
#include <kern/debug.h>
static int DEBUGFlag;
void pe_init_debug(void)
{
- if (!PE_parse_boot_arg("debug", &DEBUGFlag))
+ if (!PE_parse_boot_argn("debug", &DEBUGFlag, sizeof (DEBUGFlag)))
DEBUGFlag = 0;
}
-void PE_enter_debugger(char *cause)
+void PE_enter_debugger(const char *cause)
{
if (DEBUGFlag & DB_NMI)
Debugger(cause);
}
/* extern references */
-extern void cnputc(char c);
extern void vcattach(void);
/* Globals */
-void (*PE_putc)(char c) = 0;
+void (*PE_putc)(char c);
void PE_init_printf(boolean_t vm_initialized)
{