]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoMFi386: set initial curpcb pcpu variable at startup time rather than
Peter Wemm [Mon, 8 Mar 2004 00:16:52 +0000 (00:16 +0000)]
MFi386: set initial curpcb pcpu variable at startup time rather than
waiting for a context switch

20 years agoMFi386: wait for local apic to become free before using it
Peter Wemm [Mon, 8 Mar 2004 00:15:29 +0000 (00:15 +0000)]
MFi386: wait for local apic to become free before using it

20 years agoImplemented the "getifindex" control message.
Ruslan Ermilov [Sun, 7 Mar 2004 23:00:44 +0000 (23:00 +0000)]
Implemented the "getifindex" control message.

PR: kern/63864
Submitted by: Gleb Smirnoff

20 years agoMake it possible for the %[eEfgG] formats to not result in an error
Colin Percival [Sun, 7 Mar 2004 22:22:13 +0000 (22:22 +0000)]
Make it possible for the %[eEfgG] formats to not result in an error
being reported by /usr/bin/printf.

This bug has been around for 22 months... either nobody uses printf
with floating-point values, or people are forgetting to check their
return codes.

Approved by: rwatson (mentor)

20 years agoRetire pmap_pinit2(). Alpha was the last platform that used it. However,
Alan Cox [Sun, 7 Mar 2004 21:06:48 +0000 (21:06 +0000)]
Retire pmap_pinit2().  Alpha was the last platform that used it.  However,
ever since alpha/alpha/pmap.c revision 1.81 introduced the list allpmaps,
there has been no reason for having this function on Alpha.  Briefly,
when pmap_growkernel() relied upon the list of all processes to find and
update the various pmaps to reflect a growth in the kernel's valid
address space, pmap_init2() served to avoid a race between pmap
initialization and pmap_growkernel().  Specifically, pmap_pinit2() was
responsible for initializing the kernel portions of the pmap and
pmap_pinit2() was called after the process structure contained a pointer
to the new pmap for use by pmap_growkernel().  Thus, an update to the
kernel's address space might be applied to the new pmap unnecessarily,
but an update would never be lost.

20 years agoRearrange (centralize) initialization of mallocs internals to always be
Poul-Henning Kamp [Sun, 7 Mar 2004 20:41:27 +0000 (20:41 +0000)]
Rearrange (centralize) initialization of mallocs internals to always be
done before the first call, even if this is a malloc(0) call.

PR: 62859

20 years agoDon't panic on providers already withered when we wither a geom.
Poul-Henning Kamp [Sun, 7 Mar 2004 17:33:15 +0000 (17:33 +0000)]
Don't panic on providers already withered when we wither a geom.

20 years agoUse one bus_dma_tag_t for all pSRB instead of creating one for each.
Olivier Houchard [Sun, 7 Mar 2004 17:23:39 +0000 (17:23 +0000)]
Use one bus_dma_tag_t for all pSRB instead of creating one for each.
Free what is allocated for pSRBs at unload time or if something bad happens,
thanks to scottl for spotting this out.

20 years agoAdd final version of BSD/OS, BSD/OS 5.1 ISE.
Wolfram Schneider [Sun, 7 Mar 2004 16:44:10 +0000 (16:44 +0000)]
Add final version of BSD/OS, BSD/OS 5.1 ISE.

20 years agoConvert from timeout to callout API.
Alexander Kabaev [Sun, 7 Mar 2004 16:28:31 +0000 (16:28 +0000)]
Convert from timeout to callout API.

Submitted by: rwatson

20 years agoConvert from timeout to callout API.
Alexander Kabaev [Sun, 7 Mar 2004 16:23:03 +0000 (16:23 +0000)]
Convert from timeout to callout API.

20 years agoAdd manpages for the gctl API.
Poul-Henning Kamp [Sun, 7 Mar 2004 16:07:57 +0000 (16:07 +0000)]
Add manpages for the gctl API.

Submitted by: le
Tweaks by: phk

