Commit Graph

130238 Commits

Author SHA1 Message Date
tsutsui 221c318874 - Adapt to the MI wdc driver changes which added the notion of
"shadow registers":
  http://mail-index.netbsd.org/source-changes/2004/05/25/0048.html
- While here, also fix accesses to CTL regsters to use the correct address.

Now the cobalt bootloader works again.

XXX Maybe we should make this SA wdc driver MI...
2004-09-01 15:54:39 +00:00
yamt 175e99933e uvm_pagefree: when orphaning an A->K loaned page,
- decrement uvmexp.anonpages as it's no longer an anon page.
	- null out anon->u.an_page as the anon no longer own the page.
uvm_anfree: add related assertions.
2004-09-01 11:53:38 +00:00
yamt 23c60dbfe0 uvm_anfree: remove a comment which is no longer true. 2004-09-01 10:09:26 +00:00
chs a3b206f61a pass data to a function via an argument instead of via a global variable.
this avoids a name collision with libcurses functions when both are
present in a crunched static binary.  part of PR 26458.
2004-09-01 01:47:09 +00:00
chs c2472e10b2 rename a global variable so that it doesn't collide with a libcurses function
when both are present in a crunched static binary.  part of PR 26458.
2004-09-01 01:46:56 +00:00
chs dc8f6bbd12 pass data to a function via arguments instead of via global variables.
this avoids a name collision with libcurses functions when both are
present in a crunched static binary.  part of PR 26458.
2004-09-01 01:46:28 +00:00
uwe af4511cccc Force STRIPFLAG to be empty after bsd.own.mk is included, so that
any value set in /etc/mk.conf is overriden.
2004-08-31 22:57:13 +00:00
uwe e8d7ac57c1 Add missing .Ed reported by new mdoc. 2004-08-31 17:11:33 +00:00
uwe 06227c9f8b Drop bogus .Bl/.El uncovered by new mdoc. 2004-08-31 17:08:06 +00:00
he d6cee1d93b Cast field width computed from pointer diff and ssize_t to int.
Fixes build for amd64 and presumably for our other lp64 ports.
2004-08-31 10:14:30 +00:00
simonb ac20296fee Remove the unused MKTTE macro. 2004-08-31 01:06:12 +00:00
lukem 88b5ee46e9 Install zoneinfo files NONBINMODE (444) instead of BINMODE (555).
Noted by David Laight on tech-toolchain.
2004-08-31 00:00:31 +00:00
drochner 266668cb7d There is no point in using config_found_sm() if there is no submatch function.
(actually, there should be one...)
2004-08-30 18:28:33 +00:00
drochner 9a623ba311 use the locator-passing variant of autoconf submatch and use constants
from locators.h
2004-08-30 18:27:21 +00:00
wiz 08a2426e10 Mention pkgsrc/multimedia/ffmpeg and add a comma. Bump date. 2004-08-30 16:42:48 +00:00
thorpej e9dbc9253e De-__P. 2004-08-30 16:15:03 +00:00
tsutsui 0f0f2c4943 Remove .mdebug.abi32 and .comment sections created by binutils-2.14
on converting kernels into ECOFF.
ARC BIOS may be confused by these sections without valid address.
2004-08-30 16:08:24 +00:00
drochner 070747cba1 remove the (superfluous) definition of "cpu" as an interface attribute 2004-08-30 15:35:20 +00:00
drochner 46289e1fef Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.
2004-08-30 15:05:15 +00:00
dsl d55b8a2190 Redo suffix handling so that gunzip xxx.tgx => xxx.tar
Rework logic of gz_{un}compress to make it much less likely to leak fds
    (at least 2 non-error paths leaked them!)
Make -S ".xyz" and -S "" both do something sensible.
Make in-situ compression work - only lose the file on error.
Pass an open fd to zopen (renamed zdopen) to avoid fd leakage (was badly borked)
Write header into first 64k output block to writes are aligned.
    (more efficient and might avoid some problem with code that doesn't
    like receiving partial buffers)
