]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoFollow the lead of mxgb(4) and build the module for ixgb(4).
Christian Brueffer [Fri, 18 Aug 2006 10:20:15 +0000 (10:20 +0000)]
Follow the lead of mxgb(4) and build the module for ixgb(4).

Originally it wasn't enabled since the hardware wasn't commonplace,
but as 10GE hardware is becoming more widely used, building the module
by default should be beneficial.

Approved by: rwatson (mentor)
MFC after: 2 weeks

18 years agokern.ipc.nmbclusters is sysctl, not compile-time option. Change Dv to Va.
Dmitry Morozovsky [Fri, 18 Aug 2006 10:15:01 +0000 (10:15 +0000)]
kern.ipc.nmbclusters is sysctl, not compile-time option. Change Dv to Va.

Touch .Dd.

Pointed out by: ru
MFC after: 1 week

18 years agoUpdate JMicron support to also work with chips where the PATA and SATA
Søren Schmidt [Fri, 18 Aug 2006 09:56:12 +0000 (09:56 +0000)]
Update JMicron support to also work with chips where the PATA and SATA
parts are on individual PCI functions.

HW donated by: JMicron

18 years agoRemove references to NMBCLUSTERS which is obsoleted.
Dmitry Morozovsky [Fri, 18 Aug 2006 08:03:06 +0000 (08:03 +0000)]
Remove references to NMBCLUSTERS which is obsoleted.

PR: 100427
Approved by: maxim
MFC after: 1 week

18 years agoAppened ull to a really large integer constant to fix build on i386
Warner Losh [Fri, 18 Aug 2006 00:01:29 +0000 (00:01 +0000)]
Appened ull to a really large integer constant to fix build on i386

18 years agowhile(0); -> while (0) in multiline macro
Warner Losh [Thu, 17 Aug 2006 23:00:33 +0000 (23:00 +0000)]
while(0); -> while (0) in multiline macro

18 years agowhile (0); -> while (0) in multi-line macros
Warner Losh [Thu, 17 Aug 2006 22:50:33 +0000 (22:50 +0000)]
while (0); -> while (0) in multi-line macros

18 years agoAllow ipfw to forward to a destination that is specified by a table.
Julian Elischer [Thu, 17 Aug 2006 22:49:50 +0000 (22:49 +0000)]
Allow ipfw to forward to a destination that is specified by a table.
for example:
  fwd tablearg ip from any to table(1)
where table 1 has entries of the form:
1.1.1.0/24 10.2.3.4
208.23.2.0/24 router2

This allows trivial implementation of a secondary routing table implemented
in the firewall layer.

I expect more work (under discussion with Glebius) to follow this to clean
up some of the messy parts of ipfw related to tables.

Reviewed by: Glebius
MFC after: 1 month

18 years agoDon't put a ; after while (0)
Warner Losh [Thu, 17 Aug 2006 22:42:56 +0000 (22:42 +0000)]
Don't put a ; after while (0)

Submitted by: jmg

18 years ago- disable some more code when osrelease=2.4.2
Alexander Leidinger [Thu, 17 Aug 2006 21:21:30 +0000 (21:21 +0000)]
- disable some more code when osrelease=2.4.2
- protect td->td_proc->p_pid with the proc lock in linux_getpid
  in the amd64 (= non i386) case [1]

Sponsored by: Google SoC 2006
Submitted by: rdivacky
Noticed by: netchild [1]

18 years agoMove some stuff into headers where they belong.
Alexander Leidinger [Thu, 17 Aug 2006 21:06:48 +0000 (21:06 +0000)]
Move some stuff into headers where they belong.

Sponsored by: Google SoC 2006
Submitted by: rdivacky
Noticed by: jhb, ssouhlal

18 years agoMake it a little clearer that interface-specific flags aren't additional
Brian Somers [Thu, 17 Aug 2006 20:13:24 +0000 (20:13 +0000)]
Make it a little clearer that interface-specific flags aren't additional
to specified dhclient flags.

Mention background_dhclient_iface.

Suggested by: ru

18 years agoBump the document date. s/dhclient/.Nm/
Brian Somers [Thu, 17 Aug 2006 20:11:21 +0000 (20:11 +0000)]
Bump the document date.  s/dhclient/.Nm/

Suggested by: ru

