On 28 May 2021, at 21:36, Michael Zhilin <miz...@freebsd.org> wrote:
> 
> The branch main has been updated by mizhka:
> 
> URL: 
> https://cgit.FreeBSD.org/src/commit/?id=91abbc4993a5964badd21bc691ae273a1a2d9c20
> 
> commit 91abbc4993a5964badd21bc691ae273a1a2d9c20
> Author:     Michael Zhilin <miz...@freebsd.org>
> AuthorDate: 2021-05-28 20:32:30 +0000
> Commit:     Michael Zhilin <miz...@freebsd.org>
> CommitDate: 2021-05-28 20:35:37 +0000
> 
>    [mips/broadcom] set sysctl "hw.model" by SoC ChipCommon ID
> 
>    Small patch to set "hw.model" by SoC ChipCommon ID. On BCM4718 it will be 
> BCM4716, because 4716 is core for 4716,4717 & 4718.
> 
>    Tested on Netgear WNR3500L (BCM4718) and Asus RT-N53 (BCM5357).
> 
>    Reviewed by: landonf, yamori...@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(+)
> 
> 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;
> 
> +/* from sys/mips/mips/machdep.c */
> +extern char  cpu_model[];

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

Jess

_______________________________________________
dev-commits-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "dev-commits-src-all-unsubscr...@freebsd.org"

Reply via email to