]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoChange comment explaining another usage of __SMOD
ache [Tue, 23 Oct 2001 23:05:15 +0000 (23:05 +0000)]
Change comment explaining another usage of __SMOD

22 years agoRemove if_wx.
jhb [Tue, 23 Oct 2001 22:56:41 +0000 (22:56 +0000)]
Remove if_wx.

Submitted by: Dave Cornejo <dave@dogwood.com>

22 years agoDocument sx_assert(9).
jhb [Tue, 23 Oct 2001 22:51:59 +0000 (22:51 +0000)]
Document sx_assert(9).

22 years agoDisallow fseek() optimization in internal read buffer, if pointer is moved by
ache [Tue, 23 Oct 2001 22:48:00 +0000 (22:48 +0000)]
Disallow fseek() optimization in internal read buffer, if pointer is moved by
seek. It means that beginning of read buffer becomes not the same as current
file position.

22 years agoRegen.
n_hibma [Tue, 23 Oct 2001 22:44:36 +0000 (22:44 +0000)]
Regen.

22 years agoAdd Olympus C-700
n_hibma [Tue, 23 Oct 2001 22:44:03 +0000 (22:44 +0000)]
Add Olympus C-700

22 years agoChange the sx(9) assertion API to use a sx_assert() function similar to
jhb [Tue, 23 Oct 2001 22:39:11 +0000 (22:39 +0000)]
Change the sx(9) assertion API to use a sx_assert() function similar to
mtx_assert(9) rather than several SX_ASSERT_* macros.

22 years agoAllow hw.acpi.cpu.{economy,performance}_speed to be set from the loader
jhb [Tue, 23 Oct 2001 22:37:36 +0000 (22:37 +0000)]
Allow hw.acpi.cpu.{economy,performance}_speed to be set from the loader
via tunables.

22 years agoChange TUNABLE_*_FETCH to have a return value of 0 if the variable was not
jhb [Tue, 23 Oct 2001 22:35:25 +0000 (22:35 +0000)]
Change TUNABLE_*_FETCH to have a return value of 0 if the variable was not
found or successfully converted and true otherwise.

22 years ago- Change getenv_quad() to return an int instead of a quad_t since it
jhb [Tue, 23 Oct 2001 22:34:36 +0000 (22:34 +0000)]
- Change getenv_quad() to return an int instead of a quad_t since it
  returns an success/failure code rather than the actual value.
- Add getenv_string() which copies a string from the environment to another
  string and returns true on success.

22 years agoSet the code and signal for the F00F hack fault directly instead of
jhb [Tue, 23 Oct 2001 22:29:16 +0000 (22:29 +0000)]
Set the code and signal for the F00F hack fault directly instead of
changing the code in the trapframe and looping back to the top of trap
again.

Tested by: cjc

22 years agoFix RAW dependency violation when compiled with gcc-3
peter [Tue, 23 Oct 2001 22:23:22 +0000 (22:23 +0000)]
Fix RAW dependency violation when compiled with gcc-3
Warning: Use of 'br.ret.sptk.many' violates RAW dependency 'PSR.tb' (data)

22 years agoAdd a manual page.
jlemon [Tue, 23 Oct 2001 22:13:34 +0000 (22:13 +0000)]
Add a manual page.

22 years agoMake sure the copies: and symlinks: targets exist in the case of the
markm [Tue, 23 Oct 2001 21:28:39 +0000 (21:28 +0000)]
Make sure the copies: and symlinks: targets exist in the case of the
empty ".for ..." loop.

22 years agoHook up conscontrol to the build.
jlemon [Tue, 23 Oct 2001 20:37:07 +0000 (20:37 +0000)]
Hook up conscontrol to the build.

22 years agoAdd conscontrol, a front end interface for manipulating consoles.
jlemon [Tue, 23 Oct 2001 20:36:43 +0000 (20:36 +0000)]
Add conscontrol, a front end interface for manipulating consoles.