18 years agoBump the document date.
Brian Somers [Thu, 17 Aug 2006 20:10:34 +0000 (20:10 +0000)]
Bump the document date.

Suggested by: ru

18 years agoAdd a missing quote
Brian Somers [Thu, 17 Aug 2006 19:57:10 +0000 (19:57 +0000)]
Add a missing quote

Spotted by: ru

18 years agoUse same signedness for i and matched_c. This should make
Xin LI [Thu, 17 Aug 2006 18:15:43 +0000 (18:15 +0000)]
Use same signedness for i and matched_c.  This should make
newsyslog(8) WARNS=6 clean.

18 years agoCorrect usage()
Brian Somers [Thu, 17 Aug 2006 17:27:42 +0000 (17:27 +0000)]
Correct usage()

18 years agoAdd a -p switch to dhclient. The switch tells dhclient to persist
Brian Somers [Thu, 17 Aug 2006 17:12:27 +0000 (17:12 +0000)]
Add a -p switch to dhclient.  The switch tells dhclient to persist
despite the interface link status.

Add dhclient_flags_iface and background_dhclient_iface rc.conf options.
(where iface is a specific interface).  These can be used to give
interface specific flags to dhclient.

Reviewed by: brooks@

18 years agoFurther nitpicking.
Ceri Davies [Thu, 17 Aug 2006 16:29:27 +0000 (16:29 +0000)]
Further nitpicking.

18 years agoFix a grammatical error.
Ceri Davies [Thu, 17 Aug 2006 16:20:42 +0000 (16:20 +0000)]
Fix a grammatical error.
Funny how one character can completely distort the perception of a sentence :)

18 years agoRemove unneeded asserts from bridge_ioctl_* since these are just
Andrew Thompson [Thu, 17 Aug 2006 11:16:02 +0000 (11:16 +0000)]
Remove unneeded asserts from bridge_ioctl_* since these are just
extensions of bridge_ioctl() which has the correct locking.

18 years agoI'm about to merge these only now, so correct the first release
Ruslan Ermilov [Thu, 17 Aug 2006 10:55:49 +0000 (10:55 +0000)]
I'm about to merge these only now, so correct the first release
of their appearence to be 6.2.

18 years agoRemove two lock asserts that are unneeded due to subsequent unlocks.
Andrew Thompson [Thu, 17 Aug 2006 10:52:36 +0000 (10:52 +0000)]
Remove two lock asserts that are unneeded due to subsequent unlocks.

18 years agoCall bridge_span before dropping the lock.
Andrew Thompson [Thu, 17 Aug 2006 10:18:31 +0000 (10:18 +0000)]
Call bridge_span before dropping the lock.

MFC after: 5 days

18 years agoInitialize the emul sx-lock.
Alexander Leidinger [Thu, 17 Aug 2006 10:04:49 +0000 (10:04 +0000)]
Initialize the emul sx-lock.

Sponsored by: Google SoC 2006
Submitted by: rdivacky

18 years agoRewrite bge_encap() so that it takes mbuf ** argument. In this case if
Gleb Smirnoff [Thu, 17 Aug 2006 09:53:04 +0000 (09:53 +0000)]
Rewrite bge_encap() so that it takes mbuf ** argument. In this case if
m_defrag(9) changes pointer we can show this to our caller.

Reviewed by: yongari

18 years agoFix the DEBUG build:
Alexander Leidinger [Thu, 17 Aug 2006 09:50:30 +0000 (09:50 +0000)]
Fix the DEBUG build:
 - linux_emul.c [1]
 - linux_futex.c [2]

Sponsored by: Google SoC 2006 [1]
Submitted by: rdivacky [1]
netchild [2]

18 years agoAllow for setting negative priority (niceness) when $foo_user is non-root.
Yaroslav Tykhiy [Thu, 17 Aug 2006 08:04:20 +0000 (08:04 +0000)]
Allow for setting negative priority (niceness) when $foo_user is non-root.
The order in _doit must be "nice su", not "su nice", for that.
In addition, don't ignore the exit status from "cd $foo_chdir".

Reviewed by: freebsd-rc (silence)
MFC after: 1 week

18 years agoEnumerate all cases where -i is applicable.
Yaroslav Tykhiy [Thu, 17 Aug 2006 07:14:01 +0000 (07:14 +0000)]
Enumerate all cases where -i is applicable.

