X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/3903760236c30e3b5ace7a4eefac3a269d68957c..eee3565979933af707c711411001ba11fe406a3c:/osfmk/console/serial_console.c diff --git a/osfmk/console/serial_console.c b/osfmk/console/serial_console.c index ec139794c..c1cd32b3a 100644 --- a/osfmk/console/serial_console.c +++ b/osfmk/console/serial_console.c @@ -243,8 +243,14 @@ _cnputs(char * c, int size) /* The console device output routines are assumed to be * non-reentrant. */ +#ifdef __x86_64__ + uint32_t lock_timeout_ticks = UINT32_MAX; +#else + uint32_t lock_timeout_ticks = LockTimeOut; +#endif + mp_disable_preemption(); - if (!hw_lock_to(&cnputc_lock, LockTimeOut)) { + if (!hw_lock_to(&cnputc_lock, lock_timeout_ticks)) { /* If we timed out on the lock, and we're in the debugger, * copy lock data for debugging and break the lock. */