Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hppa/hppa -Wno-error=array-bounds (missed from prev...
details: https://anonhg.NetBSD.org/src/rev/48e583c76cd0
branches: trunk
changeset: 976208:48e583c76cd0
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Sep 14 16:11:32 2020 +0000
description:
-Wno-error=array-bounds (missed from previous commit)
diffstat:
sys/arch/hppa/hppa/machdep.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (41 lines):
diff -r 5a1a4a1aea2e -r 48e583c76cd0 sys/arch/hppa/hppa/machdep.c
--- a/sys/arch/hppa/hppa/machdep.c Mon Sep 14 16:11:00 2020 +0000
+++ b/sys/arch/hppa/hppa/machdep.c Mon Sep 14 16:11:32 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.15 2020/09/08 06:13:53 skrll Exp $ */
+/* $NetBSD: machdep.c,v 1.16 2020/09/14 16:11:32 skrll Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.15 2020/09/08 06:13:53 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.16 2020/09/14 16:11:32 skrll Exp $");
#include "opt_cputype.h"
#include "opt_ddb.h"
@@ -489,19 +489,19 @@
DPRINTF(("SPID bits: 0x%x, error = %d\n", pdc_spidbits.spidbits, error));
/* Calculate the OS_HPMC handler checksums. */
- p = &os_hpmc;
+ p = os_hpmc;
if (pdcproc_instr(p))
*p = 0x08000240;
p[7] = ((char *) &os_hpmc_cont_end) - ((char *) &os_hpmc_cont);
p[6] = (u_int) &os_hpmc_cont;
p[5] = -(p[0] + p[1] + p[2] + p[3] + p[4] + p[6] + p[7]);
p = &os_hpmc_cont;
- q = (&os_hpmc_cont_end - 1);
+ q = os_hpmc_checksum;
for (*q = 0; p < q; *q -= *(p++));
/* Calculate the OS_TOC handler checksum. */
p = (u_int *) &os_toc;
- q = (&os_toc_end - 1);
+ q = os_toc_checksum;
for (*q = 0; p < q; *q -= *(p++));
/* Install the OS_TOC handler. */
Home |
Main Index |
Thread Index |
Old Index