Module Name: src
Committed By: andvar
Date: Wed Sep 13 17:08:15 UTC 2023
Modified Files:
src/sys/arch/hpcsh/dev/hd64461: hd64461uart.c
Log Message:
change hd64461uart_init_regs third argument from NULL to 0x0,
since compiler complains about making integer from pointer without cast.
fully fixes KGDB enabled build for hpcsh.
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/hpcsh/dev/hd64461/hd64461uart.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/hpcsh/dev/hd64461/hd64461uart.c
diff -u src/sys/arch/hpcsh/dev/hd64461/hd64461uart.c:1.30 src/sys/arch/hpcsh/dev/hd64461/hd64461uart.c:1.31
--- src/sys/arch/hpcsh/dev/hd64461/hd64461uart.c:1.30 Tue Dec 11 06:34:00 2018
+++ src/sys/arch/hpcsh/dev/hd64461/hd64461uart.c Wed Sep 13 17:08:14 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: hd64461uart.c,v 1.30 2018/12/11 06:34:00 thorpej Exp $ */
+/* $NetBSD: hd64461uart.c,v 1.31 2023/09/13 17:08:14 andvar Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hd64461uart.c,v 1.30 2018/12/11 06:34:00 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hd64461uart.c,v 1.31 2023/09/13 17:08:14 andvar Exp $");
#include "opt_kgdb.h"
@@ -141,7 +141,7 @@ hd64461uart_kgdb_init(void)
hd64461uart_init();
- hd64461uart_init_regs(®s, hd64461uart_chip.io_tag, NULL, 0x0);
+ hd64461uart_init_regs(®s, hd64461uart_chip.io_tag, 0x0, 0x0);
if (com_kgdb_attach1(®s,
kgdb_rate, COM_FREQ, COM_TYPE_NORMAL, CONMODE) != 0) {
printf("%s: KGDB console open failed.\n", __func__);