Commit Graph

50411 Commits

Author SHA1 Message Date
snj cff5cadd85 Drop 3rd and 4th clauses. Approved by all copyright holders:
joff and Embedtronics Oy's owners (Jukka Marin and Sami Kantoluoto).
2009-10-23 06:53:12 +00:00
snj 264f5ccd6e Drop 3rd and 4th clauses. Approved by cl@ and Keir Fraser (copyright
holders).
2009-10-23 05:10:48 +00:00
snj ce8b7309aa Follow revision 1.28 in OpenBSD: remove ad clause. 2009-10-23 03:28:09 +00:00
snj 85791bacd0 Follow revision 1.8 in OpenBSD: remove ad clause. 2009-10-23 03:25:36 +00:00
snj 0d31d3264f Remove 3rd and 4th clauses. OK cl@ (copyright holder). 2009-10-23 02:32:33 +00:00
snj 7e82f68c7b Switch to a 2 clause license. Approved by joff@ (copyright holder). 2009-10-23 00:39:29 +00:00
rmind 33963b1448 Avoid #ifndef __NO_CPU_LWP_FREE, only ia64 is missing cpu_lwp_free
routines and it can/should provide stubs.
2009-10-22 22:28:57 +00:00
rmind 10758cb0f9 Simplify pmap_remove() a little by avoiding pmap_do_remove() layer, since
possibility to skip wired mappings is not needed anymore.  Apart from that,
no functional differences are intended.
2009-10-22 19:50:55 +00:00
snj da0d530a06 Drop 3rd and 4th clauses. OK gwr@ drochner@ (copyright holders). 2009-10-22 19:10:42 +00:00
snj 78f74058b2 Drop 3rd and 4th clauses (except on files where copyright is shared
with UC, in which case only the ad clause has been removed). Approved
by mhitch@ (copyright holder).
2009-10-21 23:53:38 +00:00
snj febb7cce65 Drop 3rd and 4th clauses. Approved by gwr@ (copyright holder). 2009-10-21 23:12:09 +00:00
snj 0c15144ae1 Drop 3rd and 4th clauses. Approved by thomas@ (copyright holder). 2009-10-21 21:57:39 +00:00
snj 7f108050aa Drop 3rd and 4th clause. Approved by leo@ and thomas@ (copyright holders). 2009-10-21 21:50:14 +00:00
rmind 40cf6f3659 Remove uarea swap-out functionality:
- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.
2009-10-21 21:11:57 +00:00
rmind d4b6de6fb5 Drop 3rd and 4th clauses from Ichiro FUKUHARA's license.
Reviewed and approved by ichiro@ (copyright holder).

(this single file was missed in previous commit)
2009-10-21 16:16:24 +00:00
snj 176f5f951d Drop 3rd and 4th clauses. OK jmcneill (copyright holder). 2009-10-21 16:06:59 +00:00
rmind f95af63371 Drop 3rd and 4th clauses from Ichiro FUKUHARA's license.
Reviewed and approved by ichiro@ (copyright holder).
2009-10-21 14:15:50 +00:00
snj 7a9dfdb753 Remove 3rd and 4th clauses. OK'd by Tohru Nishimura and Reinoud Zandijk
(copyright holders).
2009-10-21 00:30:43 +00:00
snj 4988388746 Remove 3rd and 4th clause on Leo Weppelman's license. OK leo@. 2009-10-20 19:10:09 +00:00
kardel c3263d7b0a update copyright to 2 clause version of the NetBSD Foundation 2009-10-20 17:29:06 +00:00
jmcneill ec03d6f02a trim some fat, don't scan disklabels on non-HD disks 2009-10-20 14:49:03 +00:00
jmcneill 441aa3df66 trim some fat 2009-10-20 14:47:33 +00:00
cegger d3e9e93ad6 Use aprint_* when attaching. While here, unwrap some lines. 2009-10-20 10:34:21 +00:00
rmind 993cb03302 Drop 3rd and 4th clauses from David Young's license.
Reviewed and approved by dyoung@ (copyright holder).
2009-10-19 23:19:37 +00:00
bouyer 6d07b400dc Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
for the booring work !
2009-10-19 18:41:07 +00:00
snj 4968c04d96 Move Eduardo Horvath's license to 2 clause. OK eeh@. 2009-10-19 18:12:37 +00:00
tsutsui 437ae37c1d Switch the atari port to the common m68k/m68k/pmap_motorola.c, at last. 2009-10-19 13:40:28 +00:00
snj 065c5ae0d0 Move Matthias Pfaller's files to 2-clause license. OK matthias@. 2009-10-18 18:13:59 +00:00
tsutsui 1bc6608553 Don't try to read disklabel to check FS_RAID on floppy boot since
reopening floppy could cause Data Access Exception later.
Fixes PR port-sparc/42186, ok'ed by mrg@.
2009-10-18 06:24:21 +00:00
nakayama 77df506ed7 Wrap unused code with #if 0 which is called from #if 0'ed code. 2009-10-17 20:03:06 +00:00
mlelstv e33abf1ab0 Add a serial console mode for the bootblock. In this mode all console
output will be echoed to the serial port and input will be accepted
from either keyboard or serial port. The bootblock serial console is
limited to 9600bps 8N1 as it uses the AmigaOS kernel debug routines.

