Commit Graph

178995 Commits

Author SHA1 Message Date
he 009f7e26ee Now that the stand/ code was converted to use memcpy(), the private
implementation of bcopy() needs to become memcpy() as well.  The
simpler local implementation is needed so that the boot code doesn't
overflow the available space.
2009-03-19 14:05:24 +00:00
pooka 5ac2257698 Release dvp in mknod error branch.
Nicolas Joly, PR kern/41006
2009-03-19 13:47:32 +00:00
pooka 83102249b5 Reflect the change to archivebuild in bsd.lib.mk rev 1.296 for
deterministic builds, as hinted by perry.
2009-03-19 12:01:50 +00:00
tsutsui 3c7a0b7662 Revert previous. MI libsa doesn't provide bcmp(). 2009-03-19 10:20:54 +00:00
tsutsui 18014b1a99 Remove bcmp() from MD libsa.
XXX: These ports should be rewritten to use MI libsa for maintainability.
2009-03-19 10:19:33 +00:00
pooka 18c512728c Simple syscall_establish() support.
(should use kernel sources version, but it's buried inside a
module with a lot of junk in it, so shortcut for now)
2009-03-19 09:36:38 +00:00
pooka 18c141daf8 Make it possible to mount a file system through the mount() system
call in addition to the old rump_mnt_mount().  Some issues remain
(but require more deeprooted changes):
* it is possible to mount only to /
* unmount needs MNT_FORCE due to the new fs being root and having
  a bonus reference
* cwdi is not set (since there is no concept of a process)
2009-03-19 09:14:37 +00:00
pooka 40e16b3309 regen: rump_sys_mount() 2009-03-19 09:09:36 +00:00
pooka 226a234960 make mount() a rump call 2009-03-19 09:08:35 +00:00
pooka 1abcd0c8e6 +VT_RUMP 2009-03-19 09:07:54 +00:00
he d8d70d1b63 Actually... We need libkern.h also under _STANDALONE, so that
_DIAGASSERT gets defined.  Fixes the mvmeppc libsa build.
2009-03-19 08:39:54 +00:00
he 3b9146b27b Add a prototype for the bcmp() function as well. 2009-03-19 08:38:12 +00:00
he 7ee1268353 Correct one more bungled bcopy() -> memcpy() conversion. 2009-03-19 08:33:14 +00:00
he 59e8c39718 Correct two more bungled bcopy() -> memcpy() conversions. 2009-03-19 08:22:29 +00:00
uebayasi 4a378cffe7 Revert previous since it was just wrong. 2009-03-19 08:04:38 +00:00
uebayasi fe4f9942ce void f(void (*g)()); -> void f(void (*g)(void)); 2009-03-19 05:31:26 +00:00
uebayasi 2e8ee3c0d9 Fix build on LP64. While here KNF around. 2009-03-19 03:05:14 +00:00
mrg 4df09e915b remove a bunch of special casing to handle improperly set segment
registers.  if we faulted trying to set them, just fall into
"we_re_toast", and arrange for a SEGV to be delivered to the
userland process.  fixes kernel mode faults.

from andrew doran.
2009-03-19 02:59:00 +00:00
he 9df5574fb1 Correct a bzero() -> memset conversion. 2009-03-18 22:13:05 +00:00
he 2d28d1f215 Correct a couple of bcopy() -> memcpy() conversions which did not
properly handle their arguments.
2009-03-18 22:08:57 +00:00
christos 0efea3414c use progname instead of getprogname() for portability. 2009-03-18 22:02:49 +00:00
dyoung 75c7534526 Remove native compatibility options to stop the config(1) errors
that Juergen Hannken-Illjes reports:

    sys/arch/i386/conf/MONOLITHIC:16: already have options `COMPAT_NOMID'
    sys/arch/i386/conf/MONOLITHIC:17: already have options `COMPAT_09'
    ...
