Commit Graph

55668 Commits

Author SHA1 Message Date
martin
874f5e2394 Report faulting data address with SIGBUS (instead of the faulting instruction) 2012-04-23 15:09:13 +00:00
skrll
5d5e04ddd5 Pass the trap address in ksi_addr without privilege bits.
Previously GDB would get confused by the trap address given when hitting
the _rtld_debug_state breakpoint.
2012-04-23 11:25:03 +00:00
isaki
778479cda0 Print a message before enabling interrupts. It's helpful to
know when a kernel was hung up.  Suggested by tsutsui@,
the message is derived from arch/sun3/sun3/autoconf.c.
2012-04-23 05:31:31 +00:00
christos
e32ea54e40 From Bob Lee [glee at force10networks dot com], Preserve the have fpu context
bit for compat_16 signals, because the old 1.6 context does not deal with the
fpu.
2012-04-22 20:36:52 +00:00
rmind
999d4270af i686_mtrr_init_first: handle the case when there are no variable-size MTRR
registers available (i686_mtrr_vcnt == 0).
2012-04-22 18:59:41 +00:00
rmind
5cf69dcee9 - pmap_tlb_shootdown: do not overwrite tp_cpumask with pm_cpus, but merge
like pm_kernel_cpus.  Remove unecessary intersection with kcpuset_running.
  Do not reset tp_userpmap if pmap_kernel().
- Remove pmap_tlb_mailbox_t wrapping, which is pointless after recent changes.
- pmap_tlb_invalidate, pmap_tlb_intr: constify for packet structure.
2012-04-21 22:22:48 +00:00
christos
243696ae20 Alignment fault traps push the error code automatically, so don't use ZTRAP! 2012-04-21 18:52:36 +00:00
rmind
0c79472223 - Convert x86 MD code, mainly pmap(9) e.g. TLB shootdown code, to use
kcpuset(9) and thus replace hardcoded CPU bitmasks.  This removes the
  limitation of maximum CPUs.

- Support up to 256 CPUs on amd64 architecture by default.

Bug fixes, improvements, completion of Xen part and testing on 64-core
AMD Opteron(tm) Processor 6282 SE (also, as Xen HVM domU with 128 CPUs)
by Manuel Bouyer.
2012-04-20 22:23:24 +00:00
jym
e7ffd7b1f7 PSL_AC is user-settable. 2012-04-20 18:28:43 +00:00
matt
ca66ac7ad4 Don't use the current value of maccfg2. 2012-04-20 13:51:48 +00:00
matt
f90c9c2dab Read maccfg1/maccfg2/ecntrl so we can preserve bits we don't change (like
GMII mode).
2012-04-19 21:32:01 +00:00
wiz
d136758f88 Correct option name for hdaudio debugging.
Reported by Dave Tyson in PR 46357.
2012-04-19 20:20:34 +00:00
jym
9d5d9db055 Mirror what is done for amd64 boot and ACPI wakeup code by setting
CR0_WP (write protection bit) early on boot. Although it is set later via
cpu_init(), this can help tracking down invalid writes to pages mapped
as read only from ring 0.

No regression observed when booting under anita (QEMU) or a P4 host.

Depending on your hardware or setup, you may trigger code paths I have
overlooked. So if your machine does not start properly, or you get
page faults early during boot, please report them to me.
2012-04-19 18:07:05 +00:00
jym
b053fe262f Set the CR0_AM bit so processes can enable alignment check errors under
x86 through PSL_AC bit.

ATF test incoming shortly.
2012-04-19 18:00:34 +00:00
bouyer
24a7abc690 Add mpii(4), a driver for LSI Logic Fusion-MPT Message Passing Interface II
SAS controllers. Ported from OpenBSD.
2012-04-19 17:50:49 +00:00
bsh
f93c4185bf support SD/MMC on Netwalker. 2012-04-19 09:53:53 +00:00
bsh
c368cb1d52 adapt to imxclock.c rev 1.5. 2012-04-18 05:54:07 +00:00
bsh
456cfa8109 Support i.MX51's LCD framebuffer on Netwalker.
from Kenichi Hashimoto.
2012-04-17 10:19:57 +00:00
rkujawa
1bd1939218 regen configs 2012-04-17 10:06:32 +00:00
rkujawa
19eda64f80 Add clockport(4) layer, which provides support for expansion bus present on
Amiga-style clockports. Also add a1k2cp(4) backend driver and the first
clockport device driver com_ss, that supports com(4) on clockport(4)
(particurarly Individual Computers SilverSurfer). Disabled by default,
since probe procedure is not written yet.
2012-04-17 09:59:03 +00:00
bsh
056b7b23a0 driver for i.MX51 Clock Controller Module.
from Kenichi Hashimoto.