22 years agoClarification: &release.next; refers to a future FreeBSD release.
bmah [Tue, 23 Oct 2001 20:34:41 +0000 (20:34 +0000)]
Clarification:  &release.next; refers to a future FreeBSD release.

Submitted by: phantom

22 years agoSet RB_MULTIPLE (multiple console support) if the kernel is booted
jlemon [Tue, 23 Oct 2001 20:27:48 +0000 (20:27 +0000)]
Set RB_MULTIPLE (multiple console support) if the kernel is booted
with the -D flag.

22 years agoFix typo.
murray [Tue, 23 Oct 2001 20:27:06 +0000 (20:27 +0000)]
Fix typo.

PR: docs/31388
Submitted by: Yoshihiko Sarumaru <mistral@imasy.or.jp>

22 years agoAllow the RBX_DUAL flag to appear in bootinfo.
jlemon [Tue, 23 Oct 2001 20:27:05 +0000 (20:27 +0000)]
Allow the RBX_DUAL flag to appear in bootinfo.

22 years agoImplement multiple low-level console support.
jlemon [Tue, 23 Oct 2001 20:25:50 +0000 (20:25 +0000)]
Implement multiple low-level console support.

22 years agoAdd RB_MULTIPLE flag so the bootloader can turn on mulitiple console
jlemon [Tue, 23 Oct 2001 20:22:04 +0000 (20:22 +0000)]
Add RB_MULTIPLE flag so the bootloader can turn on mulitiple console
support.  This flag value is identical to RBX_DUAL from boot2.

22 years agoAdd a siocnterm function for the CONS_DRIVER function vector.
jlemon [Tue, 23 Oct 2001 20:16:56 +0000 (20:16 +0000)]
Add a siocnterm function for the CONS_DRIVER function vector.

22 years agoo Add two comments identifying problems with the current nfs_lock.c
rwatson [Tue, 23 Oct 2001 19:11:31 +0000 (19:11 +0000)]
o Add two comments identifying problems with the current nfs_lock.c
  implementation, so that the information doesn't get lost.
  (1) /var/run/lock is looked up relative to the current thread's root
      directory, but it's not clear that's desirable.
  (2) A race condition associated with live credential modification on
      a shared credential is present when privilege is granted for
      the purposes of talking to /var/run/lock.

22 years agoo vn_open() fails to call VOP_CLOSE() if vfs_object_create fails. Ideally
rwatson [Tue, 23 Oct 2001 19:09:01 +0000 (19:09 +0000)]
o vn_open() fails to call VOP_CLOSE() if vfs_object_create fails.  Ideally
  all successful calls to VOP_OPEN() might be reflected in a call to
  VOP_CLOSE().  For now, simply add a comment reflecting this problem;
  this should be fixed at some point.

22 years agoAssert that Giant is not held in mi_switch() unless the process state
jhb [Tue, 23 Oct 2001 17:52:49 +0000 (17:52 +0000)]
Assert that Giant is not held in mi_switch() unless the process state
is SMTX or SRUN.

22 years agoAlter the suggested way of writing structurtes to make them actuallys
julian [Tue, 23 Oct 2001 17:40:37 +0000 (17:40 +0000)]
Alter the suggested way of writing structurtes to make them actuallys
readble when there are compound sub-elements (e.g. other structs).

Reviewed by: {peter,dillon,des,imp,jlemon}@freebsd.org
MFC after: 1 week

22 years agoMove the 'type' variable inside the block where it is actually used.
jhb [Tue, 23 Oct 2001 17:31:11 +0000 (17:31 +0000)]
Move the 'type' variable inside the block where it is actually used.

22 years agoBreak out the bus front ends into their own files. Rewrite
imp [Tue, 23 Oct 2001 15:17:33 +0000 (15:17 +0000)]
Break out the bus front ends into their own files.  Rewrite
sio_pccard_detach to use new siodetach.  Add an extra arg to sioprobe
to tell driver to probe/not probe the device for IRQs.

