Commit Graph

833 Commits

Author SHA1 Message Date
christos
e691d98f97 use cpu_{g,s}etmodel 2014-03-24 19:29:59 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
matt
9f9d956c40 same typo 2014-03-10 00:04:04 +00:00
matt
49aac98b50 Typo 2014-03-10 00:03:14 +00:00
matt
53dc265000 Make sure to clear PSL_SE before going to usermode on BOOKE
Revert back to testing PSL_SE in the trapframe and not mdlwp md_flags
2014-03-09 23:09:32 +00:00
matt
e267b088d4 Don't test for PSL_SE in tf_srr1 since will be cleared on the next exception.
Keep a copy of it in l_md.md_flags which will be preserved.
2014-03-09 22:31:25 +00:00
matt
6358bf0e36 Don't define ARCH_ELFSIZE if it's already defined. 2014-03-07 04:11:07 +00:00
matt
1de63f393f Add PowerPC64 DTs 2014-03-06 19:30:39 +00:00
matt
9ee040b36e Add _XENTRY which doesn't set the section to .text 2014-03-06 19:05:24 +00:00
matt
10432e099e More comments.
rest of powerpc64 relocs
2014-03-06 07:48:25 +00:00
macallan
b01d00d945 support ppc601
from scole_mail, ok matt@
2014-03-03 15:36:36 +00:00
matt
d4182252d5 Make this 64-bit aware. 2014-02-28 05:33:53 +00:00
matt
2d773d76bf Add pmap_ste_spill 2014-02-28 05:32:01 +00:00
matt
648cd98c19 Make this work. 2014-02-28 05:31:38 +00:00
matt
d7c76f4df3 Add trapframe32 for COMPAT_NETBSD32 2014-02-28 05:30:24 +00:00
matt
c4eb371e6c Add ALIGNBYTES32 for COMPAT_NETBSD32 2014-02-28 05:29:57 +00:00
matt
7f94f535b0 Use uintptr_t for bus_size_t, bus_addr_t, bus_space_handler_t since uint32_t
doesn't really work too 64-bit platforms.
2014-02-28 05:28:40 +00:00
matt
523fe23684 support PPC_OEA64 2014-02-28 05:27:38 +00:00
matt
2568724ec2 Add mcontext32_t 2014-02-28 05:27:05 +00:00
matt
0020224196 Add cmp{ptr,long,reg}{,l}{,i} 2014-02-28 05:26:23 +00:00
matt
8c93c0eb27 Use ## for concatenation 2014-02-27 18:12:28 +00:00
matt
2b39b08a8f Add P2SZREG to be usign with .p2align 2014-02-27 15:58:03 +00:00
christos
b07f3fe235 delete VM_DEFAULT_ADDRESS; some of those should be GC'ed because they match
the default definition.
2014-01-25 15:16:49 +00:00
alnsn
7ca7224ef5 Use __syncicache() in sljit on powerpc. 2013-11-25 23:53:44 +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
nisimura
77418f57bd resort the sys/cpu.h way for unused cii iterator in !MULTIPROCESSOR case. 2013-11-08 03:59:35 +00:00
matt
73bf23c080 Define HID1_{SYNCBE,ABE} for the 7450 2013-09-22 17:51:31 +00:00
joerg
4d12bfcd15 Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
2013-09-12 15:36:14 +00:00
matt
3835e94cd4 struct cpu_info; 2013-08-24 15:42:29 +00:00
matt
b183b3ef97 Get rid of MDLWP_USED{FPU,VEC} 2013-08-23 06:19:46 +00:00
matt
ba182b7aab Fix kern_softint.c errors (tested with WALNUT & EV64260) 2013-08-23 06:18:14 +00:00
drochner
69aeb16c07 -extend the pcu(9) API by a function which saves all context on the
current CPU, and use it if a CPU is taken offline
-add a bool argument to pcu_discard which tells whether the internal
 "LWP has used the coprocessor" flag should be set or reset. The flag
 is reported by pcu_used_p(). If set, future accesses should use the
 state stored in the PCB. If reset, it should be reset to default.
 The former case is useful for setmcontext().
 With that, it should not be necessary anymore to manage the "FPU used"
 state by an additional MD variable.

approved by matt
2013-08-22 19:50:54 +00:00
matt
9b2362ab06 kcpuset_t changes for the pmap and removal of __cpuset_t 2013-07-17 23:27:02 +00:00
joerg
3ce4c44911 Fix header guard. 2013-07-05 02:11:59 +00:00
macallan
9c39c70523 we can read the timebase register as a 64bit chunk when _ARCH_PPC64 is defined,
not necessarily LP64
2013-04-25 00:08:48 +00:00
christos
caafbf4e1b add missing SSIZE_MIN 2013-04-11 00:57:34 +00:00
kiyohara
b73bbcbf2e More stack for ibm4xx slow machines. 2013-01-29 15:47:16 +00:00
kiyohara
f870b0a58c Support 16bits over stack size. 2013-01-29 15:45:43 +00:00
matt
f82647e665 Make the 85xx get closer to spinning up the secondary CPUs.
Don't assume TLB1[0] has the mapping for VA/PA 0.
Make sure the TLB1 entries that map physical memory have the M (memory
coherent) bit set.
2012-11-27 19:24:45 +00:00
christos
72708a99b3 provide _ENTRY(x) because some code needs it. 2012-11-25 01:10:37 +00:00
chs
cbab9cadce split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
2012-10-27 17:17:22 +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
mrg
d87a39703d increase powerpc NKMEMPAGES_MAX_DEFAULT to 256MB. remove the macppc
overrides that are now the same as the powerpc default.
2012-09-23 22:31:38 +00:00
matt
17674df3f2 Add support for _UC_TLSBASE. Make sure to preserve backwards compat for
programs built before TLS support was added.
2012-09-11 00:15:19 +00:00
matt
143ca138fb Add a machine splhist command to give (a incomplete) spl history.
(only the most recent are going to be accurate).

splraise(6) from 0 at 549214603
splraise(7) from 6 at 549214643 (+40)
splx(6) from 7 at 549214691 (+48)
splx(0) from 6 at 549214730 (+39)
2012-08-01 21:30:21 +00:00
matt
8c3b0a4f45 Export dump_trapframe. 2012-08-01 16:35:50 +00:00
matt
261130358b Fix a problem where the kernel could randomly reset due to a watchdog event.
When an exception happens, the srr0 (exception PC) was being saved in the
normal location of the current callframe.  This was fine except when the
routine was in its prologue after it had saved LR but had not yet updated the
stack pointer or when the routine was in its epilogue after it has restored
the stack pointer but not yet loaded the LR.  In either case this would cause
the LR to be corrupted (either running the routine forever or by branching
to itself forever).  Now we save and restore the contents of that memory
location so the corruption can't happen.
2012-08-01 16:19:42 +00:00
matt
0a110b1873 Fix some copy&paste bugs. 2012-08-01 00:45:18 +00:00