Commit Graph

87955 Commits

Author SHA1 Message Date
yamt
326517bd8d add some #include. 2007-06-02 03:32:51 +00:00
nisimura
404200bf24 - add MPC8245 to cpuname table. 2007-06-02 02:41:41 +00:00
enami
0c8f6382c6 Reduce difference between compat_ifconf() and ifconf():
- exit on error rather than proceeding to next interface.
- make code simpler.
2007-06-02 01:29:25 +00:00
enami
d35ef328a7 - Fix obvious typos so that sendto(2) works.
- Wrap lines again.
2007-06-02 01:24:34 +00:00
dogcow
0023297d28 it seems like a good idea to include <sys/condvar.h>, as we're using them... 2007-06-01 23:16:33 +00:00
dsl
d7f93c5c67 Split sys_bind() and sys_connect() so that compat code can use common code
once the 'address' has been copied into an mbuf.
Add extra flags for 'struct msghdr.msg_flags' to indicate that the address
  and control are already in mbufs, and that the uio structure is in userspace
  for sending data, rename sendit() to do_sys_sendmsg() to ensure no old code
  passes in random flags.
Changes to compat code to use new functions - removing some stackgap use.
Fix a 'use after free' in compat_43_sys_recvmsg.
I ***THINK*** the code that converts 'cmsg' formatted data is borked!
svr4_stream.c ought to be generated from svr4_32_stream.c during the build.
2007-06-01 22:53:52 +00:00
dsl
d95fed7315 (Ab)use a KTR_USER trace entry for the linux socket command and arguments. 2007-06-01 22:42:47 +00:00
dsl
79b4d16759 KNF and layout changes to match (my copy of) svr4/svr4_stream.c 2007-06-01 22:15:38 +00:00
dsl
d23c3b01a0 Add a ktrkuser() function that can be used to generate a KTR_USER trace
entry from kernel-resident data.
Mainly so I can (ab)use the KTR_USER entry for extra info.
2007-06-01 20:24:21 +00:00
uwe
4a747421e0 Rename j6x0tp_set_enable to j6x0tp_enable_child which better reflects
what this function does and is way less confusing too.
2007-06-01 18:23:46 +00:00
jmcneill
58b50f5359 Regen. 2007-06-01 17:49:19 +00:00
jmcneill
635fbd63e1 Add RIM BlackBerry. 2007-06-01 17:48:56 +00:00
uwe
aa1315c604 Cosmetic. Use device_xname. Don't compile debugging support. Drop
out-of-date comment for j6x0tp_attach (we haven't been using submatch
for quite a while).
2007-06-01 17:44:46 +00:00
yamt
7e6f80a234 \xa0 -> space. 2007-06-01 15:59:37 +00:00
christos
89734304c6 - fix unused variable when none of the compat options are defined.
- remove debugging
2007-06-01 15:41:15 +00:00
yamt
63abe2b629 nfssvc_nfsd: check SPCF_SHOULDYIELD and yield cpu. 2007-06-01 14:43:17 +00:00
uwe
6542efa4c8 Add COMPAT_40. 2007-06-01 14:30:32 +00:00
blymn
12de420234 Add smsc device 2007-06-01 14:26:36 +00:00
nisimura
c966ccb8d8 - add booted_device and booted_kernel sysctl nodes to let userland know
about runtime environment.
2007-06-01 14:23:50 +00:00
blymn
3099e9ed7a Added smsc device. 2007-06-01 14:14:16 +00:00
blymn
eeece1c927 Add driver for the hardware monitoring portion of the SMSC LPC47B397 2007-06-01 14:11:59 +00:00
yamt
ab5f84630b nfssvc_nfsd: add assertions. 2007-06-01 14:10:02 +00:00
uwe
0390c5df8f Add COMPAT_40. 2007-06-01 13:20:56 +00:00
yamt
05aaff39ff use mutex and condvar. 2007-06-01 11:56:03 +00:00
yamt
61131eb130 nfsdsock_lock: fix an inverted check of SLP_VALID. 2007-06-01 11:38:44 +00:00
he
8f77cc1c43 Fallout from the interface ioctl changes:
OSIOCGIFADDR -> OOSIOCGIFADDR
OSIOCGIFDSTADDR -> OOSIOCGIFDSTADDR
OSIOCGIFNETMASK -> OOSIOCGIFNETMASK

Also, one instance of needing to include <net/if.h> before
<compat/sys/sockio.h> due to use of IFNAMSIZ in the latter.

