170606 Commits

Author SHA1 Message Date
njoly
e8822e5c92 When converting msqid_ds structure from/to netbsd32 for msgctl(2)
IPC_STAT/IPC_SET, do not try to fill private struct members
_msg_first/_msg_last which do not exists.
2008-06-02 14:12:08 +00:00
ad
ea8a92578d If vfork(), we want the LWP to run fast and on the same CPU
as its parent, so that it can reuse the VM context and cache
footprint on the local CPU.
2008-06-02 13:58:07 +00:00
wiz
db00c75860 Fix typo. 2008-06-02 13:44:52 +00:00
jmcneill
017a2ae6d4 Backout previous; causes a panic on attach/detach/reattach for some
unknown reason.
2008-06-02 13:38:56 +00:00
jmcneill
2134b4663b Halt streams before deleting them on detach. 2008-06-02 13:30:38 +00:00
jmcneill
5d6885cee8 Fix MODULE_CMD_FINI before I copy and paste this anywhere else. 2008-06-02 13:26:46 +00:00
jmcneill
6bbdefc135 Fix MODULE_CMD_FINI case, azalia can be unloaded now. 2008-06-02 13:25:03 +00:00
ad
1728b3636d UVM_PAGEZERO_TARGET -> UVM_PAGEZERO_LOWAT 2008-06-02 12:24:16 +00:00
hauke
81cf7934a2 esp_quick_dma_go() gets called from the MI ncr53c9x_intr() handler,
which protects itself against multiple invocation with a
simple_lock. Follow the example of ncr53c9x_poll() for servicing an
interrupt that came while we run in splhigh(), and 'manually' unlock
the MI handler for calling ncr53c9x_intr().

Fixes PR mac68k/38758.
2008-06-02 12:01:11 +00:00
darrenr
b002202839 fix a merge error that led to the expected file not being built for i19 2008-06-02 11:48:38 +00:00
jmcneill
be7ed6b1cf Add Makefile for building azalia as a kmod 2008-06-02 11:34:07 +00:00
jmcneill
cec27ea38c Allow azalia to be built as a module. 2008-06-02 11:33:22 +00:00
ad
6dd8a2b97b uvm_pageidlezero:
- Use high and low water marks to try and reduce power consumption.
- Do trylock on uvm_fpageqlock, and bail if we can't get it.
- Only run on one CPU at a time.
2008-06-02 11:11:14 +00:00
haad
b95cd5a6fe Fix typo.
OK by martin@.
2008-06-02 09:27:04 +00:00
he
1415bf509b Bump miniroot size from 500k to 600k to compensate for recent bloat. 2008-06-02 09:04:50 +00:00
jmcneill
e09ade91de Set sc_suspend properly so we can avoid a potential HCH on resume. 2008-06-02 01:02:21 +00:00
christos
ee16aae1e5 Revert to using specfs_fsync(); using a do-nothing mfs_fsync() does not work
because the filesystem cannot be unmounted since ffs_fsync() will loop forever
trying to empty the v_dirtyblkhd list.
2008-06-02 00:24:28 +00:00
jmcneill
7eba414472 Don't reload usageid on resume, this should never change. 2008-06-01 23:35:18 +00:00
martin
98914ea6fa off-by-one-key
: ----------------------------------------------------------------------
2008-06-01 23:34:23 +00:00
uwe
c39ae7f5d7 Recycle unused _REG_EXPEVT slot in mcontext for _REG_GBR.
As the size of mcontext is not changed, we avoid the hassle of
versioning all the calls that use it.

_REG_EXPEVT was never used by any code in the tree.  Reporting EXPEVT
makes sense only for signals and in that case we pass it to userland
in ksi_trap already which is official MI way to get this (MD) information.

Old binaries running on new kernels will now have their GBR set from
new mcontext, but that's ok too, as GBR was not properly supported by
old kernels (not saved in trapframe), so old binaries couldn't have
possibly used it anyway.
2008-06-01 23:07:20 +00:00
ad
3b06569557 Oops, add CPU_INFO_NTRAP. 2008-06-01 22:28:22 +00:00
darrenr
50cc588ca0 Prior import mismerged changes already in NetBSD with those coming in from
the open source project, leading to regression errors and state tracking
failures.
2008-06-01 22:26:11 +00:00
christos
e68d299eb5 need CPU_INFO_NTRAP 2008-06-01 22:06:06 +00:00
christos
5d9f99db06 Don't obliterate the whole message, preserve the data we have just written
and only zero out the rest.
2008-06-01 22:05:47 +00:00
ad
c3e93e738f Make trap counters per-cpu, like syscalls. 2008-06-01 21:24:15 +00:00
joerg
42fe28f522 Fix compilation with ACPI_EXTRA_DEBUG. 2008-06-01 19:01:57 +00:00
ad
c28f41882e - sse2_zero_page: do 64-bytes (1 cache line) at a time.
- sse2_copy_page: increase from 16 to 32 bytes per loop.
2008-06-01 18:37:12 +00:00
macallan
01dee7feb2 adjust virtual resolution to preferred mode if available
From Marco Trillo
2008-06-01 16:43:53 +00:00
christos
57b0179544 fix typo and add level to the printf. 2008-06-01 15:54:02 +00:00
joerg
f06b336b2a When a PCI host bridge description in the DSDT has a missing _BBN or the
_BBN is 0, check if the _ADR field is also 0. If it is, assume that the
_BBN really should be 0. Otherwise, try to extract the _BBN from the
bridge itself using pchb logic and panic only, if that fails as well.
Reported and tested by Martin Husemann as interrupt issue.
2008-06-01 15:33:15 +00:00
joerg
9e53ffdca5 When building the ACPI PCI Interrupt Table, check for duplicate entries
and drop all but the first. This is the behaviour Windows seems to
implement and some BIOSes depend on that due to broken dups.

