Commit Graph

195 Commits

Author SHA1 Message Date
uebayasi
104daad189 Use LINKSCRIPT. 2014-11-15 12:36:42 +00:00
joerg
4ca7de0cb3 Put GCC/GAS specific options under ACTIVE_CC == "gcc". 2014-08-10 17:44:26 +00:00
joerg
0c7d9d4853 Don't set -mmultiple or -mno-string for PowerPC, the difference is too
small to really matter and it sometimes even increases the size.
2014-08-08 16:56:30 +00:00
apb
71da667fc9 Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.
2014-08-05 15:40:58 +00:00
matt
5a400bbb3d ldscript for ppc64 kernels 2014-04-19 12:46:04 +00:00
matt
342cd14faf When building a DEBUG kernel, mdsetimage into the .gdb as well (so if it's
used with gxemul, it has the md image in it.)
2014-03-06 09:24:07 +00:00
matt
6040f5ca22 compat16 -> compat_16 2014-03-04 08:25:11 +00:00
matt
813e9ffd01 sigcode is dependant on compat_16 2014-02-28 05:49:21 +00:00
matt
17d1ea5241 Don't hardcode MACHINE_ARCH 2014-02-28 05:48:22 +00:00
mrg
2141bdc7f5 make this look more like the latest elf32ppc.x. tested on pegasosII. 2014-01-19 02:32:21 +00:00
kiyohara
964b567a32 Support Synopsys DesigneWave OTG on PowerPC 405EX. 2013-11-21 13:33:15 +00:00
alnsn
5345f80ec7 Enable sljit and bpfjit on powerpc. 2013-11-17 14:34:11 +00:00
mrg
c3e6c00ce6 make sure that .text.startup and .text.unlikely end up in the
text section.  GCC 4.8 ofppc kernels now boot, though they are
unable to load the symbol table correctly.