Check file size on compression - double checks against fs full.
Remove some pointless casts, and otherwise simplify some logic.
2004-08-30 14:36:51 +00:00
wiz 97f53cf022 Bump date for WD_SOFTBADSECT description and sort sections. 2004-08-30 12:54:39 +00:00
wiz ef90a2a4b4 Bump date for improved bad sector
description.
2004-08-30 12:53:30 +00:00
martti c72a29a530 Better kernel module for IPF (kern/26112 by Peter Postma) 2004-08-30 11:32:33 +00:00
drochner 5fa053333d add centralized {eisa,isa,pci,agp,mca}busprint() functions which do
what tens of the bus' parents foo{...}bridge_print()s scattered around do
2004-08-30 10:30:38 +00:00
drochner 13e2ec357a there is (appearently) no reason for the "bktr" driver to carry a
"pcibus" attribute, so remove it
2004-08-30 10:10:34 +00:00
drochner e98c3c2cc3 -change the config_found() macro to use config_sound_sm_loc()
internally (shouldn't make a difference for callers)
-add convenience macros for config_found() and config_search() to
 ease the case where just an interface attribute is specified
2004-08-30 09:53:32 +00:00
drochner e66ef34b75 split out the check whether a driver supports a given interface
attribure, and add a diagnostic assertion to config_search_loc()
which ensures that a supplied attribute name is correct
2004-08-30 09:48:05 +00:00
drochner 60caa2e651 xref dkctl(8), document the WD_SOFTBADSECT option, and explain
what the software badsector handling does
2004-08-30 09:43:32 +00:00
drochner afa0d914f3 mention that the "badsector" subcommend depends on the WD_BADSECTOR
kernel option
2004-08-30 09:38:28 +00:00
drochner b4b2fd9326 make the software managed bad-sector list optional
(kernel option WD_SOFTBADSECT)
2004-08-30 09:34:41 +00:00
lukem 08c7699414 * Implement modify_file() to apply an awk program against a file and display
the diffs and possibly install the new version of file.
  (Based on sshd_config munging code in do_ssh())
* Use modify_file() in do_hosts() and do_ssh().
* Be more specific in do_x11() about what needs to occur.
  (This could still be improved).
* Minor sh cleanups.  ("sh is not C")
2004-08-30 04:57:39 +00:00
thorpej e910f9082e - Define a constant to describe the length of a printed UUID string.
- Clean up the namespace of this module and enable the encode/decode
  functions and printing functions.
- Move the code that actually generates the UUID out of the system call
  routine and into its own function.
2004-08-30 02:56:03 +00:00
augustss 4d1e9e453b The hosts file is /etc/hosts not /hosts. 2004-08-30 02:46:07 +00:00
thorpej b560f85cc5 Use ANSI function decls, sprinkle static. 2004-08-30 00:34:41 +00:00
jdolecek 6cfdd8bdbf dump socketcall data #ifdef DEBUG_LINUX 2004-08-29 20:45:18 +00:00
jdolecek 0659b2b55e in debug log, data dump is more useful unsigned 2004-08-29 20:10:42 +00:00
thorpej d1e0f4a2a0 Add openfirm. 2004-08-29 17:40:12 +00:00
thorpej c409cf7317 Make this compile again. 2004-08-29 17:37:03 +00:00
thorpej f4d9e6500d Add a local prototype for a called-from-asm function. 2004-08-29 17:36:46 +00:00
tsutsui 4c0e18d694 - rename comcnprobe() and comcninit() to com_mainbus_cnprobe() and
com_mainbus_cninit() and move these cn functions from cobalt/console.c
  to dev/com_mainbus.c
- call cninit() only once
- remove unneeded includes
- use ANSI function decls
2004-08-29 16:14:15 +00:00
jdolecek 466a837559 handle mmap() request with MAP_GROWSDOWN flag (request for stack-like
grow-down auto extend segment) by allocating segment sized at
current stack size limit, and offsetting requested/returned address
as required

due to how normal virtual memory management work, allocating the
full sized stack memory segment up-front actually requires exactly same
amount of VA space and physical memory as the Linux 'grow' scheme and the
'grow' scheme is quite a lot more difficult to use in applications correctly,
so it's not very apparent why Linux introduced this feature at all

this fixes Thomas Klausner's Heroes3 crash, and might also
fix PR 26687 by Jan Schaumann
2004-08-29 14:08:06 +00:00
chs 85b920f8a2 add a dotted alias for localhost so that sendmail doesn't pause on startup
if a system's hostname is not set.  PR 26550.
2004-08-29 13:26:17 +00:00
hannken 5816dad45e While creating a snapshot inodes must be freed from the
snapshot, not from the file system.
ffs_freefile() needs explicit "fs" and "devvp" arguments.
2004-08-29 10:13:48 +00:00
martin 5ea85d45ac Do not search the info path when opening our own output file. We may find
an old (shorter) version somewhere and SIGSEGV due to different filesize.
Fixes PR toolchain/26791. Already forwarded to texinfo maintainers.
2004-08-29 08:16:18 +00:00
jlam b250bed920 Move the pkgsrc section into pkgsrc/doc/RESPONSIBLE. 2004-08-29 06:50:46 +00:00
itohy 2df0351d86 Add HISTORY section.
I'm going to make pullups and njs(4) will first appear in 1.6.3.
2004-08-29 02:32:47 +00:00
thorpej 6c08646cb8 Garbage-collect pagemove(); nothing use it anymore (YAY!!!) 2004-08-28 22:12:40 +00:00
thorpej 605050704a Use ANSI function decls and static. 2004-08-28 22:06:28 +00:00
thorpej cfc755477e Minor style nit. 2004-08-28 21:56:00 +00:00
thorpej 606336a153 De-__P 2004-08-28 21:31:07 +00:00