MFC after: 3 days

18 years agoo Style previous.
Maxim Konovalov [Thu, 17 Aug 2006 05:55:20 +0000 (05:55 +0000)]
o Style previous.

18 years agoUpdate to sendmail 8.13.8
Gregory Neil Shapiro [Thu, 17 Aug 2006 05:16:15 +0000 (05:16 +0000)]
Update to sendmail 8.13.8

18 years agoForced commit to .mc files to force creation of new .cf files for mergemaster.
Gregory Neil Shapiro [Thu, 17 Aug 2006 05:12:07 +0000 (05:12 +0000)]
Forced commit to .mc files to force creation of new .cf files for mergemaster.

MFC after: 1 week

18 years agoThis commit was generated by cvs2svn to compensate for changes in r161389,
Gregory Neil Shapiro [Thu, 17 Aug 2006 05:10:43 +0000 (05:10 +0000)]
This commit was generated by cvs2svn to compensate for changes in r161389,
which included commits to RCS files with non-trunk default branches.

18 years agoImport sendmail 8.13.8
Gregory Neil Shapiro [Thu, 17 Aug 2006 05:10:43 +0000 (05:10 +0000)]
Import sendmail 8.13.8

18 years agoRegularly scheduled patch to unbreak regularly scheduled post-ipfilter
Alexander Kabaev [Thu, 17 Aug 2006 03:19:38 +0000 (03:19 +0000)]
Regularly scheduled patch to unbreak regularly scheduled post-ipfilter
buildworld breakage.

Exclude loglevel.c from the build. It does not appear to be used by
anything in the tree and buildworld succeeds just fine without it.

18 years agoIntroduce a new function, ifexists and use it to avoid attempting to
Brooks Davis [Thu, 17 Aug 2006 03:03:38 +0000 (03:03 +0000)]
Introduce a new function, ifexists and use it to avoid attempting to
touch interfaces that don't actually exist in the stop case.  In the
process move some IPv4 specific code from ifconfig_down to ipv4_down.

This should solve problems with ifconfig: error messages on boot when
interfaces are renamed.

18 years agoTake IP_FIREWALL_EXTENDED out of the man page too.
Julian Elischer [Thu, 17 Aug 2006 00:46:06 +0000 (00:46 +0000)]
Take IP_FIREWALL_EXTENDED out of the man page too.
MFC after: 1 week

18 years agoNote IPFIREWALL_FOWARD_EXTENDED is now gone.
Julian Elischer [Thu, 17 Aug 2006 00:41:05 +0000 (00:41 +0000)]
Note IPFIREWALL_FOWARD_EXTENDED is now gone.

MFC after: 1 week

18 years agoRemove the IPFIREWALL_FORWARD_EXTENDED option and make it on by default as it always was
Julian Elischer [Thu, 17 Aug 2006 00:37:03 +0000 (00:37 +0000)]
Remove the IPFIREWALL_FORWARD_EXTENDED option and make it on by default as it always was
in older versions of FreeBSD. This option is pointless as it is needed in just
about every interesting usage of forward that I have ever seen. It doesn't make
the system any safer and just wastes huge amounts of develper time
when the system doesn't behave as expected when code is moved from
4.x to 6.x It doesn't make
the system any safer and just wastes huge amounts of develper time
when the system doesn't behave as expected when code is moved from
4.x to 6.x  or 7.x
Reviewed by: glebius
MFC after: 1 week

18 years agoMFp4: changes since .s -> .S rename. Use correct header for size
Warner Losh [Thu, 17 Aug 2006 00:14:32 +0000 (00:14 +0000)]
MFp4: changes since .s -> .S rename.  Use correct header for size

18 years agoDon't update Rx descriptor status in two different functions.
Pyun YongHyeon [Wed, 16 Aug 2006 23:55:34 +0000 (23:55 +0000)]
Don't update Rx descriptor status in two different functions.

Suggested by: pdeuskar
Reviewed by: pdeuskar

18 years agoFix typos in comment.
Thomas Quinot [Wed, 16 Aug 2006 23:53:05 +0000 (23:53 +0000)]
Fix typos in comment.

