X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/8f6c56a50524aa785f7e596d52dddfb331e18961..b7266188b87f3620ec3f9f717e57194a7dd989fe:/pexpert/gen/pe_gen.c diff --git a/pexpert/gen/pe_gen.c b/pexpert/gen/pe_gen.c index 5217ff292..43ab61a96 100644 --- a/pexpert/gen/pe_gen.c +++ b/pexpert/gen/pe_gen.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -30,6 +30,7 @@ */ #include +#include #include static int DEBUGFlag; @@ -38,22 +39,21 @@ int32_t gPESerialBaud = -1; 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) {