Currently used only to get peripheral clock frequencies.
2012-04-17 09:33:31 +00:00
bsh
6154b5e7e7 add bit definitions for i.MX51 EPIT 2012-04-17 09:12:08 +00:00
bsh
9e881daa93 fix comment 2012-04-17 07:43:21 +00:00
phx
8d59073313 Improved Synology CS/RS support: watch power-state of all SATA drives before
initializing them, configure drive LEDs to reflect SATA activity.
Configure drives on all ATA PCI devices, not only on the first one.
2012-04-16 16:55:29 +00:00
cegger
90a8e71db5 Add rescan support. Re-fixes PR 45268. 2012-04-16 16:07:24 +00:00
nisimura
0bdfa1e561 Preliminary support of TS-TGL/KBT4 power down operation. 2012-04-16 14:30:42 +00:00
pgoyette
d61d23dba4 Now that we have amdnb_misc for attaching amdtemp, revert pchb.c revisions
1.27 and 1.32.  This will unbreak the build.

XXX The amdtemp device currently does not seem to provide correct sensor
    values.

XXX The amdnb_misc device does not currently have a rescan capability, so
    the amdtemp module will not instantiate any devices (PR kern/45268
    reappears).

XXX The agp attachment at the same pci device and function (which was
    the motivation for attaching amdtemp at pchb) probably ought to also
    be moved to attach at amdnb_miscbus.
2012-04-16 04:57:42 +00:00
bsh
baf596cf75 add base addresses for i.MX51 IPU registers.
from Kinichi Hashimoto.
2012-04-15 16:34:11 +00:00
bsh
f9b6ec2bd2 set same values to IOMUX registers as the linux kernel does.
make it a bit simpler. (we can treat MUX and PAD registers in the same
way here)
2012-04-15 10:34:14 +00:00
bsh
33c228ef9d initialize one more pin for USB Host1. 2012-04-15 10:19:47 +00:00
bsh
885e65883d delete many definitions like MUX_PIN_foo.
use MUX_PIN(foo) instead.
2012-04-15 10:16:37 +00:00
bsh
38bb79c98b add HVE bit definition in iomux PAD_CTL register. 2012-04-15 10:09:58 +00:00
bsh
2768fb99c7 delete unused reference.
delete trailing whitespace, and NKF.
2012-04-15 09:51:31 +00:00
bsh
0dbb9f78f8 compile netwalker kernel with -mcpu=cortex-a8 2012-04-15 08:57:16 +00:00
bsh
322b46f881 fix comment.
remove trailing whitespace.
2012-04-15 08:17:42 +00:00
christos
86c0819aee Fix check_mcontext for PK_32 binaries. Makes gdb work for i386 binaries on
amd64.
2012-04-15 00:34:09 +00:00
skrll
d2c7e180a1 Sync with the following OpenBSD changes, but do the shared interrupt
reporting differently.  Each cpu and device interrupt gets its own
counter.

revision 1.14
Fix counting of interrupts for devices that attach to elroy(4).  Shared
interrupts would be counted double, once for the interrupting device and
once for the device at the head of the chain.  The handlers would run properly
though.  Avoid this by giving each device its own interrupt counter instead
of using the counter provided by the generic interrupt handling code for the
head of the chain.

revision 1.13
Stop calling shared interrupt handlers as soon as one of them return 1
(positive interrupt was for me), like we do on other architectures.
This is done here, at the elroy(4) driver level, since this is where shared
PCI interrupts are handled.  We could do something similar for dino(4) but
this optimization is probably not very relevant there.
2012-04-14 10:43:19 +00:00
skrll
4a227ae20e Whitespace. 2012-04-14 06:04:34 +00:00
cegger
c42e0053b0 Replace amdtempbus with amdnb_miscbus.
This allows us to have independent drivers on the same device (northbridge f3)
each coming with a certain functionality/feature.
This way we do not need to mess with amdtemp(4) to utilize other features.
2012-04-13 13:11:16 +00:00
cegger
5828a00eed - support AMD Family15h
- deregister pmf on detach
2012-04-13 12:14:41 +00:00
mrg
18f8e19f58 don't bother whining about bogusintr on zs. 2012-04-13 06:26:04 +00:00
macallan
7111124bac - don't mess with more than 256 colour map entries
- don't assume that wscons assumes BGR
- while there enable alpha
2012-04-12 19:11:49 +00:00
macallan
c6ba58b388 don't assume that wscons assumes BGR ordering and request it explicitly 2012-04-12 19:09:18 +00:00
christos
a6e1a4d2ea Add apple partition recognition. 2012-04-10 23:59:47 +00:00
matt
1f81b2fdc7 Don't use global asm for __clang__ 2012-04-10 16:57:50 +00:00
jruoho
0addcacfb8 Now that 6.0 is branched, remove the ACPI-related sysctl nodes in machdep. 2012-04-10 13:48:24 +00:00
rkujawa
5317f873b5 Workaround for the fake X-Surf autoconfig entry, created by the Deneb firmware v11. 2012-04-09 19:55:00 +00:00
kiyohara
ac5d1b9f81 + Fix panic() in cardbus_mapreg_map(). powerpc's bus-space uses extent(9).
obs405 calls rbus_new_root_delegate() instead of rbus_new_root_share().
+ Remove TABs from TAB-only-lines.
2012-04-09 14:44:01 +00:00
nisimura
84b214f158 The processor ExtClk value of Kurobox/T4 is comfirmed as 32768000. 2012-04-09 14:02:04 +00:00
nisimura
b6b259ed7f Change to use "kurot4" product name for Terastation TGL and
KuroBox/T4.
2012-04-09 13:26:37 +00:00