This incorporates most of Bruce's review material.  I'm at a good
checkpoint, but there will be more to come based on bde's further
reviews.

Reviewed by: bde

22 years agoCollect multi name handling.
takawata [Tue, 23 Oct 2001 14:54:15 +0000 (14:54 +0000)]
Collect multi name handling.

Reported by :    Stephan Kulow <coolo@caldera.de>

22 years agoDon't avoid setting a 0 second timer in datalink_StartDialTimer() by
brian [Tue, 23 Oct 2001 13:52:19 +0000 (13:52 +0000)]
Don't avoid setting a 0 second timer in datalink_StartDialTimer() by
not setting any timer.  Instead, set a 1 millisecond timer.

This ensures that ppp will come out of it's select() call after
losing carrier in -ddial mode with a reconnect period of 0 and
going to ST_OPENING, rather than waiting indefinitely for some
other event to wake ppp up.

Bump the ppp version number to indicate the event.

MFC after: 3 days

22 years agoPartially port kvm to ia64 - virtual to physical translation is incomplete.
dfr [Tue, 23 Oct 2001 11:05:35 +0000 (11:05 +0000)]
Partially port kvm to ia64 - virtual to physical translation is incomplete.

22 years agoTurn off the single-user override. We've been running multi-user
peter [Tue, 23 Oct 2001 11:04:43 +0000 (11:04 +0000)]
Turn off the single-user override.  We've been running multi-user
for some time.  Having a machine boot unattended is useful. :-)

22 years agoRemove references to nfsiod(8) and nfs_client_flags
ru [Tue, 23 Oct 2001 10:31:52 +0000 (10:31 +0000)]
Remove references to nfsiod(8) and nfs_client_flags
now that they are obsolete.

22 years ago__FBSDID() (second half of src/lib/libcrypt changes)
peter [Tue, 23 Oct 2001 10:23:32 +0000 (10:23 +0000)]
__FBSDID()  (second half of src/lib/libcrypt changes)

22 years agoia64 support. Due to the bogus placement of some i4b includes, it is
peter [Tue, 23 Oct 2001 10:20:24 +0000 (10:20 +0000)]
ia64 support.  Due to the bogus placement of some i4b includes, it is
i386-only, even though it would work on all the isa-capable platforms.
Change the NOI4B so that instead of excluding alpha, it only includes i386.

22 years agoAdd data serialisations after ptc and mov to rr[] instructions.
dfr [Tue, 23 Oct 2001 10:20:04 +0000 (10:20 +0000)]
Add data serialisations after ptc and mov to rr[] instructions.

22 years agoia64 support. Hide a.out support solely under i386. While alpha never
peter [Tue, 23 Oct 2001 10:18:41 +0000 (10:18 +0000)]
ia64 support.  Hide a.out support solely under i386.  While alpha never
was released in a.out form, it does define the a.out data structures.
The ia64 port does not.

22 years agoia64 support: move pnpinfo to i386 and alpha sections for now. i386 has
peter [Tue, 23 Oct 2001 10:16:04 +0000 (10:16 +0000)]
ia64 support:  move pnpinfo to i386 and alpha sections for now. i386 has
native inb/outb etc, and alpha has libio.  ia64 doesn't have any yet.

move pppctl to the NOLIBC_R section (libc_r is not possible on ia64 in
its present form due to assumptions about setjmp/longjmp magic)

22 years agoAdd ia64 support (stubs, just like i386, alpha)
peter [Tue, 23 Oct 2001 10:12:10 +0000 (10:12 +0000)]
Add ia64 support (stubs, just like i386, alpha)

22 years agoAdd a bunch of new PCI ID's for Intel ATA chips.
sos [Tue, 23 Oct 2001 09:57:49 +0000 (09:57 +0000)]
Add a bunch of new PCI ID's for Intel ATA chips.

