161928 Commits

Author SHA1 Message Date
pooka
c777421532 Expose namei. Some applications might want to call VOPs directly for
whatever reason and no need to make them implement their own copy of
namei, fun though it might be.
2007-09-18 19:59:21 +00:00
mlelstv
4bb7dae272 Implement OSS_SNDCTL_DSP_GETODELAY and provide a no-op function
for OSS_SNDCTL_DSP_PROFILE.
2007-09-18 19:49:53 +00:00
tnozaki
0941b12b16 lib/36938 mbtowc misbehaving after invalid char sequence
- make sure to initialize mbtowc's internal state.
 - add regression test.
2007-09-18 15:12:07 +00:00
agc
f6d990e7e4 Fix a tyop and align properly 2007-09-18 12:57:37 +00:00
hannken
d72d03c5d7 Stop abusing a struct buf' for state information. Use new struct physio_stat'
and use kmutex and kcondvar here.
Fix an error introduced with B_ERROR removal where reading at EOM returned EIO.

Approved by: Andrew Doran <ad@netbsd.org>
2007-09-18 08:34:34 +00:00
ad
97af1559fd Don't subtract CR4_PGE from %cr4, just clear it. Otherwise bad things could
happen if we are unlucky and interrupt tlbflushg().
2007-09-17 21:41:53 +00:00
ad
5b3ae27b0d __FUNCTION__ -> __func__ 2007-09-17 21:33:34 +00:00
martti
abde7e33e0 Fixed IPF bug #1767831
ipflog() & ipmon ignore IPv6 extension headers
2007-09-17 18:02:21 +00:00
msaitoh
c2388d7ef1 add SAS1068_2, SAS1064E_2 and SAS1068E_2 2007-09-17 17:51:45 +00:00
msaitoh
e9e8838b54 regen 2007-09-17 17:50:49 +00:00
msaitoh
e817c87c64 addd SYMBIOS SAS1068_2, SAS1064E_2 and SAS1068E_2 2007-09-17 17:49:54 +00:00
drochner
9b1b051e89 add a check for correct order of destructor calls (from the gcc mailing
list) which points at a misconfiguration at our side
(cxa_atexit not used)
2007-09-17 17:37:48 +00:00
skrll
f9577d3ada Mostly fix the restartable atomic sequences by reversing the sense of the
lock check and test for return value.

At least alpha looks broken me and some are sub-optimal.

"Looks good to me" from ad.
2007-09-17 13:25:59 +00:00
aymeric
8b9fcfffdc add support for the "tumbler" as found at least on iBook G3/600.
quick OK macallan@
2007-09-17 13:15:20 +00:00
martti
05122b2bd9 Fixed IPF bug #1779455
state timer should be reset when retransmission is seen
2007-09-17 06:56:15 +00:00
martti
1f09bebe3d Returning from m_pulldown can leave the first mbut with no data (m_len = 0).
The mbuf chain wasn't being walked and thus fin_m was not updated to point
to the new first mbuf with data in it.

Patch from the official IPFilter repository.
2007-09-17 06:25:21 +00:00
lukem
dd397e577e Apply variation of fix supplied by Havard Eidnes <he@NetBSD.org>
in PR 24020 on 2007/07/30.
Seems to work for me.
2007-09-17 04:51:04 +00:00
rillig
feff384922 Macros that are meant for statements (instead of expressions) SHALL
never be defined to an empty string, because in that case,

	if (condition) DPRINTF(...); else err(...);

