Commit Graph

2266 Commits

Author SHA1 Message Date
dsl
95739e63cd Remove __HAVE_PROCESS_XFPREGS and add the extra parameter for the size
of the fp save area to all the process_read_fpregs() and
  process_write_fpregs() functions.
None of the functions have been modified to use the new parameters.
The size is set for all the writes, but some of the arch-specific reads
  just pass NULL.
The amd64 (and i386) need variable sized fp register save areas in order
  to support AVX and other enhanced register areas.
These functions are rarely called - so the extra argument won't matter.
2014-01-04 00:10:02 +00:00
dsl
be74e0a9c9 Change the type of the 'cookie' that holds the state of the core dump file
from 'void *' to the actual type 'struct coredump_iostate *'.
In most of the code the contents of the structure are still unknown.
This just stops the wrong type of pointer being passed to the 'void *'
parameter.
I hope I've found everything, amd64 GENERIC and i386 GENERIC & ALL compile.
2014-01-01 18:57:15 +00:00
wiz
d860f590d4 Fix typo ("then" instead of "than") 2013-12-09 09:35:16 +00:00
alnsn
7ca7224ef5 Use __syncicache() in sljit on powerpc. 2013-11-25 23:53:44 +00:00
kiyohara
a1cb7359eb Move the parameters for obs600 to obs600_autoconf.c. This parameters was set from u-boot. 2013-11-21 13:52:27 +00:00
kiyohara
964b567a32 Support Synopsys DesigneWave OTG on PowerPC 405EX. 2013-11-21 13:33:15 +00:00
kiyohara
725fdb27e9 Fix IPL for cascading pic to HIGH. 2013-11-19 12:46:43 +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
nisimura
5818b5f944 use __diagused for KASSERT only variable. 2013-11-08 04:32:58 +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
nisimura
5c6968285a move DIAGNOSTIC only variable inside #ifdef 2013-11-07 15:26:36 +00:00
mrg
1ee28a1fe7 - remove set but unused variables
- move some variables inside their relevant use #ifdef
2013-11-03 22:27:27 +00:00
mrg
c4746a16b5 - remove set but unused variables 2013-11-03 22:22:03 +00:00
mrg
44f61bfe42 gcc 4.8.1 wants:
- remove some set but unused variables
- move some variables inside their usage #ifdef's
- cast to (void) instead of using a dummy return variable

(there are more to come, but this one is now tested with gcc 4.5)
2013-11-03 22:15:57 +00:00
matt
699311e835 Fix c&p bug. 2013-09-22 18:56:11 +00:00
matt
328ab199e6 Disable XBSEN for the 7450. 2013-09-22 18:49:10 +00:00
matt
7f12d72195 Make sure ABE/SYNCBE are enabled in HID1 for the 7450 CPUs
Enable XBSEN for the 7450.
2013-09-22 18:05:16 +00:00
matt
73bf23c080 Define HID1_{SYNCBE,ABE} for the 7450 2013-09-22 17:51:31 +00:00
christos
f324b62750 remove unused OPENPIC flags. 2013-09-19 23:29:25 +00:00
christos
a8260c61a3 use ci_index. 2013-09-19 23:28:52 +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
78620830e1 convert rfid to rfi in exception handlers. 2013-08-31 15:01:08 +00:00
matt
310fbebba0 Move the pmap_setup to the start oea_init (no non-OFW ports can use it).
If PPC_OEA64_BRIDGE is defined, add code so that when OEACPU_64_BRIDGE is not
present, it replaces the rfid with rfi and mfmsr/rldicl/mtmsrd sequence
with NOPs.  This allows plain OEA kernels to work.  (tested on PMPPC with
PPC_OEA64_BRIDGE option added).
2013-08-31 07:33:15 +00:00
matt
378cec5a74 Add CACHE_INFO_DCACHE_LINE_SIZE to assym.h 2013-08-30 21:29:29 +00:00
matt
3835e94cd4 struct cpu_info; 2013-08-24 15:42:29 +00:00
matt
24c580b056 Add a SYSTEM_DEP for the ramdisk on INSTALL kernels. 2013-08-23 06:25:02 +00:00
matt
ba0705f794 Avoid a few instructions since we know CURLWP is in %r13 2013-08-23 06:24:21 +00:00
matt
66cb4c16d4 Simplify since we know curlwp is in %r13 2013-08-23 06:22:32 +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
c83a49fc04 cpuset_info is no longer volatile 2013-07-19 06:43:20 +00:00
matt
9b2362ab06 kcpuset_t changes for the pmap and removal of __cpuset_t 2013-07-17 23:27:02 +00:00
matt
b89cdb0e53 Fix typo (pa instead of va). 2013-07-09 20:33:03 +00:00
joerg
f48ee015ba Don't depend on libz.a for the tools build, /usr/lib/libz.a might not
exist.
2013-07-09 13:10:55 +00:00
joerg
bd970e74fe Fix format string. 2013-07-09 13:10:33 +00:00
joerg
31ed74d31c Set pc_intr_map only once. 2013-07-05 02:18:37 +00:00
joerg
3ce4c44911 Fix header guard. 2013-07-05 02:11:59 +00:00
joerg
58d90b3498 Don't use non-literal strings as format string. 2013-07-04 23:00:23 +00:00
joerg
0d9b68baf9 One const is good enough. 2013-07-04 22:59:58 +00:00
joerg
f6a98ac11b When trying to write into page 0, use volatile to force the compiler to
actually create this access.
2013-07-04 22:59:27 +00:00
matt
8b42139220 Use sy_invoke 2013-06-26 06:31:53 +00:00
kiyohara
b7a30adb0b Fix lost avail memory over 256M. 2013-06-12 15:11:08 +00:00
kiyohara
e3971f83fc Call kmem_intr_free() with kmem_intr_alloc-ed memory instead of free(). 2013-06-09 12:52:33 +00:00
macallan
b00e7f24a9 more G5 stuff:
- call OF_quiesce()
- properly map the message buffer
2013-05-13 00:12:01 +00:00
macallan
ca1d0e8b1b add OF_quiesce() to shut down OF background tasks, needed on G5
from Phileas Fogg
2013-05-12 13:50:11 +00:00
macallan
092e2fd7b4 cleanup mem_regions:
- use different variables for / and /memory nodes
- remove redundant OF_finddevice("/")
- assume 32bit addresses/sizes in "available" on Apple hardware
2013-05-12 13:42:39 +00:00
macallan
bdcb52e9e3 move console_node and console_instance to ofw_consinit.c where they're
actually used
2013-05-12 13:23:08 +00:00
macallan
f6a41c7ccb remove PMAC_G5 kludge - fixed this elsewhere 2013-04-28 00:45:45 +00:00