22 years agofix broken `compat_atdisk'(replace raw device name with block device's).
amorita [Tue, 23 Oct 2001 09:39:09 +0000 (09:39 +0000)]
fix broken `compat_atdisk'(replace raw device name with block device's).

Reviewed by: nyan
MFC after: 3 days

22 years agoAdd experimental support for the HighPoint HPT372 ATA133 controller.
sos [Tue, 23 Oct 2001 09:25:57 +0000 (09:25 +0000)]
Add experimental support for the HighPoint HPT372 ATA133 controller.

Based on docs kindly provided by HighPoint which we thank for
the close cooperation with the FreeBSD project!.

22 years agoConnect cxconfig(8) to build.
ru [Tue, 23 Oct 2001 09:24:49 +0000 (09:24 +0000)]
Connect cxconfig(8) to build.

PR: 30447

22 years agoWARNSify.
ru [Tue, 23 Oct 2001 09:23:17 +0000 (09:23 +0000)]
WARNSify.

22 years agoFix compile error of the case using `LINE30' option.
amorita [Tue, 23 Oct 2001 08:54:50 +0000 (08:54 +0000)]
Fix compile error of the case using `LINE30' option.

Reviewed by: nyan
MFC after: 3 days

22 years agoAdd experimental support for the Promise ATA133 controller.
sos [Tue, 23 Oct 2001 08:01:47 +0000 (08:01 +0000)]
Add experimental support for the Promise ATA133 controller.

This might need additional code for hotswapping use, but first
I need to get my hands on actual hw...

Based on docs kindly provided by Promise Inc which we thank for
the close cooperation with the FreeBSD project!.

22 years agoAdd a tunable (hw.pcic.boot_deactivated) which will boot the system
imp [Tue, 23 Oct 2001 07:04:03 +0000 (07:04 +0000)]
Add a tunable (hw.pcic.boot_deactivated) which will boot the system
with the pccards deactivated.  This can work around some problems in
pccard system, but is also for people that want to explicitly turn on
cards after boot rather that at boot.

MFC after: 7 days
Submitted by: iwasaki-san
Reviewed by: ume-san, shiba-san

22 years agoAllow users to specify a command to use as remote command instead of
imp [Tue, 23 Oct 2001 06:22:15 +0000 (06:22 +0000)]
Allow users to specify a command to use as remote command instead of
using rcmd directly.  This has been in my tree for a long time, but we
may need to sync with OpenBSD before MFC.

Obtained from: openbsd
PR: 15830

MFC after: 2 months

22 years agoFix incorrect double-termination of vm_object. When a vm_object is
dillon [Tue, 23 Oct 2001 01:23:41 +0000 (01:23 +0000)]
Fix incorrect double-termination of vm_object.  When a vm_object is
terminated and flushes pending dirty pages it is possible for the
object to be ref'd (0->1) and then deref'd (1->0) during termination.
We do not terminate the object a second time.

Document vop_stdgetvobject() to explicitly allow it to be called without
the vnode interlock held (for upcoming sync_msync() and ffs_sync()
performance optimizations)

MFC after: 3 days

22 years agoChange the vnode list under the mount point from a LIST to a TAILQ
dillon [Tue, 23 Oct 2001 01:21:29 +0000 (01:21 +0000)]
Change the vnode list under the mount point from a LIST to a TAILQ
in preparation for an implementation of limiting code for kern.maxvnodes.

MFC after: 3 days

