1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/share/mk
Justin Hibbits dc9b124d66 Create a new MACHINE_ARCH for Freescale PowerPC e500v2
Summary:
The Freescale e500v2 PowerPC core does not use a standard FPU.
Instead, it uses a Signal Processing Engine (SPE)--a DSP-style vector processor
unit, which doubles as a FPU.  The PowerPC SPE ABI is incompatible with the
stock powerpc ABI, so a new MACHINE_ARCH was created to deal with this.
Additionaly, the SPE opcodes overlap with Altivec, so these are mutually
exclusive.  Taking advantage of this fact, a new file, powerpc/booke/spe.c, was
created with the same function set as in powerpc/powerpc/altivec.c, so it
becomes effectively a drop-in replacement.  setjmp/longjmp were modified to save
the upper 32-bits of the now-64-bit GPRs (upper 32-bits are only accessible by
the SPE).

Note: This does _not_ support the SPE in the e500v1, as the e500v1 SPE does not
support double-precision floating point.

Also, without a new MACHINE_ARCH it would be impossible to provide binary
packages which utilize the SPE.

Additionally, no work has been done to support ports, work is needed for this.
This also means no newer gcc can yet be used.  However, gcc's powerpc support
has been refactored which would make adding a powerpcspe-freebsd target very
easy.

Test Plan:
This was lightly tested on a RouterBoard RB800 and an AmigaOne A1222
(P1022-based) board, compiled against the new ABI.  Base system utilities
(/bin/sh, /bin/ls, etc) still function appropriately, the system is able to boot
multiuser.

