svn commit: r328120 - in head/sys/amd64: amd64 include

Konstantin Belousov kib at FreeBSD.org
Thu Jan 18 11:21:05 UTC 2018


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);


More information about the svn-src-all mailing list