22 years agoRefer to chflags(2) instead of chflags(1) (since we're a section 2
dd [Tue, 23 Oct 2001 00:54:58 +0000 (00:54 +0000)]
Refer to chflags(2) instead of chflags(1) (since we're a section 2
manual page), fix capitalization, and remove chflags reference from
SEE ALSO since the only time it's referenced is with an .Xr, anyway.

Submitted by: bde

22 years agoThis program uses sysexits(3), so it does not exit 1 on failure.
dd [Tue, 23 Oct 2001 00:47:27 +0000 (00:47 +0000)]
This program uses sysexits(3), so it does not exit 1 on failure.

PR: 31415

22 years agoExplain a little about sysexits(3) so that regular users can take
dd [Tue, 23 Oct 2001 00:46:13 +0000 (00:46 +0000)]
Explain a little about sysexits(3) so that regular users can take
advantage of the fact that some programs care to explain why they
failed.

PR: 31415

22 years agoRemove funky right justification.
mike [Tue, 23 Oct 2001 00:42:15 +0000 (00:42 +0000)]
Remove funky right justification.

Pointed out by: bde

22 years agoFixed the value of the prefixlen in the sadb_address structure.
ume [Mon, 22 Oct 2001 20:19:47 +0000 (20:19 +0000)]
Fixed the value of the prefixlen in the sadb_address structure.
When pfkey message relative to SA is sent, the prefixlen was incorrect.

Obtained from: KAME
MFC after: 1 week

22 years agoIn the signal trampoline, flush the register stack before calling
dfr [Mon, 22 Oct 2001 19:43:05 +0000 (19:43 +0000)]
In the signal trampoline, flush the register stack before calling
sigreturn. This appears to fix the last set of problems with csh.

22 years agoNew release note: pkg_create -b.
bmah [Mon, 22 Oct 2001 19:23:07 +0000 (19:23 +0000)]
New release note:  pkg_create -b.

22 years agoRe-order ports collection infrastructure section of release notes.
bmah [Mon, 22 Oct 2001 19:20:31 +0000 (19:20 +0000)]
Re-order ports collection infrastructure section of release notes.

22 years agoDelete wx(4) release notes and hardware notes.
bmah [Mon, 22 Oct 2001 18:25:39 +0000 (18:25 +0000)]
Delete wx(4) release notes and hardware notes.

xl(4) now supports transmit-side TCP/IP checksum offload.

22 years agoReduce frequency of Battery info (_BIF) acquisition. This helps
iwasaki [Mon, 22 Oct 2001 18:01:37 +0000 (18:01 +0000)]
Reduce frequency of Battery info (_BIF) acquisition.  This helps
avoiding EC read errors on some laptops.
 - Stop updating Battery info for all user requests
 - Update Battery info by notify events and resume method
 - Poll Battery info every one minute

Suggested by: takawata

22 years agoFix reversed virtual/physical bus check, whoops!
msmith [Mon, 22 Oct 2001 17:38:02 +0000 (17:38 +0000)]
Fix reversed virtual/physical bus check, whoops!

Submitted by: HIROSHI OOTA <oota@LSi.nec.co.jp>

22 years agoFix UserTerms disassembling. Now that dumped ASL can be compiled with
iwasaki [Mon, 22 Oct 2001 17:25:32 +0000 (17:25 +0000)]
Fix UserTerms disassembling.  Now that dumped ASL can be compiled with
ports/devel/acpitools (iasl).
 - Merge AML parser to build ACPI namespace
 - Comment header info. out so that ASL compiler ignore them
 - Fix DSDT header size to be discarded when DSDT file is specified
   for input (acpidump and amldb)
 - Write DSDT header as well into DSDT file for output
 - Fix some trivial typo (Concatenate and SizeOf)
 - Remove DEBUG_FLAGS from Makefile (acpidump and amldb)

22 years agoRemove unused headers that were breaking LINT.
jlemon [Mon, 22 Oct 2001 16:35:15 +0000 (16:35 +0000)]
Remove unused headers that were breaking LINT.

22 years agoBack out my previous commit. It is not necessary anymore now that Ruslan
jhay [Mon, 22 Oct 2001 16:32:44 +0000 (16:32 +0000)]
Back out my previous commit. It is not necessary anymore now that Ruslan
fixed the ipfilter directory with a NOOBJ.

22 years agoNo, you may not /* FALLTHROUGH */. Not only will you return an incorrect
des [Mon, 22 Oct 2001 16:13:38 +0000 (16:13 +0000)]
No, you may not /* FALLTHROUGH */.  Not only will you return an incorrect
result, but you'd corrupt the kernel malloc() arena if it weren't for a
small but life-saving optimization in ioctl().

MFC after: 1 week

22 years agowx is an ex-parrot. wx doesn't exist any more, so remove it.
imp [Mon, 22 Oct 2001 16:02:51 +0000 (16:02 +0000)]
wx is an ex-parrot.  wx doesn't exist any more, so remove it.

22 years agoThese two used sioreg.h as well. This is mildly bogus, but it is harder
imp [Mon, 22 Oct 2001 15:59:49 +0000 (15:59 +0000)]
These two used sioreg.h as well.  This is mildly bogus, but it is harder
to fix right in a hurry.

This (almost) fixes LINT.

Submitted by: bde

22 years agoBack out part of previous commit: remove #include <sys/proc.h>.
des [Mon, 22 Oct 2001 15:32:12 +0000 (15:32 +0000)]
Back out part of previous commit: remove #include <sys/proc.h>.

22 years agoUpon further reflection, back out previous commit, partly for the reasons
des [Mon, 22 Oct 2001 15:08:14 +0000 (15:08 +0000)]
Upon further reflection, back out previous commit, partly for the reasons
Bruce stated and partly because it introduces gratuitous incompatibilities
with -STABLE.

22 years agorestore the data of the ip header when extended udp header and data checksum
ume [Mon, 22 Oct 2001 12:43:30 +0000 (12:43 +0000)]
restore the data of the ip header when extended udp header and data checksum
is calculated.  this caused some trouble in the code which the ip header
is not modified.  for example, inbound policy lookup failed.

Obtained from: KAME
MFC after: 1 week

22 years agoThis is __i386__-only, not !__alpha__. We never had userconfig on
peter [Mon, 22 Oct 2001 12:22:08 +0000 (12:22 +0000)]
This is __i386__-only, not !__alpha__.  We never had userconfig on
anything but i386/pc98.

22 years agodisk_clone() was a bit too eager to please: "md0s1ec" is not a valid
phk [Mon, 22 Oct 2001 10:18:45 +0000 (10:18 +0000)]
disk_clone() was a bit too eager to please: "md0s1ec" is not a valid
device.

Noticed by: Chad David <davidc@acns.ab.ca>

22 years agoClamp down with NOOBJ.
ru [Mon, 22 Oct 2001 10:06:25 +0000 (10:06 +0000)]
Clamp down with NOOBJ.

22 years agoArgh! Shoot me! (add closing */ after $FreeBSD$ )
peter [Mon, 22 Oct 2001 09:54:17 +0000 (09:54 +0000)]
Argh! Shoot me!  (add closing */ after $FreeBSD$ )

22 years agoFix WAW dependency. p6 is written in the syscall epilogue.
peter [Mon, 22 Oct 2001 09:17:14 +0000 (09:17 +0000)]
Fix WAW dependency. p6 is written in the syscall epilogue.

22 years agoUnbreak make world by adding .CURDIR here and there.
jhay [Mon, 22 Oct 2001 08:56:02 +0000 (08:56 +0000)]
Unbreak make world by adding .CURDIR here and there.

Submitted by: Harry Starr <starr3@gccs.com.au>

22 years agoFix a few more dependancy violations.
dfr [Mon, 22 Oct 2001 08:48:11 +0000 (08:48 +0000)]
Fix a few more dependancy violations.

22 years agoRemove extra memory region kept by "struct pfil_head pfil_head_t;".
ru [Mon, 22 Oct 2001 08:46:23 +0000 (08:46 +0000)]
Remove extra memory region kept by "struct pfil_head pfil_head_t;".

Seems to be a typo for typedef, but we don't want this non-style(9)
typedef anyway.

PR: kern/31356

22 years agoSetup for a 200MB FS -- 209715200/512= 409600 sectors.
obrien [Mon, 22 Oct 2001 07:33:38 +0000 (07:33 +0000)]
Setup for a 200MB FS -- 209715200/512= 409600 sectors.

(DFR's latest ia64-root-*.tar.gz leaves only 7.7M avail when created by
dd if=/dev/zero of=ia64-root.fs bs=1024k count=200)

22 years agoImplement TCP/IP checksum off-loading on send for the 3c905B and later
alc [Mon, 22 Oct 2001 06:45:42 +0000 (06:45 +0000)]
Implement TCP/IP checksum off-loading on send for the 3c905B and later
generation cards.

22 years agoFirst commit after a repo copy of isa/sio* -> dev/sio:
imp [Mon, 22 Oct 2001 02:48:38 +0000 (02:48 +0000)]
First commit after a repo copy of isa/sio* -> dev/sio:

Move sio from isa/sio.c to dev/sio/sio.c.  The next step is to break
out the front end attachments, improve support for these parts on
different busses, and maybe, if we're lucky, merging in pc98 support.
It will also be MI and live in conf/files rather than files.*.

Approved by: bde
Tested with: i386, pc98

22 years ago#include <sys/proc.h> where needed (for the stop event definitions) and
des [Mon, 22 Oct 2001 02:02:00 +0000 (02:02 +0000)]
#include <sys/proc.h> where needed (for the stop event definitions) and
reorder includes everywhere to conform to style(9).

22 years agoMove the stop event macros from pioctl.h to proc.h, and add an S_ALLSTOPS
des [Mon, 22 Oct 2001 02:00:33 +0000 (02:00 +0000)]
Move the stop event macros from pioctl.h to proc.h, and add an S_ALLSTOPS
macro to represent "all stop events".

22 years agoWhen we set our UID to `nobody', set an appropriate group also.
obrien [Mon, 22 Oct 2001 01:55:40 +0000 (01:55 +0000)]
When we set our UID to `nobody', set an appropriate group also.

Submitted by: peter

22 years agoChroot to /tftpboot for tftp.
obrien [Mon, 22 Oct 2001 01:46:53 +0000 (01:46 +0000)]
Chroot to /tftpboot for tftp.

Reviewed by: mdodd, peter

22 years agoMove procfs_* from procfs_machdep.c into sys_process.c, and rename them to
des [Sun, 21 Oct 2001 23:57:24 +0000 (23:57 +0000)]
Move procfs_* from procfs_machdep.c into sys_process.c, and rename them to
proc_* in the process; procfs_machdep.c is no longer needed.

Run-tested on i386, build-tested on Alpha, untested on other platforms.

22 years ago[partially forced commit due to pilot error in earlier commit attempt]
des [Sun, 21 Oct 2001 22:16:48 +0000 (22:16 +0000)]
[partially forced commit due to pilot error in earlier commit attempt]

{set,fill}_{,fp,db}regs() fixup:

 - Add dummy {set,fill}_dbregs() on architectures that don't have them.

 - KSEfy the powerpc versions (struct proc -> struct thread).

 - Some architectures had the prototypes in md_var.h, some in reg.h, and
   some in both; for consistency, move them to reg.h on all platforms.

These functions aren't really MD (the implementation is MD, but the interface
is MI), so they should move to an MI header, but I haven't figured out which
one yet.

