Commit Graph

196569 Commits

Author SHA1 Message Date
tsutsui
834608599b - start.S
add a hazard nop so that prom_restart() works properly on MIPS1
  (it seems broken since initial revision and had been restarted by fault?)

- common.h
  export prom_restart()

- if_prom.c
  use prom_restart() instead of a direct PROM call (that should be equivalent)
2011-01-10 17:01:17 +00:00
jruoho
d76ace19e9 Bump iomem_ex_storage from 16 to 64. Based on analysis from joda@:
http://mail-index.netbsd.org/current-users/2010/10/01/msg014446.html

Discussed with mrg@ and jmcneill@.
2011-01-10 16:59:09 +00:00
njoly
67aa333d97 Do close fd 4 in cerror_64 testcase too. 2011-01-10 16:54:02 +00:00
tsutsui
2916fd3fce Add hazard nops required by MIPS1 in noreorder case.
(Umm, is it easier to remove noreorder and all BDslot insns?)
2011-01-10 16:43:29 +00:00
christos
880fe46bea remove clauses 3/4 2011-01-10 16:42:36 +00:00
tsutsui
157a6dd44c Indent instructions in BDslots. 2011-01-10 15:25:44 +00:00
tsutsui
e18f71c901 - specify .set noreorder to fill BDslots properly
- indent instructions in BDslots
2011-01-10 15:25:15 +00:00
cegger
e5bfaecf68 add missing break 2011-01-10 14:19:36 +00:00
pooka
58236b1f89 Don't use printf in a signal handler.
XXX: it would be nice if the deadlock with malloc were a little
more obvious, especially since gdb doesn't provide any clues unless
you compile libpthread with -g
2011-01-10 14:05:03 +00:00
christos
8ce31bfb43 namespace protect sigqueue and sigqueueinfo 2011-01-10 13:56:44 +00:00
phx
7a4bf1d4d4 Some new information and cleanup. 2011-01-10 13:45:57 +00:00
tsutsui
3ce80fd791 Use ether_aton_r() in sys/net/if_ethersubr.c instead of home grown copies.
Hint from ryo@.  Tested on IP32 mec(4).
2011-01-10 13:29:29 +00:00
jmcneill
5263a998f9 ppb_fix_pcix changes:
- rename to ppb_fix_pcie
- support version PCI-E 2.0
- print version and device/port type information
- use constants from pcireg.h instead of magic numbers

changes:

  ppb2 at pci0 dev 21 function 0: vendor 0x15ad product 0x07a0 (rev. 0x01)
  ppb2: unsupported PCI Express version

to:

  ppb2 at pci0 dev 21 function 0: vendor 0x15ad product 0x07a0 (rev. 0x01)
  ppb2: PCI Express 2.0 <Root Port of PCI-E Root Complex>
2011-01-10 12:23:21 +00:00
pooka
52fffe2163 g/c code which is unused in the server 2011-01-10 11:57:53 +00:00
tsutsui
7bb48ed5ab Don't call bus_dmamap_load(9) and bus_dmamap_sync(9) on command xfers
if (AT_READ|AT_WRITE) in ata_c->flags is set but ata_c->bcount is zero.
Someone actually tries to put such a command and it causes
DIAGNOSTIC panic in x86/bus_dma.c:_bus_dmamap_sync().
I think bus_dma(9) API itself may allow calls with mapsize==0
but there are many MD code that asserts offset>=mapsize or len==0.

The problem is reported and fix is confirmed by Takuro KUBOTA
with XEN DOM0 kernel (which has options DIAGNOSTIC).
2011-01-10 11:18:14 +00:00
cegger
e1f9b2b091 fix typo in ioctl definition 2011-01-10 11:13:03 +00:00
hannken
b89d0815aa Add layer_revoke() that adjusts the lower vnode use count to be at least as
high as the upper vnode count before passing down the VOP_REVOKE().

This way vclean() check for active (vp->v_usecount > 1) vnodes gets it right.

