From 76a377394e72fe1538bec57c0ae2a70d4ed95395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 17 Oct 2005 10:15:42 +0000 Subject: [PATCH] arch_debug_console_init() is called with args == NULL in case of an early boot message - unfortunately, it crashed when used this way until now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14399 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_debug_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/arch/x86/arch_debug_console.c b/src/system/kernel/arch/x86/arch_debug_console.c index 7328144d70..40e1b681c5 100644 --- a/src/system/kernel/arch/x86/arch_debug_console.c +++ b/src/system/kernel/arch/x86/arch_debug_console.c @@ -227,7 +227,7 @@ arch_debug_console_init(kernel_args *args) uint16 divisor = (uint16)(115200 / kSerialBaudRate); // only use the port if we could find one, else use the standard port - if (args->platform_args.serial_base_ports[0] != 0) + if (args != NULL && args->platform_args.serial_base_ports[0] != 0) sSerialBasePort = args->platform_args.serial_base_ports[0]; out8(0x80, sSerialBasePort + SERIAL_LINE_CONTROL); /* set divisor latch access bit */