To enable this you have to uncomment the SERCONSOLE define in
boot/Makefile.

Also note that the handling of a serial console in the kernel is
independent of this, you need to a build a kernel with 'options
SERCONSOLE'.
2009-10-17 11:18:17 +00:00
nakayama 33ec454f0c Merge want_ast check in userret() into trap handler, and repeat
preempt() call while want_resched is true.  While there remove
unnecessary #if 1.

This should fix a performance degradation of disk I/O on heavy load.
2009-10-17 08:50:49 +00:00
cegger f94b517224 Family 10h Errata #319: Attach on Family10h cpu series which have it fixed. 2009-10-16 12:05:19 +00:00
phx 89bf9948e9 Fixed typos in zssc_dump() (DEBUG). 2009-10-16 10:07:16 +00:00
phx be3b6697b5 Fixed typo in DEBUG: atysc -> atzsc 2009-10-16 09:36:35 +00:00
bouyer e4821a51fc Don't pass a NULL arg to DIOCCACHESYNC, sd(4) dereferences it.
Pass a pointer to a int initialized to 1, so that a DIOCCACHESYNC will be
forced on sd(4).
Should fix dom0 panic reported by Sarton O'Brien.
2009-10-14 18:54:00 +00:00
pooka 5e8ba6d465 protect against multi-inclusion 2009-10-13 22:41:57 +00:00
uwe c9c7f30b6e Fix inline asm for tas.b. "=m" is not restrictive enough and gcc may
decide to use addressing modes that tas.b does not support.  'V' is
advertised to be "non-offsettable" subset of 'm' but there's a bug in
gcc that prevents "=V" from working.

When in doubt use brute force, so pass lock pointer as "r" input and
declare "memory" as clobbered.

Landisk kernel diff is 5 instructions (register choice for lock
address in __cpu_simple_lock_try).

sys/dev/raidframe/rf_copyback.c - where old __asm triggered incorrect code
- successfully compiles (as part of sys/rump/dev/lib/libraidframe).
2009-10-13 12:55:53 +00:00
mhitch 8d2f7e8644 Fix DEBUG build - pv_flags does not exist anymore. 2009-10-11 20:37:47 +00:00
bsh 0c0e7d064d add options COMPAT_50 to all evbarm boards. 2009-10-11 16:20:22 +00:00
mlelstv 688e4b57e6 AmigaOS console.device expects a character buffer, not a pointer to an int.
This fixes printf() output.
2009-10-11 10:00:10 +00:00
elad 2cb56be586 Add a (weak aliased) machdep_init() as a place to do machdep initialization
that can't happen as early as the other init functions as called from
cpu_startup() -- for example, register kauth(9) listeners.

Put unprivileged policy in the x86 code; used by i386, amd64, and xen.
2009-10-06 21:07:05 +00:00
rmind b619d660f4 Remove X86_IPI_WRITE_MSR (and msr_ipifuncs.c), replace all uses in drivers
with xc_broadcast().  AMD K8 PowerNow driver tested by <jakllsch>, thanks!

Closes PR/37665.
2009-10-05 23:59:30 +00:00
dyoung e30873664a Improve readability of trap() by extracting two subroutines,
trap_print() and check_dr0().
2009-10-05 19:04:14 +00:00
mhitch 7e4eb61e65 IPI interrupts occur above IPL_VM, so using IPL_VM in for the tlb shootdown
queue mutex doesn't work very well.  I get various deadlocks and corrupted
queue entries.  Change to IPL_SCHED [IPL_CLOCK] to block IPI interrupts
while the cpu is mucking with the shootdown queue.
2009-10-04 17:00:31 +00:00
jmcneill 74436af5d8 add dummy opt_via_c7temp.h, spotted by Andreas Gustafsson. 2009-10-03 20:56:39 +00:00
jmcneill d0d1a0e6c3 Enable viapcib 2009-10-03 13:37:27 +00:00
jmcneill 350f3d2e59 match VT8237A 2009-10-02 21:27:45 +00:00
jmcneill ce1935e8e6 Add and enable options VIA_C7TEMP 2009-10-02 18:50:49 +00:00
jmcneill 574c128daa Add support for VIA C7 temperature sensors (options VIA_C7TEMP) 2009-10-02 18:50:03 +00:00
jmcneill 23e8227b7c PR# kern/42139: ACPI WMI: new driver
Import acpiwmi(4) from Jukka Ruohonen. From the PR:

Attached is a driver that implements ACPI WMI API:

http://www.microsoft.com/whdc/system/pnppwr/wmi/wmi-acpi.mspx

The WMI is used to provide a generic interface for OEMs to use certain
platform/laptop-specific additions to the standard ACPI in a somewhat
portable way. These can be hotkeys for additional buttons, different event
handlers (wireless kill switch, lid switch, etc.), and so on. At least HP
and Acer use it by default nowadays.

