Module Name: src
Committed By: riastradh
Date: Fri Feb 11 17:26:56 UTC 2022
Modified Files:
src/sys/arch/vax/vax: pmap.c
Log Message:
vax: Remove a vestige from before the device_t/softc split.
Verified MicroVAX 4000/96 still boots.
cpu0 at mainbus0: KA49, NVAX, 10KB L1 cache, 256KB L2 cache
To generate a diff of this commit:
cvs rdiff -u -r1.193 -r1.194 src/sys/arch/vax/vax/pmap.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/vax/vax/pmap.c
diff -u src/sys/arch/vax/vax/pmap.c:1.193 src/sys/arch/vax/vax/pmap.c:1.194
--- src/sys/arch/vax/vax/pmap.c:1.193 Tue Oct 12 08:36:28 2021
+++ src/sys/arch/vax/vax/pmap.c Fri Feb 11 17:26:55 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.193 2021/10/12 08:36:28 andvar Exp $ */
+/* $NetBSD: pmap.c,v 1.194 2022/02/11 17:26:55 riastradh Exp $ */
/*
* Copyright (c) 1994, 1998, 1999, 2003 Ludd, University of Lule}, Sweden.
* All rights reserved.
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.193 2021/10/12 08:36:28 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.194 2022/02/11 17:26:55 riastradh Exp $");
#include "opt_ddb.h"
#include "opt_cputype.h"
@@ -397,8 +397,7 @@ pmap_bootstrap(void)
ci = (struct cpu_info *) scratch;
lwp0.l_cpu = ci;
ci->ci_istack = istack;
- memset(ci, 0, sizeof(struct cpu_info) + sizeof(struct device));
- ci->ci_dev = (void *)(ci + 1);
+ memset(ci, 0, sizeof(*ci));
#if defined(MULTIPROCESSOR)
ci->ci_curlwp = &lwp0;
ci->ci_flags = CI_MASTERCPU|CI_RUNNING;