Commit Graph

1770 Commits

Author SHA1 Message Date
chs
8b4d79c278 implement cpu_lwp_setprivate() on several platforms. 2010-07-07 01:20:49 +00:00
chs
cd93d88b01 implement ucas_* for powerpc/oea. 2010-07-07 01:19:54 +00:00
rmind
3c507045e2 Remove pfind() and pgfind(), fix locking in various broken uses of these.
Rename real routines to proc_find() and pgrp_find(), remove PFIND_* flags
and have consistent behaviour.  Provide proc_find_raw() for special cases.
Fix memory leak in sysctl_proc_corename().

COMPAT_LINUX: rework ptrace() locking, minimise differences between
different versions per-arch.

Note: while this change adds some formal cosmetics for COMPAT_DARWIN and
COMPAT_IRIX - locking there is utterly broken (for ages).

Fixes PR/43176.
2010-07-01 02:38:26 +00:00
rmind
f66e2cf323 Add missing sys/xcall.h inclusion, remove sys/malloc.h one. 2010-06-25 19:00:05 +00:00
rmind
1840edb963 Implement high priority (XC_HIGHPRI) xcall(9) mechanism - a facility
to execute functions from software interrupt context, at SOFTINT_CLOCK.
Functions must be lightweight.  Will be used for passive serialization.

OK ad@.
2010-06-22 18:29:01 +00:00
kiyohara
2581e047dd Support MV64361 on PegasosII by gt(4).
+ Support gtpci@gt instead of pegasospci more smartly.
  + Support Gigabit Ethernet by mvgbe@gt.
2010-06-09 04:41:42 +00:00
tnozaki
9efec5bce3 1. MB_LEN_MAX switch MD to MI.
2. unfortunately hppa's MB_LEN_MAX is defined incorrectly 6 instead of 32
   so we have to add more setlocale(3) __RENAME func, __setlocale50.
