yar [Mon, 19 Nov 2001 21:52:03 +0000 (21:52 +0000)]
Eliminate another instance of the old and well-known
DoS bug that the select(2)/accept(2) pair is called on
a socket that is in the blocking I/O mode. The bug is
triggered if a selected connection dies before the accept(2)
leading to the accept(2) blocking virtually forever.
jhb [Mon, 19 Nov 2001 21:27:00 +0000 (21:27 +0000)]
Split the mfsroot out from the kernel for the 2.88 boot floppy and the
Alpha CD. This makes it easier to customize ISO's locally by being able
to replace either the mfsroot or the kernel w/o having to do both. It also
allows us to switch to using the full GENERIC kernel when booting from CD
on the Alpha and on x86 when using cdboot. We don't do this yet, however.
rwatson [Mon, 19 Nov 2001 21:14:50 +0000 (21:14 +0000)]
o Cleanup of includes: user.h may be a catch-all, but that's not
entirely desirable. Back out previous commit, and clean up includes
to be more minimal.
iedowse [Mon, 19 Nov 2001 20:50:44 +0000 (20:50 +0000)]
Back out revision 1.117; the correct solution is to upgrade the
firmware on the drive in question. The pattern also matched far
too many Hitachi drives.
keramida [Mon, 19 Nov 2001 20:17:19 +0000 (20:17 +0000)]
Other committers do not mention their personal names and/or email
addresses when adding stuff, so it seems fair to stop ``getting all
the fame'' by having my name displayed on login sessions.
sumikawa [Mon, 19 Nov 2001 18:47:49 +0000 (18:47 +0000)]
Support MELCO LUA2-TX USB ethernet adaptor.
Actually this porting supports Pegasus II chip so I guess some other
devices supported by NetBSD also work. But the devices list are not
included because I cannot confirm if they work.
green [Mon, 19 Nov 2001 18:15:12 +0000 (18:15 +0000)]
Add module "lomac" to the modules Makefile, i386 section. If someone on
Alpha can verify that it compiles fine there, too, this should be moved
to the MI section (or that problem fixed); I've only had x86 hardware to
est with.
obrien [Mon, 19 Nov 2001 17:30:26 +0000 (17:30 +0000)]
Upper case the FreeBSD loader prompt.
On OFW based machines, it is just too confusing having the firmware and
OS loader giving the same prompt. This is a nice compromise that 99% of the
users on non-OFW platforms will probably not even notice.
iedowse [Mon, 19 Nov 2001 15:43:50 +0000 (15:43 +0000)]
Deal with a few issues that cropped up following the recent changes
to the code for translating socket and private ioctls:
- Only perform socket ioctl translation if the file descriptor is a
socket.
- Treat socket ioctls on non-sockets specially, and for now assume
that these are directed at a tap/vmnet device, so translate the
ioctl numbers as appropriate (the way if_tap abuses some socket
ioctls to pass non-ifreq data is utterly bogus, but this is how
VMware on FreeBSD has always "worked"; I will deal with this
later).
- Add (untested) support for translating SIOCSIFADDR.
- In all cases where we fail to translate an ioctl, return ENOIOCTL
so that other handlers have a chance to do the translation.
This should fix the "/dev/vmnet1: Invalid argument" errors that
users of VMware were experiencing, though I have only verified this
on RELENG_4.
rwatson [Mon, 19 Nov 2001 15:26:36 +0000 (15:26 +0000)]
#include <sys/user.h> rather than individually including a plethora
of kernel include files, reducing the replication of kernel include
dependency information in userland.
matusita [Mon, 19 Nov 2001 14:43:29 +0000 (14:43 +0000)]
Add fsck tool for UFS to /stand tools (again).
Actually src/release/i386/boot_crunch.conf rev 1.45 does this change,
but unfortunately there is no src/sbin/fsck_4.2bsd directory, but
src/sbin/fsck_ffs.
This commit replaces 'fsck_4.2bsd' to 'fsck_ffs', and add a link to
'fsck_4.2bsd' and 'fsck_ufs'. Note that 4-stable's fsck(8) have an
ability of fsck_ffs also, there is no need to MFC at least now.
Tested only for: i386 (but I believe this doesn't break for other archs)
sobomax [Mon, 19 Nov 2001 09:25:30 +0000 (09:25 +0000)]
Make kevents on pipes work as described in the manpage - when the last
reader/writer disconnects, ensure that anybody who is waiting for the
kevent on the other end of the pipe gets EV_EOF.
peter [Mon, 19 Nov 2001 07:25:42 +0000 (07:25 +0000)]
Initial cut at calling the EFI-provided FPSWA (Floating Point Software
Assist) driver to handle the "messy" floating point cases which
cause traps to the kernel for handling.
peter [Mon, 19 Nov 2001 07:09:47 +0000 (07:09 +0000)]
Lookup the EFI_FPSWA driver and pass the interface pointer through to the
kernel before we call ExitBootServices(). I've typed the definitions
in efifpswa.h from the Intel FPSWA manual (urk).
peter [Mon, 19 Nov 2001 07:05:10 +0000 (07:05 +0000)]
Remove bootinfo.bi_kernel. It isn't used by the kernel. struct bootinfo
should go away on ia64, we should be loader metadata based since that is
the only way we can boot (loader, skiload).
tmm [Sun, 18 Nov 2001 20:38:44 +0000 (20:38 +0000)]
1. Add ofw_pci.h with definitions for the OpenFirmware PCI bindings
2. Add OF_getprop_alloc(), a helper function that will malloc() a sufficient
amount of memory and then retrieve a property value into it.
iwasaki [Sun, 18 Nov 2001 18:12:07 +0000 (18:12 +0000)]
Cleanups of verbose printing. All the messages for the debugging is
disabled unless verbose flag is set. Also fix some messages in terms
of English.
The critical messages and error messages in probe/attach routine are
unchanged by this commit.
iedowse [Sun, 18 Nov 2001 17:24:28 +0000 (17:24 +0000)]
Allow the path for /dev and the location of the database file to
be overridden on the command line. This is useful for setting up
chroot/jail environments.
marcel [Sun, 18 Nov 2001 05:45:27 +0000 (05:45 +0000)]
Pass maintainership over to emulation@FreeBSD.org. It has been fun,
but time and other interests is making it hard. Open the door for
new blood and fresh tactics now that the Linuxulator has had its
facelift.
Thanks to all who contributed during my tour of duty!
jake [Sun, 18 Nov 2001 04:35:09 +0000 (04:35 +0000)]
Catch up to jmpbuf changes. Define offsets used from assmebly language
in another file so that it is easy to see what they are and keep them in
sync with the headers (grafted from the kernel generated assym.s).
jake [Sun, 18 Nov 2001 04:00:22 +0000 (04:00 +0000)]
1. Split fp.h into fp.h and fsr.h so that the latter can be included
in asm files.
2. Temporarily cause subnormal operands in floating point operations
to be treated as zeros so that comlpetion of the operation does not
need to be emulated.
3. Catch fp_exception_other and correctly skip over the unfinished
instruction, but basically ignore them. Emulating the instruction
is not yet supported.
4. Zero td_retval[1] as well in syscall().
jake [Sun, 18 Nov 2001 03:41:12 +0000 (03:41 +0000)]
1. Remove kdbframe. Bad idea.
2. Add a TF_DONE macro, which fiddles a trapframe to make the retry on
return from traps act like a done (advance past the trapping
instruction instead of re-executing).
3. Flush the windows before entering the debugger, since it is no
longer done in the breakpoint trap vector.
4. Print a warning if trace <pid> is attempted, it is not yet implemented.
5. Print traps better and decode system calls in traces.
jake [Sun, 18 Nov 2001 03:28:28 +0000 (03:28 +0000)]
1. Convert the tstate saved in the pcb to a pstate and test for PSTATE_PEF
to determine if a process is using floating point. in order to avoid
sign extending a 13 bit immediate.
2. We don't need to context switch cwp anymore, it is better to just
fiddle the save tstate on return from traps. See exception.s 1.10
and 1.12.
3. Completely remove pcb_cwp.
4. Implement vmapbuf, vunmapbuf and vm_fault_quick. Completely remove
TODOs from vm_machdep.c (yay!).