Commit Graph

3272 Commits

Author SHA1 Message Date
palle
d3ad036880 No need to make CI_MMFSA depend on SUN4V since the ci_mmfsa field is always present in the cpu_info struct now 2014-01-11 18:31:35 +00:00
nakayama
a420884c46 Uncomment ifdef/endif and tabify. 2014-01-11 12:20:07 +00:00
palle
f08e82f640 sun4v: Update description of the ci_mmfsa field in the cpu_info structure 2014-01-09 20:28:23 +00:00
palle
5317e12d65 Coding style fixes (whitespace) - no functional changes 2014-01-09 20:13:54 +00:00
macallan
96f3c05159 allow non-SUN4V kernels to build 2014-01-09 12:51:27 +00:00
palle
6c190f50bb sun4v: trap table setup - currently populated with dummy entries which will be properly implemented later - parts from OpenBSD - OK martin@ 2014-01-07 20:11:35 +00:00
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
nakayama
08b2d996d1 Make buildable w/o options SUN4V. 2013-12-29 12:36:30 +00:00
nakayama
9476feea60 CI_UPAID has been renamed to CI_CPUID. 2013-12-28 11:12:09 +00:00
nakayama
296c58c0d7 Add SUN4V to opt_sparc_arch.h. 2013-12-28 11:09:33 +00:00
nakayama
36e6c2c76d Make 32-bit kernel buildable again. 2013-12-28 11:08:56 +00:00
palle
f4d9eaa0a8 a) make the hunt through the cpus list more generic b) sun4v: ensure that the interrupt stack is mapped permanently and the TSB is setup properly - parts from OpenBSD. OK martin@ 2013-12-27 21:11:19 +00:00
palle
418e019b05 Updates to pmap_bootstrap() for sun4v - parts from OpenBSD - OK martin@ 2013-12-16 20:17:34 +00:00
christos
dbf7e7e879 Add -Wno-uninitialized with -Os so that we don't get spurious gcc warnings. 2013-12-15 07:52:53 +00:00
nakayama
00399ad2af Remove duplicate/unused declarations. 2013-12-14 05:28:47 +00:00
palle
b11afb2f13 Add support for running ofwboot on sun4v. Please note that the kernel on sun4v will be loaded properly but when the kernel takes over it will crash immediately since the kernel is not sun4v ready yet 2013-12-08 14:41:28 +00:00
palle
6886e0915b Added missing $ to sun4v sypervisor API 2013-12-07 16:54:43 +00:00
palle
fbadee00dd sun4v hypervisor API - from OpenBSD 2013-12-07 15:36:39 +00:00
nakayama
0d901cb2cd Timecounter's tc_get_timecount requires only 32-bit (u_int), so
omit unnecessary upper 32-bit read from STICK counter.
2013-12-07 11:17:24 +00:00
nakayama
6c1fa3b922 Increase an interrupt depth only in the case of hardware interrupts,
and remove the ci_idepth trick in softint_fastintr.

Fixes the following diagnostic panic reported in port-sparc64.

  panic: kernel diagnostic assertion "!cpu_intr_p()" failed: file
  "../../../../kern/subr_xcall.c", line 351
2013-12-06 21:11:06 +00:00
mrg
634d6075be remove unused variable. 2013-11-27 14:21:31 +00:00
martin
eeff5755ca Allow TOPDOWN-VM only for binaries compiled with appropriate code model.
No change yet, as __HAVE_TOPDOWN is not yet defined.
2013-11-14 12:11:13 +00:00
christos
abc81f7c5e use __unused instead of __USE and void cast to mark iterator variable unused
where needed (from phone)
2013-11-10 00:50:13 +00:00
nakayama
30bd626232 "machine_model" is now declared in machine/autoconf.h. 2013-11-08 15:44:26 +00:00
jdc
0eda4b70da Use machine_model from autoconf.c, instead of calling the firmware here. 2013-10-26 18:49:30 +00:00
jdc
2353478d91 Allow machine_banner and machine_model to be used outside autoconf.c, for
example, by drivers that need to match on model name.  Suggested by mrg@.
2013-10-26 18:47:27 +00:00
macallan
da28d6ec38 support WSDISPLAYIO_GET_FBINFO 2013-10-09 17:18:23 +00:00
jdc
1a35157c53 Work around invalid root PCI bus bus-range (0x00-0xff) by checking the
bus-range of any child buses, and altering the root bus bus-range to
suit.  Required for cardbus bridge attach on SPARCle.
2013-09-24 18:23:07 +00:00
jdc
2237cf7c53 Remove spdmem entries for indirect configuration on SPARCle. This is now
handled in sparc64/autoconf.c (since r1.192).
2013-09-24 18:12:59 +00:00
jdc
ac257ced33 If we're running on SPARCle, add spdmem entries on the i2c bus directly,
because they are not known by firmware.  Idea from martin@.
2013-09-24 18:11:54 +00:00
martin
7dbdb14bec Remove unused variable 2013-09-15 15:57:26 +00:00
martin
f764a1d8b0 ifdef a variable like its use 2013-09-15 14:47:40 +00:00
martin
4b0e962db8 Remove unused variable 2013-09-15 13:45:31 +00:00
martin
bf0ed17b34 Remove an unused variable 2013-09-15 09:25:22 +00:00
martin
107b587925 Remove unused variable 2013-09-14 21:08:35 +00:00
martin
123d15c260 Make CPU_INFO_FOREACH more gcc 4.8.1 friendly 2013-09-13 21:36:38 +00:00
martin
880e9bcab0 Remove unused variable 2013-09-12 19:54:51 +00:00
martin
8fc5f922fd #if 0 a variable just like their only use 2013-09-12 19:51:09 +00:00
martin
c091a61a63 Remove unused variable 2013-09-12 19:38:59 +00:00
martin
77cc2c9e6f Remove an unused variable, avoid unused variable warning. 2013-09-12 12:57:48 +00:00
martin
c8152c7fd7 Slightly rearange stopcounter() to compile warning-free with newer gcc 2013-09-12 12:45:53 +00:00
martin
4073f8732b Disallow MAP_FIXED mmap's in the sparc64 VA hole (XXX - need to deal with
different variants of the hole for different CPU types)
2013-09-11 18:27:44 +00:00
macallan
7823c23e84 update comment about which CPU uses what counter/timer 2013-09-10 16:03:48 +00:00
macallan
6cf29c2f93 sprinkle #if NPSYCHO > 0
now this builds again on kernels without psycho
2013-08-27 13:12:29 +00:00
macallan
dbc46cd7fa psycho needs-flag now
while there, ffb doesn't need rasops8
2013-08-27 13:11:12 +00:00
nakayama
bda46a5ba9 Make timecounter "tick-counter" mandatory. 2013-08-22 10:00:43 +00:00
nakayama
680052c744 Handle US-IIe's STICK counter as 64-bit explicitly to fix a hang at
boot after about 6.5 minutes on 32-bit kernel.
2013-08-22 09:57:30 +00:00
macallan
975e4c65ca support UltraSPARC-IIe STICK counter as time base 2013-08-20 19:19:23 +00:00
macallan
73af4c39e5 add US-IIe specific STICK and ESTAR registers 2013-08-20 10:33:03 +00:00