Commit Graph

161886 Commits

Author SHA1 Message Date
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
jnemeth
bbdcd3c618 sort CMDTECH and add CMDTECH SiI3531 SATALink 2007-09-11 22:39:09 +00:00
wiz
974c81fdf9 Sort sections. Sort SEE ALSO. Use HTML escapes. Remove superfluous .Pp.
Other cleanups.
2007-09-11 22:31:35 +00:00
wiz
57fffb5f82 Sort SEE ALSO. 2007-09-11 22:27:04 +00:00
xtraeme
fd79e0d338 Remove a local CPPFLAGS addition. 2007-09-11 22:02:09 +00:00
xtraeme
6da6e7a3b7 GENERIC_LAPTOP -> add aps(4) commented out
ALL -> add aps(4)
2007-09-11 21:59:10 +00:00
xtraeme
189cf45ffd Forgot to add aps(4)... sorry phone :-) 2007-09-11 21:54:54 +00:00
xtraeme
3f2361dc7d Mention aps(4). 2007-09-11 21:47:37 +00:00
xtraeme
1dac9ede4d New aps(4) driver for IBM Thinkpad Active Protection System.
Exports some sensors through the envsys(4) framework available
in some Thinkpad laptops.

Ported by Pierre Pronchery from OpenBSD, via PR port-i386/36852.

Tweaks, LKM and misc improvements by me. Added into i386/GENERIC
commented out.
2007-09-11 21:46:52 +00:00
skrll
f7b881990d Terminate the nick-csl-alignment branch.
Note the final base tag.
2007-09-11 21:32:54 +00:00
skrll
2d9c4abfb1 Always provide __cpu_simple_lock_{set,clear}.
Fixes LOCKDEBUG kernel builds.
2007-09-11 21:01:40 +00:00
gdt
9768560fd7 remove SIOCSIFALIFETIME_IN6 (should have been part of previous commit) 2007-09-11 19:59:18 +00:00
gdt
8f7e0bd6a5 Remove SIOCSIFALIFETIME_IN6, which could not possibly have ever worked.
Problem reported in kern/35897 by Robert Elz.
2007-09-11 19:54:51 +00:00
gdt
aebe6f5793 Fix bug in SIOCGIFCONF where the wrong length was calculated for
sockaddrs bigger than struct sockaddr.  Tightly bind decrementing
available space and using it, avoiding incorrect accounting in an
error case.  Document invariants.  Document calling convention for
SIOCGIFCONF.  Simplify by removing code to handle sockaddrs that don't
fit in struct ifreq; with sockaddr_storage this can no longer occur.
Add several KASSERTs.

This commit resolves the problem with racoon failing to list
interfaces.

Proposed on tech-net@ with no objections.
2007-09-11 19:31:22 +00:00