The benefit of this interface would be portability. For an example, instead
of hpqlb(4) that works only with certain HP models, we could have a generic
HP WMI-driver that should work in theory across all HP laptops. On many new
laptops WMI may also be the only way to access laptop/manufacturer-specific
features.
2009-10-02 16:47:52 +00:00
nakayama d61a38f649 Port lom(4) driver for LOMlite lights out management hardware monitor
and watchdog timer from OpenBSD.

It supports the LOMlite found on Sun Netra t1 and the LOMlite2 found
on Sun Netra T1/X1 and Sun Fire V100/V120.
2009-10-02 15:09:16 +00:00
jmcneill f986f9682c Use the TSC and current multiplier to calculate bus clock on VIA C7 Esther.
Probably needed for all C7 and Nano processors, but to be safe only use
this alternate method on Esther for now.

Now est on my C7-M 1.6GHz properly reports frequencies from 1600 to 400,
instead of 2133 to 533.
2009-10-02 15:05:42 +00:00
skrll 980b1066f3 It's -z max-page-size, not -z maxpagesize. 2009-10-02 10:14:20 +00:00
skrll 1521a0436b MAXPAGESIZE got bumped to 0x200000. Use -z maxpagesize=0x100000 until
someone(tm) decides that kernels should have that alignment, etc.
2009-10-01 09:15:19 +00:00
skrll a5f3419efe Fix up mwait/monitor now that gas has been fixed. 2009-10-01 09:13:54 +00:00
jmcneill c05491c171 Need sdmmc* at wb? 2009-09-30 22:19:00 +00:00
jmcneill e7a9e26c28 wss@acpi doesn't make much sense on amd64, so remove it 2009-09-30 20:49:07 +00:00
jmcneill beb3879990 add and enable wb(4) 2009-09-30 20:47:09 +00:00
pooka c33877d5b2 remove the tempting VNODE_LOCKDEBUG option 2009-09-29 11:58:18 +00:00
bouyer c709e72357 Don't disestablish a soft interrupt which has not been established. 2009-09-27 19:48:57 +00:00
jakllsch ff243da79f Make this build without gpio(4). 2009-09-27 18:27:01 +00:00
jakllsch bd5cb77445 gpio(4) support for Intel ICH southbridges.
Tested on Intel SS4200-E (ICH7), and Acorp 6A815EPD (ICH2) motherboards,
on amd64 and i386 ports respectively.

It should be noted that the majority of boards with ICH chips do not
expose the GPIO pins for off-board use.  For instance, aside from the
three exposed-on-a-header pins on the 6A815EPD, another pin is also
used to control write protect on the FWH.  The SS4200 exposes the GPIO
on a header that connects to the 10 LEDs on the front panel, as well
as a tact switch on the back panel.
2009-09-27 17:55:31 +00:00
tsutsui be5da0aabb Remove commented out and nonexistent cgthree at obio stuff.
SPARCclassic has onboard CG3 but it's internally connected via SBus,
and there is no info about sun4m machines which actually require
cgthree at obio attachment. Info from jdc@.
2009-09-27 13:27:44 +00:00
tsutsui 6d12c25806 +jme* at pci? 2009-09-27 12:53:46 +00:00
jmcneill 2d504df7b5 add viadrm at pci 2009-09-27 12:41:05 +00:00
tsutsui 4ee6b34006 Replace shutdownhook_establish(9) with pmf_device_register1(9).
Tested on JC94.
2009-09-27 05:29:20 +00:00
tsutsui 7ec1a2d842 Make local functions static. 2009-09-26 16:07:51 +00:00
tsutsui 165ffb1ad0 Replace shutdownhook_establish(9) with pmf_device_register1(9).
Tested on 3/80.
2009-09-26 16:03:45 +00:00
tsutsui 2b46e6e3c6 Make local functions static. 2009-09-26 15:49:45 +00:00
tsutsui 2036298c54 Replace shutdownhook_establish(9) with pmf_device_register1(9).
Compile test only, but similar to mesh.c.
2009-09-26 15:46:48 +00:00
tsutsui d9d27ba4b2 Replace shutdownhook_establish(9) with pmf_device_register1(9).
Tested on Apus2000.
2009-09-26 15:45:28 +00:00
tsutsui cc35c23e68 Fix a botch on device_t/softc split:
Don't forget to set sc->sc_dev.
2009-09-26 15:40:02 +00:00
skrll dc89c66367 Deal with the following change to ld:
* The default output section LMA has changed for allocatable sections from
  being equal to VMA, to keeping the difference between LMA and VMA the same as
  the previous output section in the same region.  This is a more useful
  default when using overlays and other cases where you specify an LMA
  differing from the VMA for some sections.