Run-tested on i386, build-tested on Alpha, untested on other platforms.

22 years ago{set,fill}_{,fp,db}regs() fixup:
des [Sun, 21 Oct 2001 22:14:00 +0000 (22:14 +0000)]
{set,fill}_{,fp,db}regs() fixup:

 - Add dummy {set,fill}_dbregs() on architectures that don't have them.

 - KSEfy the powerpc versions (struct proc -> struct thread).

 - Some architectures had the prototypes in md_var.h, some in reg.h, and
   some in both; for consistency, move them to reg.h on all platforms.

These functions aren't really MD (the implementation is MD, but the interface
is MI), so they should move to an MI header, but I haven't figured out which
{set,fill}_{,fp,db}regs() fixup:

 - Add dummy {set,fill}_dbregs() on architectures that don't have them.

 - KSEfy the powerpc versions (struct proc -> struct thread).

 - Some architectures had the prototypes in md_var.h, some in reg.h, and
   some in both; for consistency, move them to reg.h on all platforms.

These functions aren't really MD (the implementation is MD, but the interface
is MI), so they should move to an MI header, but I haven't figured out which
one yet.

Run-tested on i386, build-tested on Alpha, untested on other platforms.

22 years agoTeach truss(1) to display sockaddrs. It currently knows about AF_INET,
des [Sun, 21 Oct 2001 21:57:10 +0000 (21:57 +0000)]
Teach truss(1) to display sockaddrs.  It currently knows about AF_INET,
AF_INET6 and AF_UNIX sockaddrs, and will recognize accept(), bind(),
connect(), getpeername() and getsockname() as syscalls taking sockaddr
arguments.  Some enterprising soul might want to add (and test) support
for the send() / recv() family of syscalls as well.

