After attaching CPUs, call alpha_patch() in case there are any function
patches we wish to do based on discovered architecture features.
This commit is contained in:
parent
e126333bd4
commit
ceb097d8a2
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mainbus.c,v 1.35 2021/04/24 23:36:23 thorpej Exp $ */
|
||||
/* $NetBSD: mainbus.c,v 1.36 2021/07/07 03:24:26 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.35 2021/04/24 23:36:23 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.36 2021/07/07 03:24:26 thorpej Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -92,6 +92,9 @@ mbattach(device_t parent, device_t self, void *aux)
|
|||
printf("WARNING: %d cpus in machine, %d attached\n",
|
||||
ncpus, cpuattachcnt);
|
||||
|
||||
/* Patch-up any routines based on architecture features. */
|
||||
alpha_patch(false);
|
||||
|
||||
if (alpha_is_qemu) {
|
||||
ma.ma_name = "qemu";
|
||||
ma.ma_slot = 0; /* meaningless */
|
||||
|
|
Loading…
Reference in New Issue