This should fix PR 37001.
2008-06-01 15:23:46 +00:00
bjs
def465f1ec Use symbolic names for mem->phase, make error reporting more sensible. 2008-06-01 12:28:09 +00:00
chris
39f46f7a42 Call buf_destroy when finished with an on-stack struct buf.
Spotted by LOCKDEBUG, because the condvars were already initialised.
2008-06-01 11:38:26 +00:00
wiz
fbf4777151 Sort options. 2008-06-01 10:25:29 +00:00
uwe
5e11d3a535 Enable TMPFS by default. 2008-06-01 03:34:17 +00:00
isaki
f093ae64ba Remove x68k/include/pci_machdep.h.
x68k does not have PCI-bus, and no one refers to it.
2008-06-01 02:30:12 +00:00
uwe
70f9d18086 Add GBR register to switchframe.
While here, reorder switchframe so that we can shave off a few
instructions when restoring it (group stack registers at the end, make
sure that last and first registers are safe to load/store in delay
slots).
2008-06-01 01:43:20 +00:00
tsutsui
3a70013d4e Reorganize I2C bitbang ops:
- don't set DIR(INPUT) in i2c_wait_for_scl() because it could cause
  unexpected stop condition in SCL=H, SDL=L and DIR(OUTPUT) case,
  and DIR() should be used only to switch SDA direction, not SCL
  that is always output on the master device
  (I'm not sure if reading SCL on the master is defined in the I2C spec)
- set SDA right after SCL H->L edge on Tx, fetch SDA at SCL L->H edge on Rx,
  and make sure not to change SDA during SCL=H except start/stop conditions
  so that we don't have to rely on data setup time which might be critical
- don't set DIR(OUTPUT) during SDA bit read in i2c_bitbang_read_byte()
- explicitly specify both SDA and SCL bits in SETBITS() for readability
- sprinkle comments

Fixes "tl0: error reading Ethernet address" problem on tl(4).
2008-06-01 01:13:18 +00:00
uwe
ff6926e860 Add GBR register to trapframe. 2008-06-01 00:46:01 +00:00
tsutsui
f20ac6014b Split device_t/softc, with misc cosmetic changes. 2008-06-01 00:38:29 +00:00
tsutsui
0305395f96 My Compaq Netelligent 10/100 TX has 24C02 (2kbit) serial EEPROM,
so pass 256 (bytes) rather than 512 to seeprom_bootstrap_read().
2008-05-31 23:53:32 +00:00
uwe
8b03821c47 In __EXCEPTION_RETURN use ldc.l to shave off couple of instructions. 2008-05-31 22:45:32 +00:00
dyoung
5d02482d8b Use printf_tolog() instead of aprint_error_dev() to report PCI
exceptions and write-protection violations.

While I'm here, add a comment to describe the interrupt configuration.
2008-05-31 22:37:00 +00:00
ad
c35a9dfad1 Put a TNF copyright on it. 2008-05-31 21:39:13 +00:00
jmcneill
9f877bc707 Don't use cv_timedwait_sig if (cold) 2008-05-31 21:38:02 +00:00
ad
3592ae4882 XXX softdep:
If the number of deletes in progress is getting too high, newdirrem()
requests the syncer to flush faster, and in some cases will block to
prevent deletes accumulating faster than the disk can service them.

The syncer will try to lock vnodes that the remover holds locked, leading
to the syncer and remover proceeding in lockstep and making very little
overall forward progress.

Put a hook into ufs_rmdir() and ufs_remove() so that the softdep code
can pace itself without holding vnode locks if the number of deletes is
running out of control.
2008-05-31 21:37:08 +00:00
ad
736a4d9b78 Kill devsw_lock and just use specfs_lock. The two would need merging
in order to prevent unload of modules when a device that they provide
is still open.
2008-05-31 21:34:42 +00:00
ad
2feabc3836 PR kern/38812 race between lwp_exit_switchaway and exit1/coredump
Move the LWP RUNNING and TIMEINTR flags into the thread-private flag word.
2008-05-31 21:26:01 +00:00
dyoung
8f34c216d0 Add printf_tolog(), which writes to the kernel message buffer,
only.  I believe this is the safest way to log serious conditions
indicated by NMI.
2008-05-31 20:27:24 +00:00
ad
4c57df4a3c - Put in place module compatibility check against __NetBSD_Version__,
as discussed on tech-kern.

- Remove unused module_jettison().
2008-05-31 20:14:38 +00:00