18 years agoMFp4: First cut at making spi and/or sd card booting work, needs work
Warner Losh [Wed, 16 Aug 2006 23:39:58 +0000 (23:39 +0000)]
MFp4: First cut at making spi and/or sd card booting work, needs work

18 years agoMFp4:
Warner Losh [Wed, 16 Aug 2006 23:18:07 +0000 (23:18 +0000)]
MFp4:

Tidy up a bit.  Make sure that the burned image matches the downloaded
one.

18 years agoMFp4:
Warner Losh [Wed, 16 Aug 2006 23:14:52 +0000 (23:14 +0000)]
MFp4:

Simplify life a little for such a simple program.

18 years agoGrab two syscall numbers. One is used to emulate functionality that linux
Peter Wemm [Wed, 16 Aug 2006 22:32:50 +0000 (22:32 +0000)]
Grab two syscall numbers.  One is used to emulate functionality that linux
has in its procfs (do a readlink of /proc/self/fd/<nn> to find the pathname
that corresponds to a given file descriptor).  Valgrind-3.x needs this
functionality.  This is a placeholder only at this time.

18 years agoChange xorq back to xorl.
David Xu [Wed, 16 Aug 2006 22:22:28 +0000 (22:22 +0000)]
Change xorq back to xorl.

Noticed by: bde

18 years agoStyle fixes to comments.
Alexander Leidinger [Wed, 16 Aug 2006 18:54:51 +0000 (18:54 +0000)]
Style fixes to comments.

Sponsored by: Google SoC 2006
Submitted by: rdivacky
Noticed by: jhb, ssouhlal

18 years agoUse setproctitle(3) to provide identification of the client and server
Thomas Quinot [Wed, 16 Aug 2006 18:33:35 +0000 (18:33 +0000)]
Use setproctitle(3) to provide identification of the client and server
processes created by rpc.lockd.

MFC after: 1 week

18 years agoSet removable_route_flush to NO be default. It's clearly the wrong
Brooks Davis [Wed, 16 Aug 2006 17:14:52 +0000 (17:14 +0000)]
Set removable_route_flush to NO be default.  It's clearly the wrong
thing to do in most (all?) cases and certainly should not be the default
now that we're running pccard_ether on all interface creates and
destroys.

MFC after: 3 days

18 years agoClarify documentation of '-L' command line switch: the snapshot is
Thomas Quinot [Wed, 16 Aug 2006 16:28:30 +0000 (16:28 +0000)]
Clarify documentation of '-L' command line switch: the snapshot is
unlinked as soon as the dump starts (and removed when the dump is
completed, and the dump process exits). Previous wording was confusing
because users might expect the snapshot to be visible in the .snap
subdirectory while dump is running.

MFC after: 1 week

