Commit Graph

1740 Commits

Author SHA1 Message Date
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
phx 3817671c1d Fixed typo: PPC_OEA64_BIRDGE -> PPC_OEA64_BRIDGE 2010-01-28 12:37:45 +00:00
mrg 43c8973ab2 document powerpc ddb commands. PR#38307. 2010-01-23 01:32:06 +00:00
martin f9e1815aaf Unify the name of the device property to hold a MAC address - there was
no clear majority for either "mac-addr" vs. "mac-address", but a quick
gallup poll among developers selected the latter.
2010-01-22 08:56:04 +00:00
macallan efa2da50d8 pass some OF properties as device properties for network devices
namely local-mac-address and shared-pins needed by gem
2010-01-20 16:36:55 +00:00
pooka 10fe49d72c Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client.  This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached.  However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff.  ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
2010-01-19 22:06:18 +00:00
jmmv a762eed1dd Define kobj_machdep and module_init_md empty functions so that powerpc
kernels (at least macppc) with 'options MODULAR' can be built.
2010-01-18 23:35:51 +00:00
phx f189752c2a Heed modeldata.ranges_offset while constructing the ranges bitmap. 2010-01-17 16:47:17 +00:00
mbalmer 2603a89351 One semicolon only (;; -> ;) 2010-01-05 13:20:29 +00:00
matt 0a8b38422e Add PRIx{P,V}{ADDR,SIZE}, PRIu{P,V}SIZE, and PRIxREGISTER{,32,64} for all
(except where they will be added via merge).  These should be used to print
{p,v}{addr,size}_t and register*_t as appropriate.
2009-12-11 05:52:03 +00:00
matt 6a9e4e8eeb Change u_long to vaddr_t/vsize_t in exec code where appropriate (mostly
involves setregs and vmcmds).  Should result in no code differences.
2009-12-10 14:13:48 +00:00
rmind e9f7af26e6 Rename L_ADDR to L_PCB and amend some comments accordingly. 2009-12-10 05:10:00 +00:00
rmind 3f18fe8123 - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places.  Reduce sys/user.h inclusions.
2009-11-27 03:23:03 +00:00
matt 11af2f9cfa Kill proc0paddr. Use lwp0.l_addr instead. 2009-11-26 00:19:11 +00:00
rmind 891259c1af Use lwp_getpcb() on mips, powerpc and sh3, clean from struct user usage. 2009-11-21 17:40:27 +00:00
skrll 0ed80c5100 Use elf/external.h from new binutils.
XXX do we need a src/tools/compat/elf.h?
2009-11-07 17:56:14 +00:00
cegger 9480c51b04 Add a flags argument to pmap_kenter_pa(9).
Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html
No objections.
2009-11-07 07:27:40 +00:00
rmind 5f45928b22 Provide cpu_lwp_free* stubs in vax and powerpc.
Reported by <he>.
2009-10-24 20:03:56 +00:00
snj 0c15144ae1 Drop 3rd and 4th clauses. Approved by thomas@ (copyright holder). 2009-10-21 21:57:39 +00:00
rmind 40cf6f3659 Remove uarea swap-out functionality:
- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.
2009-10-21 21:11:57 +00:00
dyoung dadc08813b Declare genppc_isa_detach_hook(). 2009-08-20 14:21:12 +00:00
dyoung fc51180b89 genppc_isa_detach_hook() needs two arguments, the first an
isa_chipset_tag_t.
2009-08-19 15:02:47 +00:00
dyoung 65d8a87204 Define genppc_isa_detach_hook() and isa_dmadestroy(). 2009-08-19 14:44:48 +00:00
nisimura 6d35cad5db - Have pic_mpcsoc.c to adapt variations of Moto/Freescale OpenPIC
compliant interrupt controllers.  Mostly the refrain of pic_openpic.c
and shall be useful for 85xx/86xx/QorIQ and Tundra product lines.
2009-08-19 06:22:54 +00:00
thorpej 97a2657a66 Add a real API for testing if a page is a managed page, and adjust callers
to stop relying on vm_physseg_find() for this purpose.
2009-08-18 18:06:53 +00:00
matt 209a0b42e3 Include <sys/exec_aout.h> explicitly instead of relying on <sys/exec.h> to
do it for us.
2009-08-15 23:44:57 +00:00
matt b2a95bab1e Remove all declarations of physmem from sys/arch. Add an include of
<sys/systm.h> to the one file that did not already contain it.
This now means that physmem can be changed by updating systm.h and uvm_page.c
(excluding fixing printfs)
2009-08-11 17:04:14 +00:00
rmind 585d607d92 Fix few more l_pflag and LP_OWEUPC confusions. 2009-07-29 17:45:39 +00:00
nisimura 0c9a82b249 protect C constructs from assembler source inclusion. 2009-07-21 07:08:57 +00:00
martin ced2993fec Do not use the same trampoline for cpu_setfunc and cpu_lwp_fork, the
latter does a lot more work.
2009-06-07 23:21:26 +00:00
phx b6a174c94b MSGBUFADDR creates a msgbuf at a fixed address, usually defined by the port's
config file.
The use of MSGBUGADDR was already prepared in powerpc/oea/pmap.c years ago,
but was never used and missing powerpc/oea/oea_machdep.c. The option will
be used by port amigappc.
2009-06-07 13:37:29 +00:00