2009-09-26 07:29:55 +00:00
bouyer fc24e4743d Announce feature-rx-copy and feature-rx-flip.
Add support for request-rx-copy. Tested with a Debian lenny install.
Should fix PR port-xen/40650
2009-09-25 23:11:57 +00:00
mlelstv f4d53c7199 Ensure FP state is reset, if FP is used in a signal handler.
Fixes PR kern/39299 for 32bit code.
2009-09-25 13:56:32 +00:00
mlelstv aef222ecba The FPU Tag word is a 16bit register, in FPU (387) mode it
defines 2-bit tags for each FPU data register, in MMX mode it
defines 1-bit tags for each data register. The single bit
tags are stored in the lower 8 bits and thus in the first byte
of the save frame.

See amd64/include/fpu.h and the IA-32 Software Developer's manual Vol 2A.
2009-09-25 13:51:27 +00:00
he 3b5f619bfc Use .PATH.S instead of giving a source file with fully qualified path.
This should avoid the sun3 port contaminating its source tree during build
with .d and .o files corresponding to ctrlsp.S.
2009-09-25 11:19:35 +00:00
tsutsui 5d2638c2b1 Replace shutdownhook_establish(9) (which was added by me)
with pmf_device_register1(9).
2009-09-24 14:09:18 +00:00
bouyer db95bc7f01 xbdback: implement and publish "feature-flush-cache".
xbd: if feature-flush-cache is present, use it for DIOCCACHESYNC.
 If not present, make DIOCCACHESYNC return EOPNOTSUPP and warn on
 first call.
Should improve WAPBL reliability of Xen guests on a NetBSD dom0.
Unfortunably not all linux guests seems to support this feature, and using
feature-write-barrier would require a B_BARRIER flag in the buffer.
2009-09-23 17:48:55 +00:00
tsutsui c77366b578 +cs* at isapnp? 2009-09-22 16:46:15 +00:00
tsutsui 7d94469845 - use device_t and cfdriver_t
- wrap long function decls
2009-09-22 15:04:41 +00:00
tsutsui 3b0a685f2b Split device_t/softc. Tested only on cs at ofisa on shark. 2009-09-22 14:55:19 +00:00
tsutsui 74b0667d3e Bump SYMTAB_SPACE. 2009-09-22 14:49:46 +00:00
tsutsui 72b646b74f Explicitly include <sys/exec_aout.h> for ZMAGIC etc. 2009-09-22 14:49:28 +00:00
cegger ee0f0893eb fix botch with merging in changes from x86/x86/cpu.c:
don't use wbinvd(). Xen flushes the cache for us.
This makes DomU boot again.
Spotted by bouyer@.
2009-09-22 13:59:42 +00:00
bouyer bd2f090e7c Allow a xbd to be detached from the domU (e.g. at shutdown). Patch tested
and adjusted by David Young, discussed on port-xen@ early august.
2009-09-21 21:59:30 +00:00
macallan b81d1cca71 set is_console even if we don't have any fb_info so other console drivers
than genfb have a chance of working.
Tested with radeonfb which works fine with an RV280
TODO: figure out how to deal with more than one PCI_CLASS_DISPLAY device in
      a halfway sane manner
2009-09-21 13:23:43 +00:00
tsutsui 102f04400c - use device_t and cfdriver_t
- use device_private() and device_xname()
- use proper types or variables for device_t/softc
2009-09-20 16:18:21 +00:00
christos 68b7139cf2 add toshide 2009-09-20 01:14:31 +00:00
tsutsui a616b75df3 Split device_t/softc.
Tested on TME emulating SS2.

XXX: bwtwo at obmem on TME emulating sun2 didn't match and cannot test
2009-09-19 04:52:44 +00:00
mhitch 298c91975c Explicitly include sys/exec_aout.h. 2009-09-18 21:40:09 +00:00
dyoung 5cc26b1024 As Jonathan Kollasch points out, elansc_attach() does not actually
use gba after filling it out.  Delete it.
2009-09-17 20:21:54 +00:00
tsutsui 12ad76b18c Remove struct sbusdev and related functions sbus_establish() and sbusreset().
They are derived from 4.4BSD/sparc and have been there since initial import
of NetBSD/sparc in 1993, but the struct sbusdev is almost unused for years,
nothing calls sbusreset(), and all (*sd->sd_reset)() functions look bogus.

Suggested by mrg@ and martin@, and tested on SS1+ and SS20.
2009-09-17 16:28:12 +00:00
bsh 87aae92eeb fix a typo of register bit name. 2009-09-17 16:13:32 +00:00
tsutsui 41559777ac Use device_t, cfdriver_t, device_private(), device_xname(),
and appropriate types and variables for device_t/softc.
2009-09-17 12:38:11 +00:00
mlelstv 23ab96a36b Allow for 'options ACPI_DEBUG' by providing module declarations
and using memory allocation macros instead of calling AcpiOs* stubs
directly.
2009-09-16 10:47:54 +00:00
tsutsui 16c0f8385d Use device_private(), proper types or variables for device_t and softc.
(not yet split though)