also tested with GCC 4.5 and ofppc (pegasosII.)
2013-11-16 12:00:21 +00:00
christos
f324b62750 remove unused OPENPIC flags. 2013-09-19 23:29:25 +00:00
matt
24c580b056 Add a SYSTEM_DEP for the ramdisk on INSTALL kernels. 2013-08-23 06:25:02 +00:00
christos
3f9b5ba889 Explicitly set KERN_AS (this could be done in /usr/src/sys/conf/Makefile.*)
so that modules work, on config files that did not set it explicitly. All
the files now use the standard logic, except the ones that set KERN_AS=obj
and Makefile.usermode which sets KERN_AS=library.
2013-03-10 07:18:19 +00:00
kiyohara
515e584834 Support Cache Protocol 'MEI' with MULTIPROCESSOR. 2012-10-20 14:42:15 +00:00
christos
e62c0b0fdf move common tlb stuff to uvm 2012-10-02 23:51:39 +00:00
matt
4923f4a4ee Add support for PPC FP emulation to BookE.
Pass a ksiginfo_t to fpu_emulation so it can give more detailed
info on signals.
2012-07-23 04:13:06 +00:00
matt
20d6accb8c Split mdio/mii access into its own "device" and update accordingly.
(on the P1025 the mdio functionality is separate from the etsec functions).
Provide locking for mii access.
2012-07-22 23:46:10 +00:00
matt
1c80450050 Add PMAP_MINIMALTLB defflag 2012-03-29 15:42:59 +00:00
matt
4155ad0c2a Add ldscript which aligns .data to a 1MB boundary. (used for testing) 2012-03-29 15:42:15 +00:00
matt
e15ed1bd6d For BookE kernels, use -mmultiple and -misel and enable -fstack-protector 2012-03-21 22:29:21 +00:00
matt
ceea929f77 Make sure the walnut system_tail_extra is very last thing. 2012-02-01 21:46:02 +00:00
matt
56a76c474b Change device name of pq3cfi to cfi.
Add cfi to P2020DS
Add ddrc
2011-08-02 00:27:42 +00:00
matt
70e7e1571a nflash is dead. remove it. 2011-07-25 23:26:03 +00:00
cliff
fb19d2b789 Add support for CFI NOR, using MPC8536DS as initial example.
Only AMD/Fujitsu command set is suported so far.
This is still work in progress, be advised.
2011-07-15 19:19:55 +00:00
wiz
4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
matt
51bd91e1f7 Get rid of local TOOL_GZIP definition that now bsd.own.mk does it for us. 2011-06-30 18:17:11 +00:00
matt
02c5e60b97 Add VERBOSE_INITPPC flag 2011-06-29 06:02:43 +00:00
matt
c4e25001ef Move some stuff from evbppc's Makefile.inc to powerpc's.
This avoids redundant objcopy's
2011-06-25 02:26:53 +00:00
matt
dd2488a8b3 Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>
2011-06-22 18:06:32 +00:00
matt
dba36e0322 Change IBM4xx to use the common powerpc PIC framework.
Consolidate most ibm4xx initppc function into ibm4xx_init
and Make all IBM4xx use it.
Change explora to use initppc instead of bootstrap.
2011-06-20 17:44:33 +00:00
matt
dcbb41139e Make a common genassym.cf (powerpc/genassym.cf) and then
only put specific stuff in foo/genassym.cf
2011-06-18 21:17:28 +00:00
matt
b07f072bdb Unconditionally build fixup.c 2011-06-18 20:35:05 +00:00
matt
139e8f0367 Move the interrupt stub from booke_stubs.c into its own intr_stubs.c.
Move the "null" intrsw (used in startup) to intr_stubs.c as well.
2011-06-15 15:22:56 +00:00
matt
5a261ccfeb Take the fast softint support in e500_intr.c and make generic so that it can
be used to provide fast softint for other interrupt implementations.
2011-06-14 22:36:12 +00:00
rmind
e225b7bd09 Welcome to 5.99.53! Merge rmind-uvmplock branch:
- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.
2011-06-12 03:35:36 +00:00
matt
01fd92550a Remove <machine/atomic.h>; use <sys/atomic.h> instead.
Add <powerpc/cpuset.h> (for mpc85xx pmap).
Add some initial MP code for mpc85xx
Rework ipi code to be common across all ppcs
Change PPC to keep curlwp in %r13 while in the kernel.
Move astpending from cpu_info to mdlwp
Improve cpu_need_resched to be more MP friendly.
2011-06-05 16:52:22 +00:00
matt
81ee56f362 Make sure the kernel is compiled with -msdata=none since it uses %r2 and %r13
for other uses.
2011-06-04 17:51:09 +00:00
matt
f36a02e8b0 Move powerpc to use pcu to manage FPU/AltiVec/SPE. 2011-05-02 02:01:32 +00:00
matt
b6333bd6a8 Add nandfcm device glue 2011-05-02 01:48:05 +00:00
joerg
5aca2679d7 Remove Darwin, MACH and Mach-O support. 2011-04-26 15:51:22 +00:00
phx
1b9ef66f08 Revert the major number for satmgr(4) back to 100 and allocate it from
majors.powerpc, as suggested by matt@.
2011-03-01 09:17:06 +00:00
matt
e13c032f64 When an OEA kernel is configured for multiple MMU types, use the new
powerpc fixup mechanism to bind the kernel to a particular MMU.  This
avoids an indirect call for every pmap call.
2011-02-12 18:23:09 +00:00
matt
88bcc3327b Add support for __read_mostly and __cacheline_aligned (using 32 bytes as
the cacheline as its the most prevalent sized used even though IBM970 has
a 128 byte cacheline).
2011-01-23 17:38:37 +00:00
matt
b8ea2c8cad Add support for BookE Freescale MPC85xx (e500 core) processors.
Add fast softint support for PowerPC (though only booke uses it).
Redo FPU/VEC support and add e500 SPE support.
Rework trap/intrs to use a common trapframe format.
Support SOFTFLOAT (no hardfloat or fpu emulation) for BookE.
2011-01-18 01:02:52 +00:00
uebayasi
7e4dfb0f23 Add IBM405GPr "External Bus" driver. 2010-11-06 16:30:15 +00:00
phx
32b542bced sysmon_power is needed to be able to use powerd(8). 2010-05-29 22:48:57 +00:00
kiyohara
b105a1867e Support PowerPC 405EX/EXr.
1. Add some new source and header files.
     (MAL(split) and RGMII(new) relations for EMAC)
  2. Create dcr4xx.h.  Its moved from dcr405gp.h.  Also remove dcr405xx.h.
  3. intr.c supports MULTIUIC with virtual-irq.  likes to oea.
     support 32-virq/128-hwirq.
  4. multiple emac support.
  5. WALNUT and VIRTEX_* includes arch/powerpc/conf/files.ibm4xx.
  6. WALNUT pci uses arch/powerpc/ibm4xx/pci/.
2010-03-18 13:58:38 +00:00