Discussed with christos.
2007-06-01 11:36:35 +00:00
skrll
322ba9d3c4 Another missed changed for acorn26 idlelwp. Provide IRQenable/IRQdisable
macros.
2007-06-01 11:31:01 +00:00
hannken
b110563f3a Fallout from last commit:
OSIOCGIFADDR -> OOSIOCGIFADDR
OSIOCGIFDSTADDR -> OOSIOCGIFDSTADDR
OSIOCGIFNETMASK -> OOSIOCGIFNETMASK

Sparc64 compiles again.
2007-06-01 10:21:22 +00:00
enami
723ff30abc Fix some bugs in ifconf():
- maintain space left correctly.  the pointer is advanced by the size
  of struct ifreq when length of address is small.
- single sizeof operator is enough to take the size of struct.
- the type of `sz' must be singed type since it is/was compared against to
  the variable which may become negative.
- no need to traverse rest of interfaces once we got an error.  note that
  the latter `break' statement was inside inner loop.
2007-06-01 09:35:47 +00:00
skrll
4868ebda4e want_resched is no longer required here. 2007-06-01 07:21:51 +00:00
skrll
afcc3d424c Missed this in previous commit.
Attempt to adacpt acorn26 to idlelwp. This is untested.

OK'd by Ben Harris
2007-06-01 07:21:26 +00:00
skrll
fb901b95c7 __HAVE_MD_RUNQUEUE is no longer relevant. 2007-06-01 07:18:31 +00:00
skrll
a6c4dd7bcd Attempt to adacpt acorn26 to idlelwp. This is untested.
OK'd by Ben Harris
2007-06-01 07:04:53 +00:00
mhitch
fb64759fb7 Get rid of one more incompatibility with pmap_motorola.c from pmap_bootstrap(). 2007-06-01 04:05:05 +00:00
christos
ab89ea8ca6 message size == 0 is valid. From Markus Mayer 2007-05-31 23:34:42 +00:00
mhitch
d9ac73c21c PTE for Sysptmap was not getting set correctly. 2007-05-31 22:16:48 +00:00
ad
057666ad0c setrunnable: adjust to slightly different locking strategy post yamt-idlewlp.
Should fix kern/36398. Untested due to connectivity issues.
2007-05-31 22:06:09 +00:00
bouyer
03182b8569 Move mapping of AHCI register so that jmide knows if it fails, and avoids
calling ahci_intr() (which would cause a panic).
Try to use the pciide function for SATA drives if attaching ahci fails (this
doesn't seems to work though, it may be BIOS dependant).
Thanks to Gary Duzan for testing multiple pacthes.
2007-05-31 21:26:48 +00:00
darrenr
fade943a7f The wrong condition was being tested for when deciding which fields to
update in ICMP error messages.  In the test case for this, the wrong
input was actually being used (it should be the headers from the previous
packet output) and therefore the expected results were also wildly wrong.

kern/36309
2007-05-31 10:33:54 +00:00
rmind
59085afd2c Make AIO initialization MP-safe.
Actually, lwp_exit() with (l != curlwp) will not work.
This fix might be pulled up from vmlocking branch.
2007-05-31 06:24:23 +00:00
rmind
e825692169 As suggested by <yamt>, make the aiocb structure alignment friendly.
- Change the type of the internal members to int
- Reorder the members
2007-05-31 05:39:24 +00:00
rmind
0a227b1913 - Make aio_worker to handle pending exits and coredumps
- Allow aio_suspend() to be ended early by a signal
- Fix reference counting on LIO structures (remove hack)
- Use two global pools for AIO structures
- Minor cleanups

Patch provided by <ad>. Some additional modifications by me.
Reviewed by <yamt>.
2007-05-31 05:29:43 +00:00
christos
f6ca3502bf provide the minimum ifreq size (when sockaddr is empty) 2007-05-31 02:56:50 +00:00
christos
d81aadc176 Move the nasty ifdefs in one place. Requested by ad and dyoung. 2007-05-30 21:02:02 +00:00
christos
3fe1c0adb5 lock_stubs.S depends on assym.h 2007-05-30 17:16:55 +00:00
xtraeme
e09d1dbb48 Fix for SIOGIFCAP provided by christos, test successful. 2007-05-30 17:03:30 +00:00
darrenr
5daa30646c the call to ipf_freetoken() free's the structure pointed to by 't' so doing
any sort of dereference of it afterwards is just a bad idea...
2007-05-30 06:27:11 +00:00
christos
9bf57b1f3a make this compile again
XXX: The ioctls will need to be fixed.
2007-05-30 00:00:59 +00:00
christos
d5dcfde7aa wrap the whole function in COMPAT_40 2007-05-29 23:57:33 +00:00
christos
781021f65e fix unused variable. 2007-05-29 23:32:41 +00:00