18 years agoRemove unsafe use of asynchronous I/O (the SIGIO handler could cause
Thomas Quinot [Wed, 16 Aug 2006 12:58:41 +0000 (12:58 +0000)]
Remove unsafe use of asynchronous I/O (the SIGIO handler could cause
incorrect reentrant calls to the libc memory manager).

Add missing error handling:
  * for an incoming response with an incorrect tid;
  * for a failure to register the response RPC program,

Fix error handling for failure to malloc job descriptor (this needs to
be done before the transient RPC program is registered).

PR: bin/102143
MFC after: 2 weeks

18 years agoAdapt to ipf 4.1.13
Guido van Rooij [Wed, 16 Aug 2006 12:25:00 +0000 (12:25 +0000)]
Adapt to ipf 4.1.13

18 years agoResolve conflicts
Guido van Rooij [Wed, 16 Aug 2006 12:23:02 +0000 (12:23 +0000)]
Resolve conflicts

MFC after: 1 weeks

18 years agoResolve conflicts
Guido van Rooij [Wed, 16 Aug 2006 12:06:35 +0000 (12:06 +0000)]
Resolve conflicts

MFC after: 2 weeks

18 years agoo Fix the date of LZ 129 Hindenburg crash.
Maxim Konovalov [Wed, 16 Aug 2006 11:54:07 +0000 (11:54 +0000)]
o Fix the date of LZ 129 Hindenburg crash.

PR: misc/102137
Submitted by: jasper@openbsd
MFC after: 3 days

18 years agoThis commit was generated by cvs2svn to compensate for changes in r161351,
Guido van Rooij [Wed, 16 Aug 2006 11:51:32 +0000 (11:51 +0000)]
This commit was generated by cvs2svn to compensate for changes in r161351,
which included commits to RCS files with non-trunk default branches.

18 years agoImport IP Filter 4.1.13
Guido van Rooij [Wed, 16 Aug 2006 11:51:32 +0000 (11:51 +0000)]
Import IP Filter 4.1.13

18 years agoImport IP Filter 4.1.13
Guido van Rooij [Wed, 16 Aug 2006 11:51:32 +0000 (11:51 +0000)]
Import IP Filter 4.1.13

18 years agoo Re-word a comment.
Maxim Konovalov [Wed, 16 Aug 2006 09:34:56 +0000 (09:34 +0000)]
o Re-word a comment.

PR: kern/102127
Submitted by: Eric Anderson

18 years agoSwap the names "sem_exithook" and "sem_exechook" in the previous commit to
Colin Percival [Wed, 16 Aug 2006 08:25:40 +0000 (08:25 +0000)]
Swap the names "sem_exithook" and "sem_exechook" in the previous commit to
match up with reality and the prototype definitions.

Register the sem_exechook as the "process_exec" event handler, not
sem_exithook.

Submitted by: rdivacky
Sponsored by: SoC 2006

18 years agoDocument EAGAIN failure per PR. (Finally!)
Wes Peters [Wed, 16 Aug 2006 02:56:51 +0000 (02:56 +0000)]
Document EAGAIN failure per PR.  (Finally!)

PR: 24125

18 years agoInclude sys/limits.h for INT_MAX. freebsd32_proto.h 1.58 does not include
Jung-uk Kim [Wed, 16 Aug 2006 00:02:36 +0000 (00:02 +0000)]
Include sys/limits.h for INT_MAX.  freebsd32_proto.h 1.58 does not include
sys/umtx.h any more and previously it was included from there.

18 years agoBackout revision 1.117, xorl and xorq have same result, but xorq needs
David Xu [Tue, 15 Aug 2006 22:43:02 +0000 (22:43 +0000)]
Backout revision 1.117, xorl and xorq have same result, but xorq needs
longer decoding.

18 years agoMove the setup of "diskless" /etc magic files from install_etc() to a
Simon L. B. Nielsen [Tue, 15 Aug 2006 21:59:33 +0000 (21:59 +0000)]
Move the setup of "diskless" /etc magic files from install_etc() to a
separate function which is called right after install_etc().  This makes
it simpler to (ab)use nanobsd.sh as a framework to build more normal
FreeBSD images where a normal /etc is used, since setup_nanobsd_etc()
can just be redefined.

OK'ed in principle by: phk
MFC after: 1 week

18 years ago- Fix typo in #error pragma: compitable -> compatible
Pav Lucistnik [Tue, 15 Aug 2006 20:10:49 +0000 (20:10 +0000)]
- Fix typo in #error pragma: compitable -> compatible

Submitted by: neologism

18 years agoAdd a new 'show sleepchain' ddb command similar to 'show lockchain' except
John Baldwin [Tue, 15 Aug 2006 18:29:01 +0000 (18:29 +0000)]
Add a new 'show sleepchain' ddb command similar to 'show lockchain' except
that it operates on lockmgr and sx locks.  This can be useful for tracking
down vnode deadlocks in VFS for example.  Note that this command is a bit
more fragile than 'show lockchain' as we have to poke around at the
wait channel of a thread to see if it points to either a struct lock or
a condition variable inside of a struct sx.  If td_wchan points to
something unmapped, then this command will terminate early due to a fault,
but no harm will be done.

18 years ago- When spinning on a spin lock, if the debugger is active or we are in a
John Baldwin [Tue, 15 Aug 2006 18:26:12 +0000 (18:26 +0000)]
- When spinning on a spin lock, if the debugger is active or we are in a
  panic, go ahead and do the longer DELAY(1) spin wait.
- If we panic due to spinning too long, print out a few more details
  including the pointer to the mutex in question and the tid of the owning
  thread.

18 years agoWe operate on 'statfs' structures, not on 'fsstat' structures.
Pawel Jakub Dawidek [Tue, 15 Aug 2006 18:17:03 +0000 (18:17 +0000)]
We operate on 'statfs' structures, not on 'fsstat' structures.

MFC after: 3 days

18 years agoadd comment about why we include opt_global.h
Warner Losh [Tue, 15 Aug 2006 18:11:25 +0000 (18:11 +0000)]
add comment about why we include opt_global.h

18 years agoIf rawname returns NULL, deal with it appropriately.
Matt Jacob [Tue, 15 Aug 2006 17:53:37 +0000 (17:53 +0000)]
If rawname returns NULL, deal with it appropriately.

PR: 94045
Submitted by: Andrey Elsukov
MFC after: 1 week

18 years agoUse SYS_AUE_<syscallname> to include the appropriate audit event identifier
John Baldwin [Tue, 15 Aug 2006 17:42:14 +0000 (17:42 +0000)]
Use SYS_AUE_<syscallname> to include the appropriate audit event identifier
for syscalls in kld's, even when compiled into the kernel statically.
Note that since this hardcodes the SYS_ prefix SYSCALL_MODULE_HELPER() now
only works for native ABI system calls.  Those are the only ones that
used the macro anyway, and I chose to not require a second argument to the
macro to specify the prefix or audit event directly.

18 years agoRegen to propogate <prefix>_AUE_<mumble> changes as well as the earlier
John Baldwin [Tue, 15 Aug 2006 17:37:01 +0000 (17:37 +0000)]
Regen to propogate <prefix>_AUE_<mumble> changes as well as the earlier
systrace changes.

18 years agoThis XXX remark was rendered false by rev. 103, which made the
Yaroslav Tykhiy [Tue, 15 Aug 2006 17:29:52 +0000 (17:29 +0000)]
This XXX remark was rendered false by rev. 103, which made the
VLAN_ARRAY case subject to rw locking, too.

18 years ago- Remove unused sysvec variables from various syscalls.conf.
John Baldwin [Tue, 15 Aug 2006 17:25:55 +0000 (17:25 +0000)]
- Remove unused sysvec variables from various syscalls.conf.
- Send the systrace_args files for all the compat ABIs to /dev/null for
  now.  Right now makesyscalls.sh generates a file with a hardcoded
  function name, so it wouldn't work for any of the ABIs anyway.  Probably
  the function name should be configurable via a 'systracename' variable
  and the functions should be stored in a function pointer in the sysvec
  structure.

18 years agoAdd a new set of macros <prefix>_AUE_<syscallname> to sysproto.h that
John Baldwin [Tue, 15 Aug 2006 17:09:32 +0000 (17:09 +0000)]
Add a new set of macros <prefix>_AUE_<syscallname> to sysproto.h that
map to the audit event associated with a specific system call.  For
example, SYS_AUE___semctl would be set to AUE_SEMCTL in sys/sysproto.h.

18 years agoMake it a tad easier to base other encapsulation schemes on this driver
Yaroslav Tykhiy [Tue, 15 Aug 2006 16:56:43 +0000 (16:56 +0000)]
Make it a tad easier to base other encapsulation schemes on this driver
by restoring the ifv_proto field in the vlan softc and putting it to use
this time.  It's a good companion for ifv_encaplen, which has already been
used throughout this driver.

18 years ago- Use NOSTD rather than NOIMPL for nfssvc() to match other syscalls
John Baldwin [Tue, 15 Aug 2006 16:45:41 +0000 (16:45 +0000)]
- Use NOSTD rather than NOIMPL for nfssvc() to match other syscalls
  provided via klds.
- Correct audit identifier for nfssvc().

18 years agoRename 'show lockchain' to 'show locktree' and 'show threadchain' to
John Baldwin [Tue, 15 Aug 2006 16:44:18 +0000 (16:44 +0000)]
Rename 'show lockchain' to 'show locktree' and 'show threadchain' to
'show lockchain'.  The churn is because I'm about to add a new
'show sleepchain' similar to 'show lockchain' for sleep locks (lockmgr and
sx) and 'show threadchain' was a bit ambiguous as both commands show
a chain of thread dependencies, 'lockchain' is for non-sleepable locks
(mtx and rw) and 'sleepchain' is for sleepable locks.

18 years agoOoops we need to include <machine/vmparam.h> to get the definition of
Olivier Houchard [Tue, 15 Aug 2006 16:43:07 +0000 (16:43 +0000)]
Ooops we need to include <machine/vmparam.h> to get the definition of
KERNBASE and VM_MAXUSER_ADDRESS.
Remove the useless include of opt_global.h, as noticed by netchild@ (the one
in arm/elf_trampoline.c is legit, because this file is compiled outside the
kernel, and doesn't use the standard CFLAGS).

18 years agoAdd a 'show lockmgr' command that dumps the relevant details of a lockmgr
John Baldwin [Tue, 15 Aug 2006 16:42:16 +0000 (16:42 +0000)]
Add a 'show lockmgr' command that dumps the relevant details of a lockmgr
lock.

18 years agoSet IFF_DRV_RUNNING on vlan(4) once in vlan_config(),
Yaroslav Tykhiy [Tue, 15 Aug 2006 16:40:27 +0000 (16:40 +0000)]
Set IFF_DRV_RUNNING on vlan(4) once in vlan_config(),
not at many places after each call to vlan_config().
This is consistent with IFF_DRV_RUNNING being unset
in vlan_unconfig().

18 years agoNo need for opt_global.h here
Warner Losh [Tue, 15 Aug 2006 15:48:58 +0000 (15:48 +0000)]
No need for opt_global.h here

18 years agoRemove the include of opt_global.h. It's included globally by a command
Alexander Leidinger [Tue, 15 Aug 2006 15:27:13 +0000 (15:27 +0000)]
Remove the include of opt_global.h. It's included globally by a command
line switch. Other files which may make the same mistake (according to
fxr.watson.org) but aren't fixed in this commit (people with more clue
about those files should fix this):
 - i386/xbox/xbox.c
 - arm/arm/elf_trampoline.c
 - arm/arm/mem.c

Noticed by: cognet

18 years agoDisable some parts of the code on amd64 for now to prevent a panic. A better
Alexander Leidinger [Tue, 15 Aug 2006 15:15:17 +0000 (15:15 +0000)]
Disable some parts of the code on amd64 for now to prevent a panic. A better
fix will come later.

Sponsored by: Google SoC 2006
Submitted by: rdivacky

18 years agoInitialize the eventhandlers, mutexes and sx locks.
Alexander Leidinger [Tue, 15 Aug 2006 14:58:15 +0000 (14:58 +0000)]
Initialize the eventhandlers, mutexes and sx locks.

Sponsored by: Google SoC 2006
Submitted by: rdivacky

18 years agoAdd include of opt_global.h, else the futex operations aren't locked on
Alexander Leidinger [Tue, 15 Aug 2006 13:45:39 +0000 (13:45 +0000)]
Add include of opt_global.h, else the futex operations aren't locked on
SMP systems.

Sponsored by: Google SoC 2006
Submitted by: rdivacky

18 years agoFix printing of integer Kelvins broken in rev. 1.71, which is
Ruslan Ermilov [Tue, 15 Aug 2006 13:32:39 +0000 (13:32 +0000)]
Fix printing of integer Kelvins broken in rev. 1.71, which is
fatal on sizeof(int) != sizeof(long) systems (such as amd64).

MFC after: 1 day

18 years ago- Add the new files to the linux module.
Alexander Leidinger [Tue, 15 Aug 2006 13:01:36 +0000 (13:01 +0000)]
- Add the new files to the linux module.
- Prepare the modules for build on amd64, but don't build them there as
  part of the kernel build yet. The code for the missing symbols on amd64
  isn't committed and it may be solved differently.

Sponsored by: Google SoC 2006
Submitted by: rdivacky

18 years agoadd autogenerated systrace_args stuff for dtrace
Alexander Leidinger [Tue, 15 Aug 2006 12:56:36 +0000 (12:56 +0000)]
add autogenerated systrace_args stuff for dtrace

18 years agoAdd the linux 2.6.x stuff (not used by default!):
Alexander Leidinger [Tue, 15 Aug 2006 12:54:30 +0000 (12:54 +0000)]
Add the linux 2.6.x stuff (not used by default!):
 - TLS - complete
 - pid/tid mangling - complete
 - thread area - complete
 - futexes - complete with issues
 - clone() extension - complete with some possible minor issues
 - mq*/timer*/clock* stuff - complete but untested and the mq* stuff is
   disabled when not build as part of the kernel with native FreeBSD mq*
   support (module support for this will come later)

Tested with:
 - linux-firefox - works, tested
 - linux-opera - works, tested
 - linux-realplay - doesnt work, issue with futexes
 - linux-skype - doesnt work, issue with futexes
 - linux-rt2-demo - works, tested
 - linux-acroread - doesnt work, unknown reason (coredump) and sometimes
   issue with futexes
 - various unix utilities in linux-base-gentoo3 and linux-base-fc4:
   everything tried worked

On amd64 not everything is supported like on i386, the catchup is planned for
later when the remaining bugs in the new functions are fixed.

To test this new stuff, you have to run
sysctl compat.linux.osrelease=2.6.16
to switch back use
sysctl compat.linux.osrelease=2.4.2

Don't switch while running a linux program, strange things may or may not
happen.

Sponsored by: Google SoC 2006
Submitted by: rdivacky
Some suggestions/help by: jhb, kib, manu@NetBSD.org, netchild

18 years agoregen
Alexander Leidinger [Tue, 15 Aug 2006 12:51:45 +0000 (12:51 +0000)]
regen

18 years agoBecause fuword on AMD64 returns 64bit long integer -1 on fault, clear
David Xu [Tue, 15 Aug 2006 12:45:51 +0000 (12:45 +0000)]
Because fuword on AMD64 returns 64bit long integer -1 on fault, clear
entire %rax to zero instead of only clearing %eax, otherwise it will
leave garbage data in upper 32 bits.

18 years agoAdd new syscalls in the linuxolator (only used when the sysctl
Alexander Leidinger [Tue, 15 Aug 2006 12:28:14 +0000 (12:28 +0000)]
Add new syscalls in the linuxolator (only used when the sysctl
compat.linux.osrelease is changed to "2.6.16" or similar).

On amd64 not everything is supported like on i386, the catchup is planned for
later when the remaining bugs in the new functions are fixed.

Sponsored by: Google SoC 2006
Submitted by: rdivacky

18 years agoAdd some new files needed for linux 2.6.x compatibility.
Alexander Leidinger [Tue, 15 Aug 2006 12:20:59 +0000 (12:20 +0000)]
Add some new files needed for linux 2.6.x compatibility.

Please don't style(9) the NetBSD code, we want to stay in sync. Not imported
on a vendor branch since we need local changes.

Sponsored by: Google SoC 2006
Submitted by: rdivacky
With help from: manu@NetBSD.org
Obtained from: NetBSD (linux_{futex,time}.*)

18 years ago- Add some ASM stuff needed for futexes (linuxolator).
Alexander Leidinger [Tue, 15 Aug 2006 12:14:36 +0000 (12:14 +0000)]
- Add some ASM stuff needed for futexes (linuxolator).

Sponsored by: Google SoC 2006
Submitted by: rdivacky
With help from: kib

18 years ago- Change process_exec function handlers prototype to include struct
Alexander Leidinger [Tue, 15 Aug 2006 12:10:57 +0000 (12:10 +0000)]
- Change process_exec function handlers prototype to include struct
  image_params arg.
- Change struct image_params to include struct sysentvec pointer and
  initialize it.
- Change all consumers of process_exit/process_exec eventhandlers to
  new prototypes (includes splitting up into distinct exec/exit functions).
- Add eventhandler to userret.

Sponsored by: Google SoC 2006
Submitted by: rdivacky
Parts suggested by: jhb (on hackers@)

18 years agoNote Intel ICH8 and ESB2 support.
Christian Brueffer [Tue, 15 Aug 2006 08:27:38 +0000 (08:27 +0000)]
Note Intel ICH8 and ESB2 support.

18 years agoAdd inverted amplifier sense quirks for Compaq Presario B3800
Pyun YongHyeon [Tue, 15 Aug 2006 07:37:41 +0000 (07:37 +0000)]
Add inverted amplifier sense quirks for Compaq Presario B3800

Reported by: Nick Withers < nick AT nickwithers DOT com >
Tested by: Nick Withers < nick AT nickwithers DOT com >
No objection from: ariff
MFC after: 1 week

18 years agoRemove extra '*/' comment close. In code not normally compiled but a bug never the...
Julian Elischer [Tue, 15 Aug 2006 04:56:29 +0000 (04:56 +0000)]
Remove extra '*/' comment close. In code not normally compiled but a bug never the less.