obrien [Wed, 24 May 2000 20:02:21 +0000 (20:02 +0000)]
Move c-decl.c out of the common libcc_int.a into the binary Makefiles
where it is used. c-decl has symbols that conflict with several of the
cc1plus sources.
GNU `ld' was changed in Dec 1999 to be more be compatable with the way that
other linkers work (specifically in the Solaris linker). The 2.9.1 `ld',
did the Wrong Thing in that if a library contained a common symbol that
matched a definition of that symbol in another (already linked in object)
it would also be linked in, even if there was no other reason to do so.
This is wrong. The library should only be linked in if it contains
non-common, non-weak symbols which are needed by previously linked in
objects.
peter [Wed, 24 May 2000 14:22:22 +0000 (14:22 +0000)]
pmap_enter() masked off the page offset bits, pmap_kenter() did not.
This (I believe) is the cause of the XFree86 startup and/or mptable(8)
panics when programs were reading from /dev/mem at non-page-aligned
offsets. The offsets were being converted into random page flags in the
page tables. :-( (including PG_PS = 4MB page size)
mpp [Wed, 24 May 2000 13:05:50 +0000 (13:05 +0000)]
Remove the lpr/runqueue directory and associated files.
These are not used anymore and are outdated and only cause
confusion (I just committed a fix to one of these files within
the last hour, thinking it was still valid).
brian [Wed, 24 May 2000 09:05:58 +0000 (09:05 +0000)]
Honour ``set speed sync'' and ``set device !program'' when
used together by creating a SOCK_DGRAM socketpair() between
the processes.
Be polite when closing !program links and send a HUP to the
process. This makes ssh tunnels over unreliable media (such
as via httptunnel) reconnect properly.
jhb [Tue, 23 May 2000 12:18:49 +0000 (12:18 +0000)]
Clean up all of the 16-bit assembly code in the x86 bootstrap to work
with the new binutils. Now that we have a decent assembler, all the old
m4 macros are no longer needed. Instead, straight assembly can be used
since as(1) now understands 16-bit addressing, branches, etc. Also,
several bugs have been fixed in as(1), allowing boot0.s to be further
cleaned up.
jdp [Tue, 23 May 2000 04:53:24 +0000 (04:53 +0000)]
Use the new machine-independent versions of crtbegin and crtend
from the "common" directory.
As a side-effect, this also fixes a bug in the ordering of global
constructors and destructors on the Alpha. See revision 1.3 of
"../common/crtbegin.c" for details.
joerg [Mon, 22 May 2000 17:21:50 +0000 (17:21 +0000)]
Apply a `fixup' to the blocksize gathered from the device after a READ
CAPACITY operation. SCSI-3 mandates this to be 2048, but some older
drives like my old Plasmon CD-R report weird numbers between 2048 and
up to 2352 bytes depending on the mode of the last track etc. This in
turn confuses stuff like the slice code since it refuses to work with
devices that do not have a blocksize which is a multiple of 512 bytes.
obrien [Mon, 22 May 2000 16:58:44 +0000 (16:58 +0000)]
If we are going to do a byte compare, the operands should be byte-sized.
In this case, I believe we want to compare against the 32-bit operand so
use a full-world compare operation.
jdp [Mon, 22 May 2000 16:31:18 +0000 (16:31 +0000)]
Eliminate unaligned accesses that occurred when relocating the
DWARF2 exception tables emitted by the compiler for C++ sources.
These tables are tightly packed, and they contain some relocated
addresses which are not well-aligned.
imp [Mon, 22 May 2000 06:01:31 +0000 (06:01 +0000)]
<blush> I tested the real code changes, but neglected to test the
insertion of $FreeBSD$. I miffed it (pointy hat please). Hopefully
no one will notice this short window where -current didn't compile.
ken [Sun, 21 May 2000 23:57:52 +0000 (23:57 +0000)]
Implement a new camcontrol function, 'camcontrol format'.
libcam/Makefile: Add scsi_da.c to libcam for the new
scsi_format_unit() function.
camcontrol.8: Update the man page for the new format
functionality, and take out the examples section
describing how to do it with 'camcontrol cmd'.
camcontrol.c: New format functionality. Note that unlike the
rest of the camcontrol subcommands, this one is
interactive by default. Because of the potential
destructiveness of the format command, I thought
it necessary to get confirmation from the user
before spamming a disk. You can disable the
interactive behavior, and the status meter with
command line arguments.
scsi_da.c: Add the new scsi_format_unit() cdb building
function and use #ifdef _KERNEL to make this file
compile in both the kernel and userland. The
format unit function is currently only defined in
the non-kernel case, because nothing in the kernel
is using it. If that changes, it should be
un-ifdefed and compiled in both cases.
scsi_da.h: New function declaration, CDB structure and format
data structures.
Thanks to Nick Hibma for providing some valuable input on these changes.
green [Sun, 21 May 2000 18:35:28 +0000 (18:35 +0000)]
In the modern world, things are much faster than when more(1) was created.
Scrolling sideways is fast, and a "...skipping..." message making everything
blink does much more harm than good.