No crash on gxemul emulating hpcmips mobilepro.
2009-09-14 13:41:15 +00:00
rmind d1e070a421 Add COMPAT_50 for MALTA. 2009-09-14 12:52:20 +00:00
tsutsui 5770fb4ee0 u_intNN_t -> uintNN_t 2009-09-14 12:49:33 +00:00
jmcneill 1ea984dc79 Don't commit the selected VBE mode until the loader is past the point of
no return; need to stick in text mode as long as possible since libsa does
not include a rasops library. While here, add the 'vesa' command to pxeboot
to mirror biosboot behaviour.
2009-09-14 11:56:27 +00:00
tsutsui cbc3734a99 Enable options IPKDB. 2009-09-14 11:38:29 +00:00
tsutsui f52132ce21 Make this compile. From elad@. 2009-09-14 11:37:36 +00:00
jmcneill 1b3357e5de Don't treat timeouts or the return key as an invalid choice; spotted by
Andreas Gustafsson.
2009-09-14 10:42:42 +00:00
mhitch e851d39acd Add support for booting off a couple of common RAID adapters found on
several models of alpha systems: mlx [Mylex DAC060] and iop [I2O].
Addresses PR #25829.
2009-09-14 02:46:29 +00:00
mhitch a25d763f88 Add the I2O iop controller, as used in the ES40 and ES45. 2009-09-14 02:28:22 +00:00
mhitch 3ebe8c5833 Switch the amiga to the common m68k/m68k/pmap_motorola.c (Finally!!). 2009-09-14 02:23:05 +00:00
mhitch bd24936ebd Not understanding what vax_mfpr_get_counter() was doing, my fix for
backwards time was incorrect, and actually disabled the use of mfpr for
timecounters.  The intent was to emulate a 32 bit counter using the
hardclock_ticks from the clock interrupt and the contents of the
Interval Counter register.  The problem with that was when the ICR
wrapped, but the clock interrupt was blocked resulted in an incorrect
count.  Work around this by keeping track of the previous ICR value
and hardclock_ticks to ensure the 32 bit counter doesn't go backwards.
Also, the ICR runs from -10000 to -1, so adjust the value when reading it.
Now mfpr works quit nicely on my 4000/90.
2009-09-14 02:19:15 +00:00
jmcneill df6bdc8be4 If the menuformat is not letter, do not allow letter keys to be aliases
for number keys. snj@ often overshoots the spacebar in a panic and
accidentally hits 'b' instead, which makes the loader boot item '2'.
Can't fix snj@, so fix the boot loader instead.
2009-09-13 23:53:36 +00:00
jmcneill 891bf245b9 Make the 'dev' command print out a list of known boot devices based on
information from the BIOS in addition to the currently selected default
partition. Handy when you don't know where to boot from. Here's a demo:

  type "?" or "help" for help.
  > dev
  disk hd0 size 3815 MB
    hd0a(4.2BSD) hd0b(swap)
  disk cd0
    cd0a(unknown)
  default hd0a
  >
2009-09-13 22:45:27 +00:00
jmcneill d2a59733be kmod improvements
- unless otherwise specified, modules are now loaded from the same device
   as the kernel ('load miniroot' now implies 'load tftp:miniroot' if the
   boot command is 'boot tftp:netbsd')
 - the module name -> path expansion now works when a device prefix: is
   specified ('load tftp:miniroot' now works)
 - if the module name has been expanded to a path, print that path when
   loading the module rather than the symbolic name
 - only print an error in module_open if both the expanded path and the
   raw path fail to open
2009-09-13 18:13:37 +00:00
tsutsui 5113172f58 Add MI and ISA gpib(4) stuff. (compile test only) 2009-09-12 18:53:22 +00:00
tsutsui bc210dec04 +options RTSOCK_DEBUG 2009-09-12 18:09:47 +00:00
phx 3bef245803 Make disklabel.h from amiga and amigappc include the MI sys/disklabel_rdb.h.
amiga/amiga/adosglue.h was deleted and moved into sys_disklabel_rdb.h, as both
are always needed together (disksubr.c and ofppc/stand/ofwboot/rdb.c).
2009-09-12 09:18:42 +00:00
phx a1fee67004 Handle the situation of a wrapped interval counter, while the hardclock()
interrupt was not yet executed to update the hardclock_ticks variable.
2009-09-11 19:43:08 +00:00
phx fbc94dd682 Reverted last change after discussion with the author, Michael L. Hitch:
http://mail-index.netbsd.org/port-amiga/2009/08/14/msg007164.html
We have a full 32-bit counter, so the masking is not needed.
2009-09-11 13:11:15 +00:00
phx ad12935328 Added support for RDB partitions.
Moved MBR parition code out of ofdev.c into mbr.c.
Tested on Pegasos2 (RDB and MBR) and RS6000.
2009-09-11 12:00:12 +00:00
mhitch 7b90090350 Alpha will size the mutex structure in pmap_tlb_shootdown_q to 16 bytes.
Change the command and pad accordingly;  now pmap_tlb_shootdown_q entries
really are cache-aligned.
2009-09-10 22:27:11 +00:00
mhitch 8c83d5056c Now that secondary cpus are added the cpu_info list earlier, attempt to
send pmap tlb shootdowns to them cause the shootdown job queue to fill up,
but since the cpus aren't running yet, no IPIs get sent.  When the job
queue is full, the bit mask of cpus to send the IPI to is not set and no
shootdown IPI ever gets sent after the cpu is marked running.  Always
set the cpumask even when the queue is full.  Now I get shootdown ipis
on all the secondary cpus.
2009-09-10 21:36:39 +00:00
tsutsui d519f74ad6 Make sure to initialize cpus[0] which will also be used as cpuinfo
for sun4 and sun4c, not only for sun4m. Okay'ed by mrg@.
2009-09-10 14:12:02 +00:00
jmcneill 68aba25e22 Switch on hdaudio(4) 2009-09-07 22:59:09 +00:00
jmcneill ad5f1845fb Refer to hdaudio as 'High Definition Audio', not
'Intel High Definition Audio' as many vendors implement the HD audio spec.
2009-09-07 10:40:54 +00:00
mhitch 66b730fd58 There's now some per-cpu initialization that occurs before the secondary
cpus are told to begin running.  Since the seconedary cpus weren't being
added to the cpu_info list until then, that initialization wasn't being
done and resulted in crashes on the secondary cpus.  Add the secondary
cpus to the cpu_info_list after they've been started (but waiting to be
told to start running).  This fixes the problem specifically stated in
PR port-alpha/41106.  MP alphas will now at least boot and begin running,
but will eventually crash in various ways later.
2009-09-06 18:06:24 +00:00
sborrill b88195cfa1 hdaudio(4) is a standards-compliant driver for Intel High Definition Audio.
It will replace azalia(4) after testing.