20 years agoDocument kernel functions securelevel_gt and securelevel_ge.
Josef El-Rayes [Sun, 7 Mar 2004 15:22:08 +0000 (15:22 +0000)]
Document kernel functions securelevel_gt and securelevel_ge.

Approved by:            simon(mentor)
Submitted by:           Christian S.J. Peron <maneo@bsdpro.com>
PR:                     docs/62331
mdoc(7) cleanup by:     ru

20 years agoRestore CDIOCREADAUDIO ioctl.
Yoshihiro Takahashi [Sun, 7 Mar 2004 14:16:42 +0000 (14:16 +0000)]
Restore CDIOCREADAUDIO ioctl.

Pointed out by: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>

20 years agoIn the case where /etc/rc.d/ is empty, do not bogusly ask the user if
Doug Barton [Sun, 7 Mar 2004 10:10:19 +0000 (10:10 +0000)]
In the case where /etc/rc.d/ is empty, do not bogusly ask the user if
they want to delete '*'. It turns out that there is one valid case where
this might happen, installing to an empty DESTDIR.

Patch submitted by: schweikh

20 years agoIntegrate the code from pmap_pinit2() into pmap_pinit(), leaving
Alan Cox [Sun, 7 Mar 2004 07:43:13 +0000 (07:43 +0000)]
Integrate the code from pmap_pinit2() into pmap_pinit(), leaving
pmap_pinit2() empty.

Approved by: marcel

