Commit Graph

3252 Commits

Author SHA1 Message Date
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
martin
6e62732fa1 Remove ancient spl* variants no longer used 2013-08-18 09:31:38 +00:00
mrg
cc564476de thanks to mhitch, we got all the interrupt issues sorted out for now,
so turn off PDB_INTR in the debug kernel.
2013-08-10 00:48:04 +00:00
macallan
4453737ff6 avoid uninitialized use of defattr 2013-07-30 19:16:50 +00:00
martin
03c1f052c8 Make dubious code that skips a few interrupts hardcoded print a verbose
message asking the user to mail us details. This will also alarm us
should the strange test sometimes in the future trigger eroneously
on newer hardware.
2013-07-09 20:32:11 +00:00
mhitch
7e92c596b1 Changes from OpenBSD to OF_mapintr(). Adds support for PCIe. My Ultra 45
now can install from the CD, I can access USB flash drives, and the onboard
bge interfaces now work.  Tested on some other machines by jdc.
2013-07-08 17:01:05 +00:00
rmind
666e919182 G/C PFIL_HOOKS from the kernel configs. 2013-06-30 21:38:55 +00:00
martin
3e2422d481 Simplify with sy_invoke() 2013-06-27 15:27:46 +00:00
nakayama
a27e3fe5b7 Fix copy and paste. 2013-06-24 11:32:21 +00:00
nakayama
cd7b58e068 Avoid data_access_error trap panic when reading unused PCI
configuration space.

This method is described in UltraSPARC IIi User's Manual "16.2.1
Probing PCI during boot using deferred errors", and refer to the
implementation of OpenBSD.
2013-06-21 20:09:58 +00:00
christos
e46f5f0078 remove obsolete networking options 2013-06-05 23:07:59 +00:00
jnemeth
725668f209 enable FFS_EI 2013-06-05 21:45:06 +00:00
martin
cf7199d040 Make it compile again 2013-05-30 16:01:25 +00:00
christos
7b845fa9dc phase 1 of disk geometry cleanup:
- centralize the geometry -> plist code so that we don't have
	  n useless copies of it.
2013-05-29 00:47:48 +00:00
nakayama
4e830752db Disable interrupts after calling data_access_error as with
data_access_fault.
2013-05-24 23:02:27 +00:00
nakayama
6c1c7a55f0 - use gettick directly, not via cpu_counter.
- bump timecounter quality of stick-counter so we prefer to use it.
2013-05-24 23:02:08 +00:00
nakayama
aa19dc536d Use macros in machine/asm.h instead of locally defined, and
introduce CASPTRA for casxa/casa.
2013-04-28 23:42:23 +00:00
christos
1cc8b68d4b the bogus number police 2013-04-27 21:43:10 +00:00
christos
dc14ae835f remove confusing numeric locators where they are unused. 2013-04-27 18:19:19 +00:00
christos
6c49ed342b Need assym.h for libkern 2013-03-19 19:59:40 +00:00
christos
c6a7d21bf0 now in common/lib/libc/arch/sparc64/string 2013-03-17 00:45:03 +00:00