3. move setlocale1.c and setlocale32.c to lib/libc/compat/locale/*
   prepareing for next libc major crunk.
4. bump libc minor version.
2010-06-07 13:52:28 +00:00
chs
56474d6551 fix some cosmetics. 2010-06-04 20:31:58 +00:00
phx
32b542bced sysmon_power is needed to be able to use powerd(8). 2010-05-29 22:48:57 +00:00
tnozaki
dc71c99d49 fix wrong integer promotion rule(removed U suffix from UINT{8,16}_C).
see ISO/IEC 9899:1999 7.18.4.3.
2010-05-29 17:33:57 +00:00
macallan
085d3a8922 make this work again 2010-05-12 06:11:31 +00:00
kiyohara
5001974e69 Rename PCI_PRODUCT_MARVELL_MV64360 from PCI_PRODUCT_MARVELL_GT64360. 2010-05-08 05:55:52 +00:00
macallan
2fcb22f400 set RI_NO_AUTO when initializing the early console - we're so early that
kmem_alloc() can't be used and we don't really need box drawing characters
for the OF font anyway
2010-05-06 04:32:16 +00:00
kiyohara
a748aedcb5 Clean up gt and peripherals.
This change tested compile only.
2010-04-28 13:51:55 +00:00
kiyohara
4a9e14b923 Fix forgot to commit.
Support 64-bit imask for powerpc/pic.
2010-04-25 12:26:07 +00:00
kiyohara
a7fd2c6cc1 Support 64-bit imask for powerpc/pic. 2010-04-24 09:39:56 +00:00
rmind
13f624ca0f Remove lwp_uc_pool, replace it with kmem(9), plus add some consistency.
As discussed, a while ago, with ad@.
2010-04-23 19:18:09 +00:00
kiyohara
ecfce9dc53 Remove white-spaces. 2010-04-19 06:55:11 +00:00
joerg
58e867556f Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.
2010-04-05 07:19:28 +00:00
matt
ea2a1a3631 Change booke_intr.h to intr.h since <powerpc/booke/intr.h> will be unique
enough.
2010-04-01 18:59:27 +00:00
matt
bc7d3d1e06 OpenPIC register defintions used by e500 booke. 2010-04-01 18:58:12 +00:00
matt
0f77efaac1 Fix some TCR definitions. 2010-04-01 18:25:16 +00:00
tnozaki
377cb4e4f9 1. {wctype,wctrans,mbstate}_t: switch MD to MI like other
libc implementation (such as *BSD and glibc2).

2. don't typedef void * wc{type,trans}_t, suggested by soda@-san.
   it may pass through compiler type check, it's harmful.
   so i introduce dummy struct __tag_wc{type,trans}_t(iconv_t already does).

no ABI change was made.
2010-03-27 22:14:09 +00:00
mrg
b7afc13f58 default powerpc64 mbufs to 512 bytes, like other 64 bit platforms.
from dennis.c.ferguson@gmail.com in PR#43028.
2010-03-22 02:14:28 +00:00
chs
45709939f2 assert that pcb_onfault is NULL in places where it should be. 2010-03-21 00:10:14 +00:00
chs
04aa4da3b0 fix copy{in,out}{,str}() to return the error returned by uvm_fault().
fixes PR 41813.
2010-03-20 23:31:27 +00:00
kiyohara
12fb39e568 Fix build failed.
Add forgot zmiireg.h since support 405EX.
2010-03-20 15:22:27 +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
kiyohara
2692e2e238 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:47:04 +00:00
kiyohara
b795d8986f Fix isa(4) support for ofw.
ofw not initialized bus_space for isa(4).
  It tested on ofppc(PegasosII).
2010-03-14 10:03:49 +00:00
kiyohara
ca66853e78 Remove white-spaces. 2010-03-10 18:28:30 +00:00
matt
3022f6d3b6 Add BookE modifications to cpu_info 2010-03-09 22:41:03 +00:00
matt
1f9cc4c264 Include BookE version of pmap.h 2010-03-09 22:40:06 +00:00
matt
8b3b8c4851 Add initial versions of these for BookE. 2010-03-09 22:39:32 +00:00
matt
7cd69c568c Add BookE variation of MSR. 2010-03-09 22:37:47 +00:00
matt
f46a80a66c Put ASM RCSIDs into .ident 2010-03-09 22:36:41 +00:00
matt
2bc030d433 Add PPC BookE files. 2010-03-09 22:35:50 +00:00
matt
d442abeaba Add PPC_BOOKE cputype and booke files. 2010-03-09 22:35:12 +00:00
plunky
c269ebf72f use a MI major number for uhso(4) driver
(requested by mrg)
2010-03-06 23:45:38 +00:00
plunky
4677f8289f add major device for usho(4) driver 2010-03-06 21:31:50 +00:00
matt
e6a523fa96 Add missing <powerpc/FOO/spr.h> to a few files missed on the first pass. 2010-03-02 21:53:20 +00:00
matt
eeda580952 Add missing <powerpc/FOO/spr.h> to a few files missed on the first pass.
Don't export <machine/spr.h> to userland, only <powerpc/spr.h>
2010-03-02 21:52:32 +00:00
matt
5a4cb80d76 Adapt to spr.h breakup. 2010-02-25 23:31:47 +00:00
matt
3cba909205 Split <powerpc/spr.h> into a common <powerpc/spr.h> and <powerpc/XXX/spr.h>
where XXX is ibm4xx or oea.
2010-02-25 23:30:04 +00:00
skrll
7b00c6209a s/cpu_fork/cpu_lwp_fork/ in comment 2010-02-25 07:21:19 +00:00
joerg
d621e29eca Remove separate mb_map. The nmbclusters is computed at boot time based
on the amount of physical memory and limited by NMBCLUSTERS if present.
Architectures without direct mapping also limit it based on the kmem_map
size, which is used as backing store. On i386 and ARM, the maximum KVA
used for mbuf clusters is limited to 64MB by default.

The old default limits and limits based on GATEWAY have been removed.
key_registered_sb_max is hard-wired to a value derived from 2048
clusters.
2010-02-08 19:02:25 +00:00
phx
8d1fe29ab0 New machine commands for PPC OEA:
bat: prints the BAT registers and translations
mmu: prints MMU registers (sdr1, sr0..15)
2010-01-28 21:10:48 +00:00
phx
1267c66af6 Fixed some more instructions and their operands.
Print the register-indirect operand with displacement in load/store
instructions as d(rN).
Conditional branches are printed with their simplified mnemonic (i.e.
beq instead of bc x,y). Also append the branch-prediction flag +/-i.
Print real labels for 16-bit branches instead of just an offset.
Use the simplified mnemonic cmpw and cmpd, and much more enhancements...
2010-01-28 19:01:32 +00:00
mbalmer
45aabfbe67 Fix language. 2010-01-28 14:05:03 +00:00
phx
1e985e8579 Reverted last commit for db_disasm.c and db_inteface.c.
Sorry, erroneously commited them...
2010-01-28 12:45:01 +00:00