MFC after: 1 week

22 years agoIn the words of the submitter:
deischen [Sun, 21 Oct 2001 18:23:50 +0000 (18:23 +0000)]
In the words of the submitter:

  In libc_r, if _FDLOCKS_ENABLED is not defined, there is no guarantee
  in many of the sycall wrappers that _thread_fd_table[fd] is
  initialized.  This causes problems for programs that pass in file
  descriptors and execve() another program; when the exec'ed program
  tries to do an fcntl() or other syscall on the passed-in fd, it fails.

Add calls to initialize the FD table entry for _thread_fd_lock and
_thread_fd_lock_debug.

Submitted by: Peter S. Housel <housel@acm.org>

22 years agoAdd proc/mtab which simulates a Linux system's /etc/mtab.
des [Sun, 21 Oct 2001 15:56:46 +0000 (15:56 +0000)]
Add proc/mtab which simulates a Linux system's /etc/mtab.

22 years agoThis module will soon need opt_linux.h (for <linux/linux_util.h>)
des [Sun, 21 Oct 2001 15:54:56 +0000 (15:54 +0000)]
This module will soon need opt_linux.h (for <linux/linux_util.h>)

22 years agoConvert textvp_fullpath() into the more generic vn_fullpath() which takes a
des [Sun, 21 Oct 2001 15:52:51 +0000 (15:52 +0000)]
Convert textvp_fullpath() into the more generic vn_fullpath() which takes a
struct thread * and a struct vnode * instead of a struct proc *.

