Date: Thu, 18 Jan 2018 11:21:03 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328120 - in head/sys/amd64: amd64 include Message-ID: <201801181121.w0IBL3M4047038@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Thu Jan 18 11:21:03 2018 New Revision: 328120 URL: https://svnweb.freebsd.org/changeset/base/328120 Log: Fix compilation with gcc. etext is already declared in machine/cpu.h, move kernphys declaration there too. Based on the patch by: bde MFC after: 13 days Modified: head/sys/amd64/amd64/pmap.c head/sys/amd64/include/cpu.h Modified: head/sys/amd64/amd64/pmap.c ============================================================================== --- head/sys/amd64/amd64/pmap.c Thu Jan 18 11:19:58 2018 (r328119) +++ head/sys/amd64/amd64/pmap.c Thu Jan 18 11:21:03 2018 (r328120) @@ -7562,8 +7562,6 @@ pmap_pti_free_page(vm_page_t m) return (true); } -extern char kernphys[], etext[]; - static void pmap_pti_init(void) { Modified: head/sys/amd64/include/cpu.h ============================================================================== --- head/sys/amd64/include/cpu.h Thu Jan 18 11:19:58 2018 (r328119) +++ head/sys/amd64/include/cpu.h Thu Jan 18 11:21:03 2018 (r328120) @@ -70,6 +70,7 @@ struct cpu_ops { extern struct cpu_ops cpu_ops; extern char btext[]; extern char etext[]; +extern char kernphys[]; /* Resume hook for VMM. */ extern void (*vmm_resume_p)(void);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801181121.w0IBL3M4047038>