svn commit: r273830 - stable/10/sys/arm/arm

Andrew Turner andrew at fubar.geek.nz
Wed Oct 29 16:53:35 UTC 2014


On Wed, 29 Oct 2014 16:41:21 +0000 (UTC)
Andrew Turner <andrew at FreeBSD.org> wrote:
> Author: andrew
> Date: Wed Oct 29 16:41:20 2014
> New Revision: 273830
> URL: https://svnweb.freebsd.org/changeset/base/273830
> 
> Log:
>   MFC r273288:
>   
>    Allow the armv6 kernel to be build with PHYSADDR undefined. The
> kernel will now find the virtual to physical mapping for libkvm to
> use at runtime. This makes PHYSADDR redundant, however keep it around
> to give everyone a chance to update their libkvm.

...

> @@ -54,15 +66,21 @@ __FBSDID("$FreeBSD$");
>  	CPWAIT_BRANCH			/* branch to next insn
> */ 
>  /*
> - * This is for kvm_mkdb, and should be the address of the beginning
> + * This is for libkvm, and should be the address of the beginning
>   * of the kernel text segment (not necessarily the same as kernbase).
> + *
> + * These are being phased out. Newer copies of libkvm don't need
> these
> + * values as the information is added to the core file by inspecting
> + * the running kernel.
>   */
>  	.text
>  	.align	0
> +#ifdef PHYSADDR
>  .globl kernbase
>  .set kernbase,KERNBASE
>  .globl physaddr
>  .set physaddr,PHYSADDR
> +#endif

While this is now an option PHYSADDR should be enabled on all kernel
configs in this branch. It could be considered a POLA violation to have
an old libkvm not work with a new kernel dump. This change just allows
users to change their kernel config to not define PHYSADDR.

Abndrew


More information about the svn-src-all mailing list