Temporarily add a textvp_fullpath macro for compatibility.

22 years agoAdd some more names for bits of trapframe.
dfr [Sun, 21 Oct 2001 14:03:58 +0000 (14:03 +0000)]
Add some more names for bits of trapframe.

22 years agoWe need to save a bit more information in the partial syscall trapframe
dfr [Sun, 21 Oct 2001 14:03:25 +0000 (14:03 +0000)]
We need to save a bit more information in the partial syscall trapframe
in case we need to take a signal.

22 years agoSet ar.fpsr to something sane before trying to handle a trap - the user
dfr [Sun, 21 Oct 2001 14:02:27 +0000 (14:02 +0000)]
Set ar.fpsr to something sane before trying to handle a trap - the user
might have trashed it.

22 years agoUse ia64_set_fpsr() instead of __asm to set ar.fpsr.
dfr [Sun, 21 Oct 2001 14:01:48 +0000 (14:01 +0000)]
Use ia64_set_fpsr() instead of __asm to set ar.fpsr.

22 years agoAdd ia64_set_fpsr().
dfr [Sun, 21 Oct 2001 14:00:59 +0000 (14:00 +0000)]
Add ia64_set_fpsr().

22 years agoThanks for postcards ...
hm [Sun, 21 Oct 2001 09:39:22 +0000 (09:39 +0000)]
Thanks for postcards ...