Commit Graph

161899 Commits

Author SHA1 Message Date
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
he
ed42b680fa Fix build problem: ensure uintptr_t is declared by including <sys/stdint.h>.
OKed by skrll.
2007-09-15 08:05:34 +00:00
drochner
13434589bc free the temporary path string if the fallback to an unversioned
plugin module fails
2007-09-14 17:57:39 +00:00
martti
4a8ab0e43a Fixed IPF bug #1774745
retransmitted ACK may initiate connection state transition
2007-09-14 11:28:45 +00:00
martti
1122544750 Fixed IPF bug #1794544
keep frags does not work with IPv6
2007-09-14 09:57:07 +00:00
njoly
e39e9dc117 Do not include opt_*.h unless _KERNEL_OPT is defined 2007-09-14 09:34:56 +00:00
martin
c068dc64a3 Rename the option to enable ISO 9660 file system support from ..._HSFS
to ..._CD9660.
2007-09-14 09:26:45 +00:00
xtraeme
877776516d Modify a block that wasn't valid anymore. 2007-09-14 09:20:49 +00:00
martin
6bcd1bdf6f Make sure the buffer used to read from disk is properly aligned to cast
it into a struct disklabel pointer w/o alignement problems.
(Bug did not hit by pure luck with our default optimization settings)
2007-09-14 09:19:39 +00:00
tnn
28d03ee594 sem_post(): pthread__self() is no longer used here. 2007-09-14 09:15:41 +00:00
aymeric
ccf07f8137 add support for the "newer" trackpads found at least in the last generation
G4 powerbooks (powerbook5,8). Information found in the Linux driver.
2007-09-14 07:49:29 +00:00
ad
20e3392edc Add a per-mutex deferred wakeup flag so that threads doing something like
the following do not wake other threads early:

	pthread_mutex_lock(&mutex);
	pthread_cond_broadcast(&cond);
	foo = malloc(100);		/* takes libc mutexes */
	pthread_mutex_unlock(&mutex);
2007-09-13 23:51:47 +00:00
rumble
aff14ee9c8 Actually include all of the EFS source in the lkm.
From Nicolas Joly.
2007-09-13 21:46:54 +00:00
tnn
ea0fc2f827 5 is not a valid version for .Nx, so change it to 5.0. 2007-09-13 21:32:14 +00:00
riz
ed3a102d07 Remove a comment that is no longer true - this driver does, in fact,
support multiple serial ports.
2007-09-13 21:01:48 +00:00
gdt
2f4541505a Add a define for the ifru_space union member.
Copy the entire sockaddr to the buffer to be written to user space,
according to its length, not just the part that fits in struct
sockaddr.

This fixes the 'bad MAC address' problem in dhclient.
2007-09-13 18:54:57 +00:00
gdt
f77e123027 Follow NetBSD's interpretation of the interface to SIOCGIFCONF: the
next ifreq is sizeof(struct ifreq) after the current one unless the
sockaddr is bigger than the union in ifreq that holds it.

In the original 4.4BSD code, this interpretation results in the same
behavior as the "is the sockaddr bigger than struct sockaddr", because
sizeof(struct sockaddr) and sizeof(ifc->ifr_ifru) are the same.

Add comments pointing out problems in the 'need bigger buffer' code,
and copying excessive amounts of data.
2007-09-13 11:56:41 +00:00
jmcneill
786691ad36 Add basic support for the Analog Devices AD1984 codec as found in the
ThinkPad T61.
2007-09-13 03:54:51 +00:00
msaitoh
3a2cc59ccc Move the EST support for amd64 from CHANGES to CHANGES.prev 2007-09-13 00:37:15 +00:00
mgrooms
8293a09746 Fix autoconf check for selinux support. Submitted by Joy Latten. 2007-09-13 00:26:14 +00:00
mgrooms
aca8e1eed2 Implement clientaddr sainfo remote id option and refine the sainfo man page syntax. 2007-09-12 23:39:49 +00:00
christos
ecde76d5ff Support obsolete zone info in date field. (See obs_zone of RFC 2822,
sec 4.3.) from Anon Ymous
2007-09-12 13:09:46 +00:00
msaitoh
e79a256eb2 The EST support for amd64 was moved to netbsd-4 by ticket #809. 2007-09-12 12:41:34 +00:00
xtraeme
57956a2b1e Fix aps(4) attachment. 2007-09-12 11:45:39 +00:00
xtraeme
9e048e4b24 Forgot to add aps(4) device. 2007-09-12 11:07:38 +00:00
pooka
0ae64860f6 don't allocate variable-sized arrays from the stack 2007-09-12 10:24:23 +00:00
wiz
68b83c64db Fix xref, sort SEE ALSO. Add RCS Id. 2007-09-11 23:26:13 +00:00
agc
bb80e7775d Generalise the tests for OBJDIR and non-OBJDIR builds 2007-09-11 23:23:51 +00:00
agc
696c18a993 Generalise the tests for objdir builds, as well as none 2007-09-11 23:23:08 +00:00
jnemeth
511c062ca0 regen 2007-09-11 22:51:59 +00:00