To use, comment out azalia in your kernel configuration and uncomment the
hdaudio and hdafg lines so it reads:

# Intel High Definition Audio
hdaudio*	at pci? dev ? function ?
hdafg*		at hdaudiobus?

You should also:
cd /dev
sh MAKEDEV audio
2009-09-06 17:25:55 +00:00
bsh 742947bc03 correct the initial value of interrupt masks. 0 is to disable.
This fixes stray interrupt from LCD controller when lcd driver is not configured in the kernel.
2009-09-05 17:40:35 +00:00
jmcneill 41b863f675 Fix a bug where mapping the very end of iomem accidentally returns an
address in the ISA hole (because addr+size calculations wrap to 0). Fixes
ohci on VirtualPC 7 for Mac, which places OHCI at base address 0xfffff000
size 0x1000.
2009-09-03 23:25:04 +00:00
tsutsui 767b154f7a Use a proper local variable. 2009-09-02 17:22:53 +00:00
joerg 292e598a25 Be a bit more noisy by telling the user VGA_POST is missing in the
kernel config when trying machdep.acpi_vbios_reset=2.
2009-09-02 15:42:31 +00:00
joerg 12cda29892 Don't allow machdep.acpi_vbios_reset=2 if option VGA_POST is missing. 2009-09-02 15:25:07 +00:00
tsutsui 0f7a15058c Invert logic around nested pmf(9) registrations for readability. 2009-09-02 10:43:24 +00:00
tsutsui 531b631d68 Some backends may use ncr53c9x_abort(), so remove static declaration from
the function and explicitly declare it in ncr53c9xvar.h.  Noticed by he@.
2009-09-02 10:34:04 +00:00
skrll dd9009a209 More sections to remove when doing ELF->a.out conversion. 2009-09-02 07:48:50 +00:00
tsutsui 943109cbb1 Check a return value of pmf_device_register1(9) and also call
pmf_class_network_register(9).
2009-09-01 17:10:42 +00:00
tsutsui a2ff563552 Replace shutdownhook_establish(9) with pmf_device_register1(9). 2009-09-01 15:19:20 +00:00
tsutsui 0b880aebb9 Replace shutdownhook_establish(9) with pmf_device_register1(9).
Also check howto to print appropriate "Rebooting..." or "Halting..." messages.
2009-08-31 15:18:55 +00:00
dyoung 58692c6275 Compute tags for sys/external/intel-public/acpica/dist/ instead of
for sys/dist/acpica/.
2009-08-30 02:00:56 +00:00
macallan a11c6c1d62 use vcons_replay_msgbuf() 2009-08-27 20:52:18 +00:00
bouyer 559c33c2d0 Do not try to get the faulting instruction if eip is 0.
This makes 'trace' work when the kernel paniced because it jumped to
a NULL function pointer.
2009-08-26 23:17:03 +00:00
jmcneill c07ee161fd int 15h/AH=86h (WAIT) doesn't work properly on all hardware and emulators, so
for the countdown use the more coarsely grained sleep implementation based
on int 1ah/AH=00h (GET SYSTEM TIME).

ok ad@
2009-08-26 13:28:48 +00:00
elad df48d92f6c Build NiLFS(2). 2009-08-26 03:39:16 +00:00
thorpej b5fd5d5727 Minor tweak to the pv_table management in the Hibler-derived m68k pmaps:
The head of the list is now a pv_header, which contains the first pv_entry
as well as a 16-bit attributes field (replaces the pmap_attributes array
plus the pv_entry::pv_flags field) as a 16-bit count of caller-specified
cache-inhibited mappings.