results in a gcc warning, and possibly worse things.
2007-09-17 01:23:17 +00:00
martin
e3218c4391 Change "Boot:" prompt option parsing to be more in line with the default
(no prompt) behaviour - it is now possible to "boot net:dhcp -a" and then
say "disk" at the "Boot:" prompt - result should be equivalent to "boot disk",
but the ofwboot was loaded from the network.
While there fix a few minor errors, and one significant: if the "a" partition
should not start at the beginning of the disk, the previous code failed
to read a disklabel. Use the "c" partition now to find the disklabel now
always.
2007-09-16 23:12:31 +00:00
dsl
8b937dec65 Fix previous, 'long long' is 8 byte aligned on sparc32 2007-09-16 22:44:31 +00:00
dsl
06b0a1bdab Define netbsd32_uint64 for 64bit integers with the alignment requirement
of the corresponding 32bit architecture.
Use it for the 64bit items in netbsd32_statvfs so that the structure
doesn't collect 8byte alignment (and 4 bytes of trailing padding).
This replaces the 'packed' attribute which wasn't architecture specific
and would cause massive overheads accessing every member of sparc64.
Should allow the MIPS64 port do DTRT.
2007-09-16 22:35:01 +00:00
pooka
56ad6a2499 Temporarily disable rump build for archs which need MD twiddling
(unlikely I'll have time to fix it in the very near future)
2007-09-16 21:42:23 +00:00
martin
3d0c5d6936 Add a warning that booting the install kernel from a Solaris root partition
may fail for non obvious reasons. Fixes for the bootloader will not be
available in-time for 4.0, unfortunately.
2007-09-16 21:41:16 +00:00
plunky
a0c60c7e8f improve memo taking of known bluetooth devices
- centralise creation of new memo into function
  hci_memo_new(), when a memo exists for that address,
  just update the timestamp.

- all results of inquiry/rssi result are processed; even
  if no memo can be allocated, we may update a timestamp.

- for new connections, query the clock offset of the remote
  device, in order that we can use it to facilitate future
  reconnections

- as a connection is removed, make a memo of the clock offset
2007-09-16 19:59:30 +00:00
ragge
d141d2a094 Needs errno.h if !gcc. 2007-09-16 18:44:19 +00:00
ragge
b531488dbc __attribute -> __attribute__. 2007-09-16 18:42:02 +00:00
bouyer
cf9d41447f Add a workaround for drives with the LBA48 bug:
if we get a "ID not found" error for a transfer crossing LBA48_THRESHOLD,
and the drive is larger than 128GB, automatically add WD_QUIRK_FORCE_LBA48
to the drive's quirks and retry the transfers.
Hopefully this will obsolete the WD_QUIRK_FORCE_LBA48 quirk list ...
2007-09-16 18:41:47 +00:00
ragge
4d90c6e639 __attribute -> __attribute__ 2007-09-16 18:39:54 +00:00
ragge
e515d580df i386 -> __i386__ 2007-09-16 18:37:34 +00:00
dyoung
306b542543 Save some lines of code, use sockaddr_dup(), sockaddr_free(),
sockaddr_cmp().  No functional change intended.

Bug fix: pass M_WAITOK, not M_WAIT, to malloc(9).
2007-09-16 18:09:51 +00:00
dyoung
6418bbd280 Cosmetic: shorten staircase. 2007-09-16 18:01:30 +00:00
dsl
e4a2671dea Put the RCSID before any other headers 2007-09-16 15:17:36 +00:00
bouyer
dbf0654848 Fix various error handling bugs:
- the value of the ATA error register would be computed wrongly, leading to
  bogus error values reported to wd(4)
- the channel would not always be restarted after an error, so the next
  command would not be handled by the controller
- a timeout condition would not be properly reported to wd(4), leading
  to a short transfer instead of a reset/retry
these bugs would cause a AHCI SATA channel to be stalled (no more command
processed) after a "ID not found" or "Aborted command" error reported by the
drive.
2007-09-16 15:02:07 +00:00
kiyohara
6a92649103 + Remove 'include "lcd.h"'.
+ It is easy to understand that memsize is added to physcal_freeend.
+ Add VERBOSE_INIT_ARM at befor/after with printf().
+ Call ddb_init() before db_machine_init().
+ Fix declered kgdb_devrate.
2007-09-16 14:04:16 +00:00
kiyohara
9f0e854e77 Remove white spaces. 2007-09-16 13:47:19 +00:00
kiyohara
e70a0d2e8c + Add comment at btuart.
+ Add INCLUDE_CONFIG_FILE and UFS_DIRHASH.
+ Add white space at file-system and enabled some file-system.
+ Comment-outed un-major devices.
+ Add stuirda, uchcom, ugensa.
2007-09-16 13:44:38 +00:00
mlelstv
50c43c7f9f Regen. 2007-09-16 10:53:28 +00:00
mlelstv
3d9a003a8b add product code for Huawei E220 HSDPA USB Modem 2007-09-16 10:51:14 +00:00
dyoung
2d2c83df85 KNF: use tabs instead of spaces. 2007-09-16 02:23:29 +00:00
dyoung
b0dad91e16 Use sockaddr_dup() and sockaddr_free(). 2007-09-16 02:19:44 +00:00
dyoung
d34212ed04 Move the LIST_HEAD() definition below etherip_softc's definition.
Somehow having it above interfered with ctags(1) producing a tag
for etherip_softc.

Remove the sole member of the union etherip_softc.sc_scr; call it
sc_ro.  Delete the union.  Delete the #define for sc_ro.  The union
was a holdover from days before the route caches were unified.
2007-09-16 02:15:54 +00:00
oster
46ae972f1b Make a couple of variables 64-bit quantities to avoid overflow issues
when arrays have a large number of stripes.  Remove unused variable
(recon_stripes_done).  Thanks to Dieter Roelants for the report,
suggestions, and testing.  Addresses PR#36878.
2007-09-16 02:13:35 +00:00
christos
2872c55cb0 Add a hack to handle that the __stack_chk_fail_local call is not generated
properly for pic code; more explained in the code.
2007-09-15 16:24:06 +00:00
christos
9ba5d03c10 Enable text relocation warnings. 2007-09-15 14:36:14 +00:00
christos
664366b805 Add a warning that prints the symbol that has the text reloc. 2007-09-15 14:35:34 +00:00
ragge
9949926272 __attribute -> __attribute__. 2007-09-15 14:35:33 +00:00
ragge
8b19d01fcd Needs errno.h if !gcc. 2007-09-15 14:33:05 +00:00
ragge
592fd7eafc __FUNCTION__ -> __func__. 2007-09-15 14:30:56 +00:00
ragge
68767613dd Add basic defines to be able to use pcc as compiler (renaming etc). 2007-09-15 14:24:27 +00:00
scw
e73cf3ca4c ARM cpu_switchto() has been partially broken since yamt-idlelwp was merged
as its cache/tlb management smarts relied too heavily on pre-merge context-
switch behaviour. See PR kern/36548 for one manifestation of the breakage.

To address this:
 - Ditch the shadow pmap variables in the PCB (pagedir, l1vec, dacr, cstate)
   as it was too easy for them to get out of sync with the pmap.
 - Re-write (and fix) the convoluted cpuswitch.S cache/tlb ASM code in C.
   It's only slightly less efficient, but is much more readable/maintainable.
 - Document cpufuncs.cf_context_switch() as being C-callable.
 - pmap_activate() becomes a no-op if the lwp's vmspace is already active.
   (Good performance win, since pmap_activate() is now invoked on every
   context-switch, even though ARM's cpu_switchto() already does all the
   grunt work)

XXX: Some CPU-specific armXX_context_switch() implementations (arm67,
arm7tdmi, arm8) always flush the I+D caches. This should not be necessary.
Someone with access to hardware (acorn32?) needs to deal with this.
2007-09-15 09:25:20 +00:00