Reviewed By:	bdrewery, imp
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D5683
2016-10-22 01:57:15 +00:00
..
atf.test.mk
auto.obj.mk
bsd.arch.inc.mk
bsd.clang-analyze.mk Remove the old depend (mkdep) code and make FAST_DEPEND the one true way. 2016-03-30 23:50:23 +00:00
bsd.compiler.mk WITH_CCACHE_BUILD + WITH_META_MODE: Ignore ccache changes. 2016-06-03 19:25:45 +00:00
bsd.confs.mk
bsd.cpu.mk Create a new MACHINE_ARCH for Freescale PowerPC e500v2 2016-10-22 01:57:15 +00:00
bsd.crunchgen.mk DIRDEPS_BUILD: Include crunched object meta files for gendirdeps. 2016-09-01 23:52:20 +00:00
bsd.dep.mk When MAKEOBJDIRPREFIX points to a case-insensitive file system, the 2016-09-24 15:11:27 +00:00
bsd.doc.mk
bsd.dtb.mk
bsd.endian.mk Create a new MACHINE_ARCH for Freescale PowerPC e500v2 2016-10-22 01:57:15 +00:00
bsd.files.mk Allow FILESGROUPS to be specified more than once by pruning out duplicates 2016-04-30 21:32:29 +00:00
bsd.incs.mk
bsd.info.mk Revert r301079. 2016-06-03 19:25:36 +00:00
bsd.init.mk Add a 'make print-dir' that simply traverses all directories and prints them. 2016-08-31 19:30:52 +00:00
bsd.kmod.mk WITH_META_MODE: Resolve SYSDIR to avoid changed build commands. 2016-05-31 23:08:43 +00:00
bsd.lib.mk Add LORDER, TSORT and TSORTFLAGS variables and replace the 2016-10-18 01:42:42 +00:00
bsd.libnames.mk Create libefivar library. This library aims to provide 2016-10-11 22:30:41 +00:00
bsd.links.mk
bsd.man.mk Revert r301079. 2016-06-03 19:25:36 +00:00
bsd.mkopt.mk
bsd.nls.mk Revert r301079. 2016-06-03 19:25:36 +00:00
bsd.obj.mk AUTO_OBJ: Support SRCS/DPSRCS that contain '/' and require a nested OBJDIR. 2016-08-30 22:48:05 +00:00
bsd.opts.mk Remove the old depend (mkdep) code and make FAST_DEPEND the one true way. 2016-03-30 23:50:23 +00:00
bsd.own.mk Update default KMODDIR in comment after r299393. 2016-05-26 18:28:10 +00:00
bsd.port.mk
bsd.port.options.mk
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk
bsd.prog.mk bsd.prog.mk: add "/usr/lib" to list of base system directories 2016-06-24 18:45:16 +00:00
bsd.progs.mk PROGS: Support INTERNALPROG.prog=yes to not install it. 2016-08-11 17:06:48 +00:00
bsd.README Document the ".pico" extension for object files. 2016-09-25 16:50:31 +00:00
bsd.snmpmod.mk WITH_META_MODE: Don't expect meta files for side-effect generated files. 2016-06-03 19:25:41 +00:00
bsd.stand.mk
bsd.subdir.mk Allow all subdirectories to be optional via SUBDIR.${MK_*} 2016-10-21 17:25:19 +00:00
bsd.suffixes-posix.mk Extract suffix rules into bsd.suffixes[-posix].mk. 2016-10-12 00:42:46 +00:00
bsd.suffixes.mk Add make rules to build LLVM IR from C/C++ sources. 2016-10-20 15:14:21 +00:00
bsd.symver.mk
bsd.sys.mk Remove warning on struct-overflow on gcc 5.3.0 as zic(8) dies on it 2016-08-27 01:28:00 +00:00
bsd.test.mk Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
dirdeps.mk Update to latest dirdeps.mk 2016-09-09 01:21:35 +00:00
gendirdeps.mk Update dirdeps.mk et al 2016-04-18 20:56:21 +00:00
host-target.mk
install-new.mk
local.autodep.mk
local.dirdeps.mk DIRDEPS_BUILD: Exclude secure/lib* libraries for host builds. 2016-05-04 03:13:48 +00:00
local.gendirdeps.mk DIRDEPS_BUILD: Exclude host tools for Makefile.depend.host as well. 2016-05-11 17:40:51 +00:00
local.init.mk
local.meta.sys.mk Create a new MACHINE_ARCH for Freescale PowerPC e500v2 2016-10-22 01:57:15 +00:00
local.sys.env.mk
local.sys.mk WITH_META_MODE: Enable printing of some of make's environment on error. 2016-06-14 16:20:25 +00:00
Makefile Extract suffix rules into bsd.suffixes[-posix].mk. 2016-10-12 00:42:46 +00:00
meta2deps.py Update meta2deps to fix crash when using -X with M2D_EXCLUDES. 2016-04-18 21:05:19 +00:00
meta2deps.sh
meta.autodep.mk When MAKEOBJDIRPREFIX points to a case-insensitive file system, the 2016-09-24 15:11:27 +00:00
meta.stage.mk Import latest meta.stage.mk 1.45 (r301462) 2016-06-05 21:21:41 +00:00
meta.subdir.mk
meta.sys.mk Avoid clobbering existing value of META_COOKIE_TOUCH 2016-09-13 22:17:25 +00:00
netbsd-tests.test.mk
plain.test.mk
src.init.mk
src.libnames.mk Create libefivar library. This library aims to provide 2016-10-11 22:30:41 +00:00
src.opts.mk Add knobs to make GNU diff and GNU grep optional 2016-10-20 14:48:57 +00:00
src.sys.env.mk WITH_META_MODE: Don't let subdir traversals for 'make install' re-enable meta mode. 2016-08-25 23:55:56 +00:00
src.sys.mk Fix error when SRCCONF is empty. 2016-04-22 20:31:29 +00:00
stage-install.sh
suite.test.mk Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
sys.dependfile.mk
sys.mk Create a new MACHINE_ARCH for Freescale PowerPC e500v2 2016-10-22 01:57:15 +00:00
tap.test.mk
version_gen.awk