20 years agoRemove unused declarations. (Some time ago, these variables became fields
Alan Cox [Sun, 7 Mar 2004 07:13:15 +0000 (07:13 +0000)]
Remove unused declarations.  (Some time ago, these variables became fields
of vm/vm.h's struct kva_md_info.)

20 years agoMark uma_callout as CALLOUT_MPSAFE, as uma_timeout can run MPSAFE.
Robert Watson [Sun, 7 Mar 2004 07:00:46 +0000 (07:00 +0000)]
Mark uma_callout as CALLOUT_MPSAFE, as uma_timeout can run MPSAFE.

Reviewed by: jeff

20 years agoRemove '#include <machine/bus_pio.h>'. This is meaningless.
Yoshihiro Takahashi [Sun, 7 Mar 2004 05:39:38 +0000 (05:39 +0000)]
Remove '#include <machine/bus_pio.h>'.  This is meaningless.

20 years agoRemove unneeded devices.
Yoshihiro Takahashi [Sun, 7 Mar 2004 05:38:20 +0000 (05:38 +0000)]
Remove unneeded devices.

20 years agoSync to 1.166 of usbdevs
MIHIRA Sanpei Yoshiro [Sun, 7 Mar 2004 05:34:36 +0000 (05:34 +0000)]
Sync to 1.166 of usbdevs

20 years agoAdd support 2 devices(USB-DVD-R drives)
MIHIRA Sanpei Yoshiro [Sun, 7 Mar 2004 05:33:09 +0000 (05:33 +0000)]
Add support 2 devices(USB-DVD-R drives)
- Logitec LDR-H443SU2
- IO-DATA DVR-UEH8

PR: kern/63793
Submitted by: Ryuji MATSUMOTO <matumoto@pluto.ai.kyutech.ac.jp>
MFC after: 1 week

20 years agoConst-poison ip_stf_ttl to make it clear that the variable is not
Robert Watson [Sun, 7 Mar 2004 05:15:42 +0000 (05:15 +0000)]
Const-poison ip_stf_ttl to make it clear that the variable is not
modified at run-time.

20 years agoMFi386: revisions from 1.1127 to 1.1131.
Yoshihiro Takahashi [Sun, 7 Mar 2004 04:09:18 +0000 (04:09 +0000)]
MFi386: revisions from 1.1127 to 1.1131.

20 years agoAdd the agp, bfe, sk and ti devices. (the agp is disabled by default).
Yoshihiro Takahashi [Sun, 7 Mar 2004 04:07:57 +0000 (04:07 +0000)]
Add the agp, bfe, sk and ti devices. (the agp is disabled by default).
Remove obsolete compat_atdisk device.

20 years agoAdd preliminary support for PCMCIA devices in addition to PCI/cardbus.
Bill Paul [Sun, 7 Mar 2004 02:49:06 +0000 (02:49 +0000)]
Add preliminary support for PCMCIA devices in addition to PCI/cardbus.
if_ndis.c has been split into if_ndis_pci.c and if_ndis_pccard.c.
The ndiscvt(8) utility should be able to parse device info for PCMCIA
devices now. The ndis_alloc_amem() has moved from kern_ndis.c to
if_ndis_pccard.c so that kern_ndis.c no longer depends on pccard.

NOTE: this stuff is not guaranteed to work 100% correctly yet. So
far I have been able to load/init my PCMCIA Cisco Aironet 340 card,
but it crashes in the interrupt handler. The existing support for
PCI/cardbus devices should still work as before.

20 years agoRecognize hardlinks when reading cpio files.
Tim Kientzle [Sun, 7 Mar 2004 00:57:43 +0000 (00:57 +0000)]
Recognize hardlinks when reading cpio files.

This doesn't yet address the issue of selective restore
of hardlinked files.  With cpio format, it's possible to correctly
restore any linked file; the API doesn't yet fully support this.
(There's no way for the library to inform a client whether or not
there's a file body associated with this entry.  The assumption
right now is that "hardlink" entries have no file body.)

20 years agoRemove GIANT_REQUIRED from vunmapbuf().
Alan Cox [Sun, 7 Mar 2004 00:37:18 +0000 (00:37 +0000)]
Remove GIANT_REQUIRED from vunmapbuf().

20 years agoGiant is not required for vm_thread_new_altkstack().
Alan Cox [Sun, 7 Mar 2004 00:06:32 +0000 (00:06 +0000)]
Giant is not required for vm_thread_new_altkstack().

20 years agoFix markup.
Dag-Erling Smørgrav [Sat, 6 Mar 2004 23:36:41 +0000 (23:36 +0000)]
Fix markup.

Submitted by: ru

20 years agoHook logins(1) up to the build.
Dag-Erling Smørgrav [Sat, 6 Mar 2004 21:57:47 +0000 (21:57 +0000)]
Hook logins(1) up to the build.

20 years agoAdd a logins(1) utility similar to that found in SVr4 derivatives. This
Dag-Erling Smørgrav [Sat, 6 Mar 2004 21:57:29 +0000 (21:57 +0000)]
Add a logins(1) utility similar to that found in SVr4 derivatives.  This
particular implementation is based on the Solaris logins(1) man page.

20 years agoOverdue reversion of revision 1.143.
Ruslan Ermilov [Sat, 6 Mar 2004 21:23:56 +0000 (21:23 +0000)]
Overdue reversion of revision 1.143.

OK'ed by: imp

20 years agoLuigi was polled for additional documentation about polling(4).
Ruslan Ermilov [Sat, 6 Mar 2004 21:20:47 +0000 (21:20 +0000)]
Luigi was polled for additional documentation about polling(4).

20 years agoMerge some fixes from NetBSD's getopt.3 v1.31:
Andrey A. Chernov [Sat, 6 Mar 2004 17:09:10 +0000 (17:09 +0000)]
Merge some fixes from NetBSD's getopt.3 v1.31:
cleanup, add more sections, better explanation, declaration

20 years agoMerge some fixes from NetBSD's getopt.c v1.26:
Andrey A. Chernov [Sat, 6 Mar 2004 17:05:45 +0000 (17:05 +0000)]
Merge some fixes from NetBSD's getopt.c v1.26:
cleanups, handling 'ls -l-', handling '--*'

Note this is in the same time back out of our v1.3
"Don't print an error message if the bad option is '?'"
because it directly violates POSIX.

20 years agoAugment /dev/sndstat with the module names, if applicable.
Mathew Kanner [Sat, 6 Mar 2004 15:52:42 +0000 (15:52 +0000)]
Augment /dev/sndstat with the module names, if applicable.

Approved by:   tanimura (mentor)

20 years agoSet MAKEOBJDIRPREFIX in the environment, like God intended. This
Ruslan Ermilov [Sat, 6 Mar 2004 15:03:21 +0000 (15:03 +0000)]
Set MAKEOBJDIRPREFIX in the environment, like God intended.  This
only worked because src/Makefile.inc1 is wrapped by src/Makefile.

Silence from: dougb

20 years agoFix typo, was 'W'; instead of `W;'
Andrey A. Chernov [Sat, 6 Mar 2004 14:47:49 +0000 (14:47 +0000)]
Fix typo, was 'W'; instead of `W;'

20 years agoMake GNU-compatible following case:
Andrey A. Chernov [Sat, 6 Mar 2004 14:24:10 +0000 (14:24 +0000)]
Make GNU-compatible following case:
single '-' in command line and '-' (non-first) in options

20 years agoAssign checkmode boolean earlier to handle the goto jump.
Mike Heffner [Sat, 6 Mar 2004 13:27:59 +0000 (13:27 +0000)]
Assign checkmode boolean earlier to handle the goto jump.

Might fix PR bin/63769.

20 years agoFixed some style bugs (mainly unsorting and tab lossage in previous commit).
Bruce Evans [Sat, 6 Mar 2004 08:21:32 +0000 (08:21 +0000)]
Fixed some style bugs (mainly unsorting and tab lossage in previous commit).

20 years agoLink in contigmalloc(9) to the build.
Joseph Koshy [Sat, 6 Mar 2004 08:01:16 +0000 (08:01 +0000)]
Link in contigmalloc(9) to the build.

20 years agoJust pass -DCRT_BEGIN as an option to mkdep(1), no need to override
Ruslan Ermilov [Sat, 6 Mar 2004 07:34:51 +0000 (07:34 +0000)]
Just pass -DCRT_BEGIN as an option to mkdep(1), no need to override
the entire command.

20 years agoAdd a.out to CLEANFILES
Andrey A. Chernov [Sat, 6 Mar 2004 06:54:58 +0000 (06:54 +0000)]
Add a.out to CLEANFILES

20 years agoRemove the phantom 'nv' driver again.
Scott Long [Sat, 6 Mar 2004 06:54:54 +0000 (06:54 +0000)]
Remove the phantom 'nv' driver again.

20 years agoChange locale name from non-existent ASCII to en_US.US-ASCII
Andrey A. Chernov [Sat, 6 Mar 2004 06:10:16 +0000 (06:10 +0000)]
Change locale name from non-existent ASCII to en_US.US-ASCII

20 years agoMinor API tweak: The format-specific write_header function now sets
Tim Kientzle [Sat, 6 Mar 2004 05:44:13 +0000 (05:44 +0000)]
Minor API tweak: The format-specific write_header function now sets
the size in the archive_entry object to zero if that format doesn't
store a body for that file type.  This allows the client to determine
whether or not it should feed the file body to the archive.  In
particular, cpio stores the file body for hardlinks, tar and shar
don't.  With this change, bsdtar now correctly archives hardlinks in all
supported formats.

While I'm here, make shar output be more aggressive about creating directories.
Before this, commands such as:
    bsdtar -cv -F shar  some/explicit/path/to/a/file
wouldn't create the directory.  Some simple logic to remember the last
directory creation helps reduce unnecessary mkdirs here.

At this point, I think the only flaw in libarchive's cpio support is
the failure to recognize hardlinks when reading.

20 years agoAlways call vn_finished_write after vn_start_write was called. All
Alexander Kabaev [Sat, 6 Mar 2004 04:09:54 +0000 (04:09 +0000)]
Always call vn_finished_write after vn_start_write was called. All
occurences of 'goto done' after vn_start_write invocation were cleaning
up incompletely.

20 years agoCross-reference contigmalloc(9).
Joseph Koshy [Sat, 6 Mar 2004 02:13:03 +0000 (02:13 +0000)]
Cross-reference contigmalloc(9).

20 years agoA manual page for contigmalloc(9).
Joseph Koshy [Sat, 6 Mar 2004 02:09:17 +0000 (02:09 +0000)]
A manual page for contigmalloc(9).

Reviewed by: ru

20 years agoRemove last evidence of a long-dead function.
Tim Kientzle [Sat, 6 Mar 2004 01:06:49 +0000 (01:06 +0000)]
Remove last evidence of a long-dead function.

20 years agoAdd ARCHIVE_EXTRACT_UNLINK option to permit clients to
Tim Kientzle [Sat, 6 Mar 2004 01:05:32 +0000 (01:05 +0000)]
Add ARCHIVE_EXTRACT_UNLINK option to permit clients to
control how archive_extract handles pre-existing files.
(Not implemented yet, but documented.)

20 years agoCorrectly read symlinks from cpio files.
Tim Kientzle [Sat, 6 Mar 2004 00:59:08 +0000 (00:59 +0000)]
Correctly read symlinks from cpio files.

While I'm here, fix a bug in reading filenames from
cpio files.  (Copy should count the length of the name,
not the number of bytes available for input.)

20 years agoWhen faced with a "GenuineIntel", we know what they call it now. Replace
Peter Wemm [Sat, 6 Mar 2004 00:51:30 +0000 (00:51 +0000)]
When faced with a "GenuineIntel", we know what they call it now.  Replace
snide comment with a different one.

20 years agoAdd a missing part of jhb's previous commit. It looks like he had a
Peter Wemm [Sat, 6 Mar 2004 00:44:59 +0000 (00:44 +0000)]
Add a missing part of jhb's previous commit.  It looks like he had a
patch chunk rejected that he missed.  This would manifest as a lock
assertion panic at boot (Giant not locked in kern_fork.c).

Obtained from:  jhb

20 years agoHave these instructions tell users to 'sh installworld_newk' instead
Garance A Drosehn [Fri, 5 Mar 2004 23:10:49 +0000 (23:10 +0000)]
Have these instructions tell users to 'sh installworld_newk' instead
of './installworld_newk', because the scripts might not show up with
the +x bit set.

20 years agokthread_exit() no longer requires Giant, so don't force callers to acquire
John Baldwin [Fri, 5 Mar 2004 22:42:17 +0000 (22:42 +0000)]
kthread_exit() no longer requires Giant, so don't force callers to acquire
Giant just to call kthread_exit().

Requested by: many

20 years agoLock Giant around the body of the adlink_loran() function used by the
John Baldwin [Fri, 5 Mar 2004 22:41:22 +0000 (22:41 +0000)]
Lock Giant around the body of the adlink_loran() function used by the
adlink device kthreads.

20 years ago- Push down Giant in exit() and wait().
John Baldwin [Fri, 5 Mar 2004 22:39:53 +0000 (22:39 +0000)]
- Push down Giant in exit() and wait().
- Push Giant down a bit in coredump() and call coredump() with the proc
  lock already held rather than unlocking it only to turn around and
  relock it.

Requested by: peter

20 years agoLock Giant around the single threading code in exec() to satisfy an
John Baldwin [Fri, 5 Mar 2004 22:38:26 +0000 (22:38 +0000)]
Lock Giant around the single threading code in exec() to satisfy an
assertion in the single threading code.

20 years ago- Grab a share lock of the proctree lock while looking for a pid due to the
John Baldwin [Fri, 5 Mar 2004 22:37:32 +0000 (22:37 +0000)]
- Grab a share lock of the proctree lock while looking for a pid due to the
  process group and session dereferences.  Also, check that p_pgrp and
  p_sesssion are NULL before dereferencing them.
- Push down Giant in fork1().

Requested by: peter

20 years agoAdd warning about loading/unloading drivers and identify
Warner Losh [Fri, 5 Mar 2004 22:21:18 +0000 (22:21 +0000)]
Add warning about loading/unloading drivers and identify

20 years agoUndo the merger of mlock()/vslock and munlock()/vsunlock() and the
Don Lewis [Fri, 5 Mar 2004 22:03:11 +0000 (22:03 +0000)]
Undo the merger of mlock()/vslock and munlock()/vsunlock() and the
introduction of kern_mlock() and kern_munlock() in
        src/sys/kern/kern_sysctl.c      1.150
        src/sys/vm/vm_extern.h          1.69
        src/sys/vm/vm_glue.c            1.190
        src/sys/vm/vm_mmap.c            1.179
because different resource limits are appropriate for transient and
"permanent" page wiring requests.

Retain the kern_mlock() and kern_munlock() API in the revived
vslock() and vsunlock() functions.

Combine the best parts of each of the original sets of implementations
with further code cleanup.  Make the mclock() and vslock()
implementations as similar as possible.

Retain the RLIMIT_MEMLOCK check in mlock().  Move the most strigent
test, which can return EAGAIN, last so that requests that have no
hope of ever being satisfied will not be retried unnecessarily.

Disable the test that can return EAGAIN in the vslock() implementation
because it will cause the sysctl code to wedge.

Tested by: Cy Schubert <Cy.Schubert AT komquats.com>

20 years agoTeach dd(1) about parity bits.
Poul-Henning Kamp [Fri, 5 Mar 2004 19:35:51 +0000 (19:35 +0000)]
Teach dd(1) about parity bits.

20 years agoAdd a test-target and reference vectors for the character converions.
Poul-Henning Kamp [Fri, 5 Mar 2004 19:30:13 +0000 (19:30 +0000)]
Add a test-target and reference vectors for the character converions.

20 years agoThe roundrobin callout from sched_4bsd is MPSAFE, so set up the
Robert Watson [Fri, 5 Mar 2004 19:27:04 +0000 (19:27 +0000)]
The roundrobin callout from sched_4bsd is MPSAFE, so set up the
callout as MPSAFE to avoid grabbing Giant.

Reviewed by: jhb

20 years agoReword two more lines to avoid wrapping.
Garance A Drosehn [Fri, 5 Mar 2004 18:16:28 +0000 (18:16 +0000)]
Reword two more lines to avoid wrapping.

20 years agoDocument a sysctl.
Nate Lawson [Fri, 5 Mar 2004 18:08:23 +0000 (18:08 +0000)]
Document a sysctl.

Submitted by: Craig Rodrigues <rodrigc@crodrigues.org>

20 years agoA user can set tz_requested via the hw.acpi.thermal.tzX.active sysctl.
Nate Lawson [Fri, 5 Mar 2004 18:06:31 +0000 (18:06 +0000)]
A user can set tz_requested via the hw.acpi.thermal.tzX.active sysctl.
The previous logic meant that if a user sets it to a minimal cooling value
acpi_thermal will not use higher cooling levels.  Reverse the logic so that
the user requesting a level (say, 2) also gets 0 - 1 also.

PR: kern/61592
Submitted by: Andrew Thompson <andy@fud.org.nz>

20 years agoPut "failed to set signal flags properly for ast()" check under
Robert Watson [Fri, 5 Mar 2004 17:35:28 +0000 (17:35 +0000)]
Put "failed to set signal flags properly for ast()" check under
DIAGNOSTIC instead of INVARIANTS.  INVARIANTS is intended for tests
that don't substantially change code flow or behavior (passive), but
this test required locking both the proc lock and scheduler lock
in order to execute.  It also appears to be a very advisory diagnostic
as opposed to an invariant violation.

Following discussion with: bde

20 years agoThis interface doesn't return any values.
Ruslan Ermilov [Fri, 5 Mar 2004 16:38:01 +0000 (16:38 +0000)]
This interface doesn't return any values.

Submitted by: Mark Santcroos

20 years agoRemoved definition of NOPROG. It was just a style bug (a NetBSD macro
Bruce Evans [Fri, 5 Mar 2004 16:13:22 +0000 (16:13 +0000)]
Removed definition of NOPROG.  It was just a style bug (a NetBSD macro
that became obsolete in NetBSD 22 months ago).

Submitted by: ru

20 years agoBack out attempt to bypass contrib's getopt.h on the way,
Andrey A. Chernov [Fri, 5 Mar 2004 16:12:31 +0000 (16:12 +0000)]
Back out attempt to bypass contrib's getopt.h on the way,
it makes cross-build fail.
Prefer invisible incorrect -current build to visible failure.

20 years agoFixed indentation of conditionals.
Bruce Evans [Fri, 5 Mar 2004 15:59:33 +0000 (15:59 +0000)]
Fixed indentation of conditionals.

Submitted by: Rostislav Krasny <rosti_bsd@yahoo.com>

20 years agoFixed insertion sort errors in prototype list.
Bruce Evans [Fri, 5 Mar 2004 15:30:40 +0000 (15:30 +0000)]
Fixed insertion sort errors in prototype list.

20 years agoRemoved garbage:
Bruce Evans [Fri, 5 Mar 2004 15:22:05 +0000 (15:22 +0000)]
Removed garbage:
- completely unused things
- all of rev.1.102 (C++ support).  <sys/cdefs.h> is included by the
  prerequisite <sys/types.h>.  __BEGIN_DECLS/__END_DECLS has no effect
  (except possibly if undefined behaviour is invoked using a hack like
  defining away __inline) since this header doesn't really support any
  extern functions.

20 years agoMFi386: (all: keep a comment in sync with code, and don't depend on
Bruce Evans [Fri, 5 Mar 2004 14:31:21 +0000 (14:31 +0000)]
MFi386: (all: keep a comment in sync with code, and don't depend on
namespace pollution).

20 years agoInclude <machine/psl.h> for the definition of PSL_I instead of depending
Bruce Evans [Fri, 5 Mar 2004 14:23:13 +0000 (14:23 +0000)]
Include <machine/psl.h> for the definition of PSL_I instead of depending
on namespace pollution in <machine/cpufunc.h>.

20 years agoUse ascii null char ('\0') instead of NULL.
Yoshihiro Takahashi [Fri, 5 Mar 2004 13:58:40 +0000 (13:58 +0000)]
Use ascii null char ('\0') instead of NULL.

Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>

20 years agoFix syntax errors and wrong function prototypes in several MD header
Lukas Ertl [Fri, 5 Mar 2004 09:19:59 +0000 (09:19 +0000)]
Fix syntax errors and wrong function prototypes in several MD header
files when using non-GNUC compilers.

PR:             kern/58515
Submitted by:   Stefan Farfeleder <stefan@fafoe.narf.at>
Approved by:    grog (mentor), obrien

20 years agoOne tab too much.
Pawel Jakub Dawidek [Fri, 5 Mar 2004 09:18:40 +0000 (09:18 +0000)]
One tab too much.

20 years agoTeach 'hostname' script how to act inside a jail.
Pawel Jakub Dawidek [Fri, 5 Mar 2004 09:17:01 +0000 (09:17 +0000)]
Teach 'hostname' script how to act inside a jail.

No objections from: mtm, arch@

20 years agoremove superfluous space before end of backtick expression
Ralf S. Engelschall [Fri, 5 Mar 2004 08:49:59 +0000 (08:49 +0000)]
remove superfluous space before end of backtick expression

20 years agofix reference to sysctl variable: machdep.an_cache_mode -> hw.an.an_cache_mode
Ralf S. Engelschall [Fri, 5 Mar 2004 08:42:15 +0000 (08:42 +0000)]
fix reference to sysctl variable: machdep.an_cache_mode -> hw.an.an_cache_mode

20 years agoBump __FreeBSD_version for the NULL == ((void *)0)
Mark Murray [Fri, 5 Mar 2004 08:34:59 +0000 (08:34 +0000)]
Bump __FreeBSD_version for the NULL == ((void *)0)

Requested by: kkenn

20 years agoMake NULL a (void*)0 whereever possible, and fix the warnings(-Werror)
Mark Murray [Fri, 5 Mar 2004 08:10:19 +0000 (08:10 +0000)]
Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)
that this provokes. "Wherever possible" means "In the kernel OR NOT
C++" (implying C).

There are places where (void *) pointers are not valid, such as for
function pointers, but in the special case of (void *)0, agreement
settles on it being OK.

Most of the fixes were NULL where an integer zero was needed; many
of the fixes were NULL where ascii <nul> ('\0') was needed, and a
few were just "other".

Tested on: i386 sparc64

20 years agoDocument that ENABLE_ALART controls the alarm on Intel intpm driver.
David E. O'Brien [Fri, 5 Mar 2004 08:04:10 +0000 (08:04 +0000)]
Document that ENABLE_ALART controls the alarm on Intel intpm driver.

Submitted by: peter

20 years agoWhen this script included NetBSD specific logic, the NetBSD branch
Mike Makonnen [Fri, 5 Mar 2004 08:03:04 +0000 (08:03 +0000)]
When this script included NetBSD specific logic, the NetBSD branch
included a start_precmd check for gated. The precommand was not
executed in the FreeBSD branch. When I did a mass removal of
NetBSD specific logic a while back this file apparently got only
a partial treatement. This bug did not have any functional consequences,
however, since the precommand was not declared to the rc.subr routines.

Noticed by: pjd

20 years agoVESA* is a mistake - it cannot exist due to requiring a 32 bit kernel for
David E. O'Brien [Fri, 5 Mar 2004 07:56:23 +0000 (07:56 +0000)]
VESA* is a mistake - it cannot exist due to requiring a 32 bit kernel for
BIOS calls and/or VM86.

Submitted by: peter

20 years agoThe syslogd script should require that /var is cleaned before it runs.
Mike Makonnen [Fri, 5 Mar 2004 07:55:04 +0000 (07:55 +0000)]
The syslogd script should require that /var is cleaned before it runs.
Otherwise it could be in the situation where its log socket is removed
after it has started.

Noticed by: jhay

20 years agoSync with i386/NOTES.
David E. O'Brien [Fri, 5 Mar 2004 07:48:47 +0000 (07:48 +0000)]
Sync with i386/NOTES.

20 years agoAdd comment for 'mptable'.
David E. O'Brien [Fri, 5 Mar 2004 07:44:17 +0000 (07:44 +0000)]
Add comment for 'mptable'.

Submitted by: peter

20 years agoRemove scripts we don't use from requirement lines. These were
Mike Makonnen [Fri, 5 Mar 2004 07:43:38 +0000 (07:43 +0000)]
Remove scripts we don't use from requirement lines. These were
hold-overs from the initial NetBSD import.

20 years agoNote that imp is working on un-shimming this driver, afterwards it should
David E. O'Brien [Fri, 5 Mar 2004 06:23:08 +0000 (06:23 +0000)]
Note that imp is working on un-shimming this driver, afterwards it should
work on AMD64.

20 years agoRemoved include of bsd.own.mk. It was just a style bug (half-baked
Bruce Evans [Fri, 5 Mar 2004 05:48:58 +0000 (05:48 +0000)]
Removed include of bsd.own.mk.  It was just a style bug (half-baked
chumminess with the implementation).

20 years agoThe PECOFF support is 32-bit only.
David E. O'Brien [Fri, 5 Mar 2004 05:08:22 +0000 (05:08 +0000)]
The PECOFF support is 32-bit only.

Reviewed by: peter

20 years agoIn the last revision, I introduced a physical contiguity check that is both
Alan Cox [Fri, 5 Mar 2004 04:46:32 +0000 (04:46 +0000)]
In the last revision, I introduced a physical contiguity check that is both
unnecessary and wrong.  While it is necessary to verify that the page is
still free after dropping and reacquiring the free page queue lock, the
physical contiguity of the page can not change, making this check
unnecessary.  This check was wrong in that it could cause an out-of-bounds
array access.

Tested by: rwatson

20 years agoPECOFF_* isn't useful for AMD64.
David E. O'Brien [Fri, 5 Mar 2004 04:38:58 +0000 (04:38 +0000)]
PECOFF_* isn't useful for AMD64.

20 years agoNew errata: SA-04:04. Also fix a typo in the URL for SA-04:03.
Bruce A. Mah [Fri, 5 Mar 2004 04:19:06 +0000 (04:19 +0000)]
New errata:  SA-04:04.  Also fix a typo in the URL for SA-04:03.