2009-03-18 20:57:45 +00:00
pooka f9b03e467a Remember to kqueue_init() too so that non-timer events work. 2009-03-18 18:00:38 +00:00
pooka 471edf2cdf Support kqueue in the rump virtual kernel. 2009-03-18 17:56:15 +00:00
pooka 9f7fb39b1d regen: kevent and kqueue 2009-03-18 17:52:19 +00:00
pooka ddf9eb29c5 kqueue and kevent for rump 2009-03-18 17:51:17 +00:00
pooka 6a77d87235 regen: arg -> callarg 2009-03-18 17:30:25 +00:00
pooka 0ef29cbdba Rename rump argument marshalling structure variable to "callarg" to
avoid collision with system calls which use "arg".
2009-03-18 17:27:04 +00:00
cegger e2cb85904d bcopy -> memcpy 2009-03-18 17:06:41 +00:00
cegger c363a9cb62 bzero -> memset 2009-03-18 16:00:08 +00:00
pooka 938ad48315 When doing I/O to a regular file, try to use mmio instead of
read/write.  This makes a rump_fs file server around 5% faster.
2009-03-18 15:39:27 +00:00
pooka f09f82998f * allow to specify PROT_READ/PROT_WRITE when mmapping a file
* add msync
2009-03-18 15:32:27 +00:00
cegger 35fb64746b bcmp -> memcmp 2009-03-18 15:14:29 +00:00
tsutsui 83a448a377 Include <string.h> for memcpy(3). 2009-03-18 13:24:38 +00:00
tsutsui d0b9e6c924 - remove bcmp(9), bcopy(9), and bzero(9) from libkern since <sys/systm.h> has
macro which replace them with mem*() functions in #ifdef _KERNEL as noted
  in man pages
- move declarations of bcopy(3) and bzero(3) into <lib/libsa/stand.h>
  since they are still in libsa for some MD standalone sources
  (I guess all bcmp(3) in standalone sources have been replaced with memcmp(3)
   but they should be replaced with memcmp() anyway)
2009-03-18 12:25:06 +00:00
wiz 479c390e0e Drop trailing whitespace. 2009-03-18 10:46:58 +00:00
cegger a1f5aecf36 buildfix: undo previous 2009-03-18 10:41:46 +00:00
cegger df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
pooka 61260da885 In case the portal provider fails, do not try to pass an
uninitialized fd value.  Also, propagate errno to the caller.
2009-03-18 09:10:16 +00:00
cegger 20cd1777db ansify function definitions 2009-03-18 07:41:54 +00:00
mike 0779b10efc Do not allow duplicate group id in groupmod unless -o is specified.
Closes PR bin/40393
2009-03-18 04:59:45 +00:00
uwe 7ae7c6b0f8 Turn on display on attachment. Fixes the scenario when serial console
is used and you reboot (using kloader) with screen turned off.
2009-03-18 02:49:34 +00:00
lukem fd6e87486b Fix 'vfork clobber' warning on vax.
Problem noted by and fix confirmed by Olaf 'Rhialto' Seibert.
2009-03-18 02:27:41 +00:00
pgoyette dab2b670bf Format the address/offset of hexdump in hex, not decimal.
Addresses my PR bin/41035
2009-03-18 01:28:25 +00:00
he 245ee9af71 Add local declarations of bcmp() and bzero() because libkern.h no longer
provides those declarations.

It's possible that these can be removed later when we find out whether
these functions are actually needed in the kernel, but meanwhile, this
allows alpha, hp700 and the powerpc ports (who all build these as part
of libkern) to complete their builds.
2009-03-17 23:42:45 +00:00
reinoud 83969672ba Fix long standing problem with CD/DVD writing with `dd'. If done this way the
device will remain in a wait-for-more-stuff-to-be-written state delaying other
SCSI calls, esp. some read-size or read-layout calls, until its told there is
no more comming.

To fix this, on last close explicitly flush the caches releasing the device
from this mode and allowing other SCSI commands to reach it.

This fixes PR 40528
2009-03-17 21:25:47 +00:00
dyoung 69fbb7297e Reactivate native compatibility in GENERIC. 2009-03-17 20:04:39 +00:00
he 6dc3c9a69e Make putchar() conform to the stand.h prototype, so that this builds again. 2009-03-17 19:41:32 +00:00
dyoung 018696dd66 Handle child-detachment by NULL'ing the child pointer so that
auich_detach() does not subsequently dereference a dangling pointer.
2009-03-17 19:38:34 +00:00
dyoung 4a8da47938 Expand a lot of macros from sys/dev/usb/usb_port.h.
Handle child-detachment by NULL'ing the child pointer, so that
umass_detach() will not subsequently dereference the dangling
pointer.
2009-03-17 19:12:17 +00:00