Should fix PR kern/43456.
2011-01-10 11:11:03 +00:00
jruoho
2304727048 Small clean-up in the match and attach functions. Namely, use the attach
args instead of referencing the global softc. No functional change.
2011-01-10 09:07:27 +00:00
wiz
e348791317 Sort errors, fix xref, don't xref itself. 2011-01-10 06:26:30 +00:00
christos
f64bac8a30 format SI_QUEUE properly. 2011-01-10 05:15:17 +00:00
christos
4e376e0546 make constant fit in 32 bits. 2011-01-10 05:15:00 +00:00
christos
2219491250 tests for sigqueue 2011-01-10 05:00:35 +00:00
christos
37cdb63310 test for sigqueue 2011-01-10 04:57:56 +00:00
christos
54f2e84c90 mention sigeueue 2011-01-10 04:43:48 +00:00
christos
fb4e945aa5 regen 2011-01-10 04:42:24 +00:00
christos
c5aa3a8776 add sigqueue 2011-01-10 04:41:27 +00:00
christos
108c0c1d23 add sigqueue/sigqueueinfo 2011-01-10 04:41:00 +00:00
christos
3d70c4b47c implement sigqueueinfo 2011-01-10 04:39:18 +00:00
christos
27d3c8f911 add sigqueue. 2011-01-10 04:38:37 +00:00
christos
f10f86e23c avoid unused variable warning. 2011-01-09 23:17:36 +00:00
phx
93f78709c7 fixed message: "is found" -> "was found" 2011-01-09 22:59:40 +00:00
wiz
50a0ea863a Fix It arguments. Also, let's assume it's 2011. 2011-01-09 22:21:55 +00:00
phx
e55a99a242 Support for RDB partitions in ofppc. 2011-01-09 21:28:18 +00:00
pooka
81131c3a38 Networked X11 clients have the annoying property that they need to
contact the X server.  Since most of the useful cases these days
are local, add a toggle which forwards PF_LOCAL sockets to the host
and all other protocol families to the rump kernel.

This makes an unmodified firefox work with a rump TCP/IP stack.
I'm sure someone will find applications for being able to run
multiple web browser profiles on one OS with each browser having
a different IP address in the same subnet ...
2011-01-09 19:56:33 +00:00
christos
e58abe368a document the new wapbl sysctls. 2011-01-09 16:55:59 +00:00
tsutsui
dd6122d404 Misc cleanup:
- use DPRINTF() style debug printf
- KNF and ANSIfy
- fix space/TAB botch
- remove extra newlines
2011-01-09 16:55:13 +00:00
tsutsui
eae5c43d18 Check if `enet' environment variable is available before reference to
get MAC address, and exit with appropriate warning messages if it isn't.
My 3MIN doesn't set the variable by default and netboot fails silently.
Also tidy up code that converts strings to enaddr.
2011-01-09 16:28:40 +00:00
jruoho
f640132d0b Convert aprint_error(9) to ACPI_DEBUG_PRINT. 2011-01-09 16:22:07 +00:00
jruoho
1b00e79140 Remove also rest of the ACPI_DEVICE_POWER checks. 2011-01-09 16:15:25 +00:00
jruoho
2cca4fb719 Fix wording. 2011-01-09 16:07:45 +00:00
jruoho
8f93d64e6b Use hw.acpi.sleep.state in the example. 2011-01-09 15:55:48 +00:00
jruoho
c381887798 It is not 2010 any more. 2011-01-09 15:46:40 +00:00
jruoho
930b9f2eb4 After consulting jmcneill@, set the state to D0 ("on") upon shutdown and
detach. A safety measure so that we do not accidentally fry anything.
2011-01-09 15:43:20 +00:00
jruoho
37f5de3ab8 Add a dummy-driver for ACPI fans. 2011-01-09 15:12:33 +00:00
jruoho
019ba6b902 Use acpi_power_register() for consistency. No functional change. 2011-01-09 14:58:10 +00:00
jruoho
1dee4ee9e2 We use config_defer(9) now when scanning power resource and wake-up
capabilities, so do not fail in acpi_power_register() if ACPI_DEVICE_POWER is
not set in struct acpi_devnode::ad_flags.
2011-01-09 14:56:06 +00:00
kardel
4ba751f5ad make ntp compile for MKINET6=no 2011-01-09 14:49:39 +00:00
is
ea61b20fd5 some more 8187B variants. From OpenBSD 2011-01-09 14:30:36 +00:00
pooka
2ec0087d6f Don't depend on malloc(0) returning non-NULL. 2011-01-09 14:15:06 +00:00
pooka
574a31f2de Shortcircuit remote 0-len copyin/out already in the kernel. 2011-01-09 14:12:37 +00:00