Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 May 2021 21:43:51 +0100
From:      Jessica Clarke <jrtc27@freebsd.org>
To:        Michael Zhilin <mizhka@FreeBSD.org>
Cc:        "src-committers@freebsd.org" <src-committers@FreeBSD.org>, "dev-commits-src-all@freebsd.org" <dev-commits-src-all@FreeBSD.org>, "dev-commits-src-main@freebsd.org" <dev-commits-src-main@FreeBSD.org>
Subject:   Re: git: 91abbc4993a5 - main - [mips/broadcom] set sysctl "hw.model" by SoC ChipCommon ID
Message-ID:  <A19781A2-5FDA-43E2-86B7-F1A2AEABCD2D@freebsd.org>
In-Reply-To: <202105282036.14SKa8fi092732@gitrepo.freebsd.org>
References:  <202105282036.14SKa8fi092732@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 28 May 2021, at 21:36, Michael Zhilin <mizhka@FreeBSD.org> wrote:
>=20
> The branch main has been updated by mizhka:
>=20
> URL: =
https://cgit.FreeBSD.org/src/commit/?id=3D91abbc4993a5964badd21bc691ae273a=
1a2d9c20
>=20
> commit 91abbc4993a5964badd21bc691ae273a1a2d9c20
> Author:     Michael Zhilin <mizhka@FreeBSD.org>
> AuthorDate: 2021-05-28 20:32:30 +0000
> Commit:     Michael Zhilin <mizhka@FreeBSD.org>
> CommitDate: 2021-05-28 20:35:37 +0000
>=20
>    [mips/broadcom] set sysctl "hw.model" by SoC ChipCommon ID
>=20
>    Small patch to set "hw.model" by SoC ChipCommon ID. On BCM4718 it =
will be BCM4716, because 4716 is core for 4716,4717 & 4718.
>=20
>    Tested on Netgear WNR3500L (BCM4718) and Asus RT-N53 (BCM5357).
>=20
>    Reviewed by: landonf, yamori813@yahoo.co.jp
>    Sponsored by: Postgres Professional
>    Differential revision: https://reviews.freebsd.org/D12737
> ---
> sys/mips/broadcom/bcm_machdep.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>=20
> diff --git a/sys/mips/broadcom/bcm_machdep.c =
b/sys/mips/broadcom/bcm_machdep.c
> index 20ae22f2e9b0..581fffdd899d 100644
> --- a/sys/mips/broadcom/bcm_machdep.c
> +++ b/sys/mips/broadcom/bcm_machdep.c
> @@ -116,6 +116,9 @@ static int	=
bcm_erom_probe_and_attach(bhnd_erom_class_t **erom_cls,
> extern int	*edata;
> extern int	*end;
>=20
> +/* from sys/mips/mips/machdep.c */
> +extern char	cpu_model[];

This should already be declared by machine/md_var.h.

Jess




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A19781A2-5FDA-43E2-86B7-F1A2AEABCD2D>