On Mon, 2015-12-21 at 18:07 +0000, Ian Lepore wrote: > Author: ian > Date: Mon Dec 21 18:07:32 2015 > New Revision: 292555 > URL: https://svnweb.freebsd.org/changeset/base/292555 > > Log: > Implement OF_decode_addr() for arm. Move most of powerpc's implementation > into a new function that other platforms can share. > > This creates a new ofw_reg_to_paddr() function (in a new ofw_subr.c file) > that contains most of the existing ppc implementation, mostly unchanged. > The ppc code now calls the new MI code from the MD code, then creates a > ppc-specific bus_space mapping from the results. The new arm implementation > does the same in an arm-specific way. > > This also moves the declaration of OF_decode_addr() from ofw_machdep.h to > openfirm.h, except on sparc64 which uses a different function signature. > > This will help all FDT platforms to set up early console access using > OF_decode_addr(). > > Added: > head/sys/arm/arm/ofw_machdep.c (contents, props changed) > head/sys/dev/ofw/ofw_subr.c (contents, props changed) > head/sys/dev/ofw/ofw_subr.h (contents, props changed) > Modified: > head/sys/arm/include/ofw_machdep.h > head/sys/conf/files > head/sys/conf/files.arm > head/sys/conf/files.powerpc > head/sys/dev/ofw/openfirm.h > head/sys/powerpc/include/ofw_machdep.h > head/sys/powerpc/ofw/ofw_machdep.c
Forgot to add Differential Revision: https://reviews.freebsd.org/D4664 -- Ian _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"