Tested on hp300 (shared pmap_motorola.c), changes to atari and amiga copies
are purely mechanical.
2009-08-26 00:30:01 +00:00
thorpej a4a924e263 Make this compile again (64-bit dev_t printf format). 2009-08-26 00:20:20 +00:00
jmcneill 0688029724 Don't reference genfb unless NGENFB > 0 2009-08-24 23:48:57 +00:00
jmcneill dd324f8480 Add definition for WAKEUP_vesa_modenum 2009-08-24 22:06:50 +00:00
tsutsui 360f84f6f4 KNF, ANSIfy etc. 2009-08-24 13:04:37 +00:00
tsutsui eb60dd4479 Use __arraycount(). 2009-08-24 13:03:43 +00:00
jmcneill cf08ac976b Bump bootloader version for VBE changes. 2009-08-24 12:42:18 +00:00
jmcneill 31ca9984a5 PR# port-i386/41929: genfb and machdep.acpi_vbios_reset=2 interaction
When acpi_vbios_reset=2, invoke vga_post_call followed by vga_post_set_mode
in the genfb pmf resume handler.
2009-08-24 11:35:27 +00:00
jmcneill 8984ef0dcd Add vga_post_set_vbe for setting video mode. 2009-08-24 11:33:49 +00:00
jmcneill f98f243e5f Paranoia; restore the genfb colour map on resume. 2009-08-24 11:04:29 +00:00
jmcneill e1f4092924 Ensure that the VBE mode is only restored when machdep.acpi_vbios_reset=1 2009-08-24 10:16:12 +00:00
jmcneill b585cf85b2 Pass the VBE mode number from the bootloader to the kernel, and then
make the ACPI wakecode aware of it. Restore the desired VBE mode on resume
when acpi_vbios_reset=1, so suspend/resume with genfb console will work.
2009-08-24 02:15:46 +00:00
ahoka a22a237823 Typo fix: Mhz -> MHz
No functional change intended.
2009-08-23 16:15:45 +00:00
ahoka 8e541eb4b2 Typo fix: Mhz -> MHz
No functional change intended.
2009-08-23 16:02:50 +00:00
ahoka f7b2709f8a Fix typo: Mhz -> MHz
No functional change at all intended.
2009-08-23 15:58:39 +00:00
jmcneill 05d8709153 Save a line of dmesg by printing the vendor/product info on the same line
as the locators.
2009-08-23 15:42:51 +00:00
jmcneill 39752cfc4d Save a line of dmesg by printing the vendor/product info on the same line
as the locators.
2009-08-23 15:37:51 +00:00
tsutsui 804b431ea3 Use rlphy(4) instead of ukphy(4) for BbA.
---
rtk0 at pci0 dev 0 function 0: SEGA Broadband Adapter (rev. 0x10)
rtk0: interrupting at SH4 IRL 11
rtk0: Ethernet address 00:d0:f1:03:69:68
rlphy0 at rtk0 phy 7: Realtek internal PHY
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
2009-08-23 14:38:43 +00:00
tsutsui e6821b0d4b Add an empty bus_space_mmap(9) function as temporary workaround
for MI pci(4) mmap function in sys/dev/pci/pci_usrreq.c.

XXX: no bus_space_subregion(9) for g2bus.
2009-08-23 14:28:09 +00:00
tsutsui 8c2e6a929c Use proper pointer types and names rather than casts for readability. 2009-08-23 13:46:48 +00:00
jmcneill 663409f171 PR# kern/39726: Soekris 5501-60 boot/bootxx 120 second delay
PR# port-i386/41162: A20 gate legacy hook cause long pxeboot delay on Soekris net5501

Remove calls to delay() before polling KBD registers in gateA20().
2009-08-23 12:31:05 +00:00
he f0886937ab We need an explicit include of <sys/exec_aout.h> here as well. 2009-08-23 08:51:56 +00:00
he 46ac4b2e55 Remove BOOT_AOUT here as well, mips no longer deals with a.out. 2009-08-23 08:32:22 +00:00
mrg 5401d28313 fix atari builds in two ways:
- isa_detach_hook() was missing a parameter name (hi dyoung!)
- PCI_CONF_SIZE -> PCI_CONFIG_SIZE; pcivar.h has a PCI_CONF_SIZE now (hi jak!)
2009-08-23 01:27:12 +00:00
he a05687c954 Remove BOOT_AOUT, since our mips ports no longer deal with a.out. 2009-08-22 23:08:01 +00:00
tsutsui 8c3b6bd439 wrap long lines, fix indent. 2009-08-22 18:26:42 +00:00
he bca1eed8b8 This one needs <sys/exec_aout.h>, so include it explicitly. 2009-08-22 10:02:21 +00:00
tsutsui cd34425832 Bump SYMTAB_SPACE. 2009-08-21 16:54:20 +00:00
thorpej 125abe92ed Use bus_dmamem_common. 2009-08-21 04:10:33 +00:00
thorpej cba1ce22e9 Use bus_dmamem_common. 2009-08-21 03:56:58 +00:00
thorpej bcc2485163 Use bus_dmamem_common. 2009-08-21 03:45:10 +00:00
thorpej 4f976b9bb1 Use bus_dmamem common. 2009-08-21 03:39:41 +00:00
skrll 98243f3753 Don't try and symbol set debug_stack_top from the common symbol
debug_stack_bottom. It's bogus and disallowed in new binutils.
2009-08-20 21:34:03 +00:00
matt 5902a47247 Add print format specifiers for {p,v}{addr,size}_t and register_t,
PRTx{P,V}{ADDR,SIZE} and PRTxREGISTER, respectively.
2009-08-20 21:31:49 +00:00
tsutsui 0228fe92d4 Rewrite binpatch(8) utility to add support for ELF binaries,
using implementation of old src/usr.sbin/mdsetimage sources
which supports misc executable formats without LGPL'ed libbfd.

No particular comments on port-atari@.

XXX1: amiga also has the similar utility in amiga/stand/binpatch
      but it has slightly different options.
XXX2: Is it worth to put this utility into MI src/usr.sbin to patch
      rtc_offset etc. in GENERIC kernel binaries in distribution?
2009-08-20 15:14:49 +00:00
skrll ec608b5760 Remove .ARM.attributes when converting from ELF to a.out. 2009-08-20 14:43:06 +00:00
dyoung dadc08813b Declare genppc_isa_detach_hook(). 2009-08-20 14:21:12 +00:00
he 38268154a7 Typo correction: it's isa_dmadestroy(), not isa_dma_destroy(), apparently. 2009-08-20 12:51:28 +00:00
tsutsui f3fa465d5d Add an empty bus_space_mmap(9) function as temporary workaround
for MI pci(4) mmap function in sys/dev/pci/pci_usrreq.c.
2009-08-20 11:50:11 +00:00
tsutsui 01dedfd62c Adjust attach message for failure path (found on gxemul). 2009-08-20 11:43:59 +00:00
cliff dd11e1aa7a when USPACE <= PAGE_SIZE, we don't have md_upte[] in struct mdlwp 2009-08-20 03:33:53 +00:00
macallan 45727432a7 call vcons_replay_msgbuf() when appropriate 2009-08-20 02:49:30 +00:00
cliff fcfabcc793 include mips/vmparam.h to get PAGE_SIZE 2009-08-20 01:33:39 +00:00
cliff 81f557cc4e if USPACE <= PAGE_SIZE then the (single) upage will be mapped in kseg0 or xphys and cpu_swapin is null func. 2009-08-20 01:33:04 +00:00
thorpej 071708f29f Use PMAP_ENABLE_PMAP_KMPAGE to enable PMAP_KMPAGE. We still want the bit
defined in the MI space, not in an MD header.
2009-08-19 23:54:33 +00:00
he a52ef0cc60 Another needing <sys/exec_aout.h>. 2009-08-19 23:46:52 +00:00
he 250f9cc973 One more file needing <sys/exec_aout.h>. 2009-08-19 19:39:05 +00:00
dyoung 22b3444c1e Define, and hook into the isa_chipset_tag_t, pcib_isa_detach_hook(). 2009-08-19 15:17:00 +00:00
dyoung d4b4af5dc0 Define, and hook into the isa_chipset_tag_t, isabr_detach_hook(). 2009-08-19 15:16:09 +00:00
dyoung 5619bf1cbb isa_detach_hook() needs two arguments, the first an isa_chipset_tag_t. 2009-08-19 15:14:59 +00:00
dyoung 73524f26ce Define, and hook into the isa_chipset_tag_t, pcib_isa_detach_hook(). 2009-08-19 15:13:56 +00:00
dyoung d500dccc4a Define, and hook into the isa_chipset_tag_t, mg_isa_detach_hook(). 2009-08-19 15:13:24 +00:00
dyoung fdeb7750f8 isa_detach_hook() needs two arguments, the first an isa_chipset_tag_t. 2009-08-19 15:11:22 +00:00
dyoung ab367b5fb7 (Re-)define isa_detach_hook(), and define isa_dmadestroy(). Update
some isa_chipset_tag_t->ic_detach_hook() definitions.
2009-08-19 15:09:56 +00:00
dyoung a1ac1a18e2 isa_detach_hook() needs two arguments, the first an isa_chipset_tag_t. 2009-08-19 15:04:27 +00:00
dyoung fc51180b89 genppc_isa_detach_hook() needs two arguments, the first an
isa_chipset_tag_t.
2009-08-19 15:02:47 +00:00
dyoung 72047fbc34 isa_detach_hook() needs two arguments, the first an isa_chipset_tag_t. 2009-08-19 15:00:23 +00:00
thorpej 1ed65faa16 Rationalize the definition of PMAP_KMPAGE. 2009-08-19 14:58:48 +00:00
dyoung 65d8a87204 Define genppc_isa_detach_hook() and isa_dmadestroy(). 2009-08-19 14:44:48 +00:00
dyoung bcefcac3f5 Define isa_detach_hook(). 2009-08-19 14:37:24 +00:00