]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoSquash a couple more invalid long casts.
scottl [Sun, 5 Feb 2006 05:05:27 +0000 (05:05 +0000)]
Squash a couple more invalid long casts.

18 years agoNow, thread name is stored in kernel, userland no longer has to keep it.
davidxu [Sun, 5 Feb 2006 03:04:54 +0000 (03:04 +0000)]
Now, thread name is stored in kernel, userland no longer has to keep it.

18 years agouse syscall thr_set_name to implement pthread_set_name_np.
davidxu [Sun, 5 Feb 2006 02:26:17 +0000 (02:26 +0000)]
use syscall thr_set_name to implement pthread_set_name_np.

18 years agoRegenerate.
davidxu [Sun, 5 Feb 2006 02:23:41 +0000 (02:23 +0000)]
Regenerate.

18 years agoImplement thr_set_name to set a name for thread.
davidxu [Sun, 5 Feb 2006 02:18:46 +0000 (02:18 +0000)]
Implement thr_set_name to set a name for thread.

Reviewed by: julian

18 years agoImport support for the Atmel AT91RM9200 CPU/Microcontroller. This SoC
imp [Sat, 4 Feb 2006 23:32:13 +0000 (23:32 +0000)]
Import support for the Atmel AT91RM9200 CPU/Microcontroller.  This SoC
is a ARM920T based CPU with a bunch of built-in peripherals.  The
inital import supports the SPI bus, the TWI bus (although iicbus
integration is not complete), the uarts, the system timer and the
onboard ethernet.  Support for the Kwikbyte KB9202
(http://www.kwikbyte.com) board is also included, although there's no
reason why the 9200 and the 9201 wouldn't also work.  Primitive
support for running under the skyeye emulator is also provided
(although skyeye's support for the AT91RM9200 is a little weak).

The code has been structured so that other members of Atmel's arm family can
be supported in the future.  The AT91SAM9260 is not presently supported
due to lack of hardware.  The arm7tdmi families are also not supported
becasue they lack an MMU.

Many thanks to cognet@ for his help and assistance in bringing up this
board.  He did much of the vm work and wrote parts of the uart and
system timer code as well as the bus space implementation.

The system boots to single user w/o problem, although the serial
console is a little slow and the ethernet driver is still in flux.

This work was sponsored by Timing Solutions, Corporation.  I am
grateful to their support of the FreeBSD project in this manner.

18 years agoEnable getty(8) on ttyu2 by default in order to get machines that use a
marius [Sat, 4 Feb 2006 23:30:09 +0000 (23:30 +0000)]
Enable getty(8) on ttyu2 by default in order to get machines that use a
RSC (Remote System Control) connected via uart2 as console working out
of the box. On machines that use uart2 to connect a keyboard and thus
the ttyu2 node doesn't exist this will trigger a warning from getty(8)
but cause no real harm.

MFC after: 1 week

18 years ago- Add support for using LOM (Lights Out Management) and RSC (Remote System
marius [Sat, 4 Feb 2006 23:27:16 +0000 (23:27 +0000)]
- Add support for using LOM (Lights Out Management) and RSC (Remote System
  Control) devices as console. These are microcontrollers which are either
  on-board or part of an add-on card and provide terminal server, remote
  power switch and monitoring functionality. For console usage these are
  connected to the rest of the system via a SCC or an UART. This commit adds
  support for the following variants (corresponds to what 'input-device' and
  'output-device' have to be set to):
  rsc found on-board in E250 and supposedly some Netra, connected
via a SAB82532, com. parameters can be determined via OFW
  rsc-console RSC card found in E280R, Fire V4x0, Fire V8x0, connected
via a NS16550, hardwired to 115200 8N1
  lom-console LOMlite2 card found in Netra 20/T4, connected via a NS16550,
hardwired to 9600 8N1

- Add my copyright to uart_cpu_sparc64.c as I've rewritten about one third
  of that file over time.

Tested on: E250, E280R
Thanks to: dwhite@ for providing access to an E280R
OK'ed by: marcel
MFC after: 1 week

18 years agoSilence the strict-alias warnings. Make a trip through (void *) when
imp [Sat, 4 Feb 2006 22:51:03 +0000 (22:51 +0000)]
Silence the strict-alias warnings.  Make a trip through (void *) when
casting a structure to a uint32_t *.  Many drivers in the tree do this, but
I'll not update them until these changes can be reviewed by the pedantic
standards folks.

18 years agoRemove an unnecessary call to pmap_remove_all(). The given page is not
alc [Sat, 4 Feb 2006 22:37:10 +0000 (22:37 +0000)]
Remove an unnecessary call to pmap_remove_all().  The given page is not
mapped because its contents are invalid.

18 years agoType of overrun_buf doesn't matter to this code, but does to gcc.
imp [Sat, 4 Feb 2006 22:33:08 +0000 (22:33 +0000)]
Type of overrun_buf doesn't matter to this code, but does to gcc.
Make it a void *.

18 years agoPerform minor rewording and grammatical improvement. Add a missing Xr.
ceri [Sat, 4 Feb 2006 22:17:38 +0000 (22:17 +0000)]
Perform minor rewording and grammatical improvement.  Add a missing Xr.

18 years agoUse void * for pointer rather than u_int8_t *, since it doesn't
imp [Sat, 4 Feb 2006 22:14:20 +0000 (22:14 +0000)]
Use void * for pointer rather than u_int8_t *, since it doesn't
matter.  Well it does for type punning warnings.

18 years agoNow that TUNABLE_ULONG is in the tree, and has been for a while, use it.
imp [Sat, 4 Feb 2006 21:56:14 +0000 (21:56 +0000)]
Now that TUNABLE_ULONG is in the tree, and has been for a while, use it.
This also avoids typepunning.

18 years agoDon't type pun accidentally. Instead, be explicit that we're type
imp [Sat, 4 Feb 2006 21:37:39 +0000 (21:37 +0000)]
Don't type pun accidentally.  Instead, be explicit that we're type
punning with an union so that the compiler knows.

18 years agoRemove reference to non-existant manpage.
brueffer [Sat, 4 Feb 2006 21:10:48 +0000 (21:10 +0000)]
Remove reference to non-existant manpage.

Confirmed by: rwatson

18 years agoCall the audit syscall enter/exit functions for the amd64 architecture,
wsalamon [Sat, 4 Feb 2006 20:37:20 +0000 (20:37 +0000)]
Call the audit syscall enter/exit functions for the amd64 architecture,
both 32-bit and 64-bit paths. System calls will now be audited.

Obtained from: TrustedBSD Project
Approved by: rwatson (mentor)

18 years agoMake login audit-enabled, submitting audit records for the login and logout
wsalamon [Sat, 4 Feb 2006 20:20:02 +0000 (20:20 +0000)]
Make login audit-enabled, submitting audit records for the login and logout
events. The specifics of submitting the records is contained within
login_audit.c.
Document the auditing behavior in the man page.

Obtained from: TrustedBSD Project, Apple Computer, Inc.
Approved by: rwatson (mentor)

18 years agoWhen ndis_attach() runs, it has to very briefly initialize the card
wpaul [Sat, 4 Feb 2006 19:42:49 +0000 (19:42 +0000)]
When ndis_attach() runs, it has to very briefly initialize the card
in order to query the underlying Windows driver for the station address
and some other properties. There is a slim chance that the card may
receive a packet and indicate it up to us before ndis_attach() can call
ndis_halt_nic(). This is bad, because both the softc structure and
the ifnet structure aren't fully initialized yet: many pointers are
still NULL, so if we make it into ndis_rxeof(), we will panic.

To fix this, we need to do the following:

- Move the calls to IoAllocateWorkItem() to before the call to ndis_init_nic().
- Move the initialization of the RX DPC and status callback function pointers
  to before ndis_init_nic() as well.
- Modify ndis_rxeof() to check if the IFF_DRV_RUNNING flag is set. If it
  isn't, we return any supplied NDIS_PACKETs to the NIC without processing
  them.

This fixes a crash than can occur when activating a wireless NIC in
close proximity to a very busy wireless network, reported by Ryan
Beasley (ryan%^$!ATgoddamnbastard-****!!!DOTorg.

MFC after: 3 days

18 years agoAdd a brief FREEBSD-upgrade file to provide direction on how to perform
rwatson [Sat, 4 Feb 2006 18:29:51 +0000 (18:29 +0000)]
Add a brief FREEBSD-upgrade file to provide direction on how to perform
OpenBSM upgrades.  Right now, this is very easy, but in the future it
will probably become more complicated.

18 years agoAdd a -A argument to mergemaster to allow explicitly specifying an
rwatson [Sat, 4 Feb 2006 18:24:06 +0000 (18:24 +0000)]
Add a -A argument to mergemaster to allow explicitly specifying an
architecture to pass through to the underlying makefiles.  This is
quite useful when building on an i386 box to populate an amd64 NFS
root.

Head nod: dougb
MFC after: 1 week

18 years agoDon't forget to set the address of the next descriptor to 0 when we're
cognet [Sat, 4 Feb 2006 18:01:15 +0000 (18:01 +0000)]
Don't forget to set the address of the next descriptor to 0 when we're
zeroing a physical page, or we could end up re-zeroing portions of
memory we have zeroed before, which is clearly not wanted.

18 years agoSquash another use of vtophys. Instead of creating separate busdma objects
scottl [Sat, 4 Feb 2006 17:56:17 +0000 (17:56 +0000)]
Squash another use of vtophys.  Instead of creating separate busdma objects
for doing static memory transfers, start collecting them into a single
object.

18 years agoMFi386:
cognet [Sat, 4 Feb 2006 17:01:19 +0000 (17:01 +0000)]
MFi386:
revision 1.288
date: 2006/02/04 14:11:33;  author: wsalamon;  state: Exp;  lines: +4 -1
Hook up the audit system to system call entry and exit. System calls will
now be audited.

Obtained from:  TrustedBSD Project
Approved by: rwatson (mentor)

18 years agoNow that the em driver no longer needs to directly touch the scheduler, remove some
scottl [Sat, 4 Feb 2006 16:50:14 +0000 (16:50 +0000)]
Now that the em driver no longer needs to directly touch the scheduler, remove some
unneeded headers.

18 years agoInitialize PWD early on (don't expect it to be inherited from the
schweikh [Sat, 4 Feb 2006 14:47:19 +0000 (14:47 +0000)]
Initialize PWD early on (don't expect it to be inherited from the
environment or set it only when changing directories with cd).

PR: standards/92640

18 years agos/staticly/statically/g
schweikh [Sat, 4 Feb 2006 14:41:27 +0000 (14:41 +0000)]
s/staticly/statically/g

18 years agos/varable/variable/; s/tored/stored/
schweikh [Sat, 4 Feb 2006 14:38:37 +0000 (14:38 +0000)]
s/varable/variable/; s/tored/stored/

18 years agoRemove some white space at EOL.
schweikh [Sat, 4 Feb 2006 14:37:50 +0000 (14:37 +0000)]
Remove some white space at EOL.

18 years agoRemove spurious "union arg" from printf.h
phk [Sat, 4 Feb 2006 14:35:01 +0000 (14:35 +0000)]
Remove spurious "union arg" from printf.h

Make sure to always print something in the alternate time format.

18 years agoHook up the audit system to system call entry and exit. System calls will
wsalamon [Sat, 4 Feb 2006 14:11:33 +0000 (14:11 +0000)]
Hook up the audit system to system call entry and exit. System calls will
now be audited.

Obtained from: TrustedBSD Project
Approved by: rwatson (mentor)

18 years agoCreate childproc_jobstate function to report job control state, this
davidxu [Sat, 4 Feb 2006 14:10:57 +0000 (14:10 +0000)]
Create childproc_jobstate function to report job control state, this
also fixes a bug in childproc_continued which ignored PS_NOCLDSTOP.

18 years agoAssign audit identifiers to alpha/linux system calls so that they will
rwatson [Sat, 4 Feb 2006 14:03:22 +0000 (14:03 +0000)]
Assign audit identifiers to alpha/linux system calls so that they will
be audited.

Obtained from: TrustedBSD Project

18 years agoAutogenerate hardware notes for the ce(4) driver.
brueffer [Sat, 4 Feb 2006 13:42:07 +0000 (13:42 +0000)]
Autogenerate hardware notes for the ce(4) driver.

18 years agoRegenerate.
rwatson [Sat, 4 Feb 2006 13:29:09 +0000 (13:29 +0000)]
Regenerate.

18 years agoAudit FreeBSD 32-bit system calls on 64-bit FreeBSD systems.
rwatson [Sat, 4 Feb 2006 13:28:55 +0000 (13:28 +0000)]
Audit FreeBSD 32-bit system calls on 64-bit FreeBSD systems.

Obtained from: TrustedBSD Project

18 years agoMerge OpenBSM 1.0 alpha 2 kernel audit events into src/sys/bsm. Almost
rwatson [Sat, 4 Feb 2006 13:22:44 +0000 (13:22 +0000)]
Merge OpenBSM 1.0 alpha 2 kernel audit events into src/sys/bsm.  Almost
entirely new audit event identifiers for FreeBSD, Linux, and POSIX.1b
system calls.

Obtained from: TrustedBSD Project

18 years agoThis commit was generated by cvs2svn to compensate for changes in r155290,
rwatson [Sat, 4 Feb 2006 13:17:48 +0000 (13:17 +0000)]
This commit was generated by cvs2svn to compensate for changes in r155290,
which included commits to RCS files with non-trunk default branches.

18 years agoImport OpenBSM 1.0 alpha 2, a minor update on alpha 1:
rwatson [Sat, 4 Feb 2006 13:17:48 +0000 (13:17 +0000)]
Import OpenBSM 1.0 alpha 2, a minor update on alpha 1:

- Man page formatting improvements.
- A number of new audit event identifiers for FreeBSD, Linux, and POSIX.1b
  events.
- Remove 'tfm' class, unused in OpenBSM.

Obtained from: TrustedBSD Project

18 years agoPatch to allow XBox-users to use the onboard nve(4) nForce ethernet driver.
rink [Sat, 4 Feb 2006 10:01:33 +0000 (10:01 +0000)]
Patch to allow XBox-users to use the onboard nve(4) nForce ethernet driver.

The patch crudely forces the NIC out of operating mode before the nve(4)
driver can initialize it; this is required to properly initialize the NIC.

It is XBox-specific, as this condition can only occur on XBoxes (Most loaders
will simply leave the NIC running, forcing us to use a crude workaround like
this to get it in a workable condition). Due to the XBox-only aspect, this has
been solved in XBox-specific initialization code and not within nve(4).

Reviewed by: imp
Approved by: imp (mentor)
No objection: bz@, obrien@, q@ontheweb.com.au

18 years agoThe function isspace does not take a string argument. I have no idea how
dfr [Sat, 4 Feb 2006 09:40:21 +0000 (09:40 +0000)]
The function isspace does not take a string argument. I have no idea how
this compiled before; it only worked by accident.

18 years agoAdd the start of busdma infrastructure to this driver. Convert the
scottl [Sat, 4 Feb 2006 08:45:19 +0000 (08:45 +0000)]
Add the start of busdma infrastructure to this driver.  Convert the
ASR_resetIOPR function to use it.

18 years agoActually, no, I had it wrong in 1.109. The arguments to bus_dma_create_tag
mjacob [Sat, 4 Feb 2006 08:39:02 +0000 (08:39 +0000)]
Actually, no, I had it wrong in 1.109. The arguments to bus_dma_create_tag
are bus_addr_t, not bus_size_t.

In any case, turn off DAC support entirely until it is revamped to actually
work *correctly* for 64 bit platforms (not using a PAE definition and for
both initiator and target mode).

18 years agoNow that the U32 type is a really 32-bits wide, eliminate a bunch of other
scottl [Sat, 4 Feb 2006 08:20:23 +0000 (08:20 +0000)]
Now that the U32 type is a really 32-bits wide, eliminate a bunch of other
bad assumptions and long values.

18 years agoFix mismerge after last cvs update for the IFQ_DRV_DEQUEUE changes.
imp [Sat, 4 Feb 2006 08:19:00 +0000 (08:19 +0000)]
Fix mismerge after last cvs update for the IFQ_DRV_DEQUEUE changes.

18 years agoRemove ifdef notyet SIOCGHWADDR vestige.
imp [Sat, 4 Feb 2006 08:16:41 +0000 (08:16 +0000)]
Remove ifdef notyet SIOCGHWADDR vestige.

18 years agoRemove ifdef notdef SIOCHWADDR vestige.
imp [Sat, 4 Feb 2006 08:16:07 +0000 (08:16 +0000)]
Remove ifdef notdef SIOCHWADDR vestige.

18 years agoRemove ifdef notyet for SIOCGHWADDR
imp [Sat, 4 Feb 2006 08:15:29 +0000 (08:15 +0000)]
Remove ifdef notyet for SIOCGHWADDR
Treat SIOCADDMULTI and SIOCDELMULTI the same, since they had the same code
Remove redundant assignment to error
Convert to using the altq interface completely.

18 years agos/bin/sbin/ for mount_nwfs, mount_portalfs and mount_smbfs. They never
avatar [Sat, 4 Feb 2006 08:07:00 +0000 (08:07 +0000)]
s/bin/sbin/ for mount_nwfs, mount_portalfs and mount_smbfs.  They never
lived in bin since 1994.
Whilst here, also document the removal time of aforementioned utilities
as well.

MFC after: 1 week

18 years agoGive correct definitions to some basic types.
scottl [Sat, 4 Feb 2006 08:01:49 +0000 (08:01 +0000)]
Give correct definitions to some basic types.

18 years agoNever select the PCB that has INP_IPV6 flag and is bound to :: if
ume [Sat, 4 Feb 2006 07:59:17 +0000 (07:59 +0000)]
Never select the PCB that has INP_IPV6 flag and is bound to :: if
we have another PCB which is bound to 0.0.0.0.  If a PCB has the
INP_IPV6 flag, then we set its cost higher than IPv4 only PCBs.

Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net>
Obtained from: KAME
MFC after: 1 week

18 years agoAxe unused code.
davidxu [Sat, 4 Feb 2006 06:36:39 +0000 (06:36 +0000)]
Axe unused code.

18 years agoFix minor inconsistancy between kernel built modules and stand-alone
imp [Sat, 4 Feb 2006 06:22:27 +0000 (06:22 +0000)]
Fix minor inconsistancy between kernel built modules and stand-alone
built buildes.  I believe this gives the same flags on the command
line for both.

18 years agoFix a possible memory leak in asr_attach.
scottl [Sat, 4 Feb 2006 06:08:19 +0000 (06:08 +0000)]
Fix a possible memory leak in asr_attach.

18 years agoi386/PAE defines bus_size_t to be 32-bits when it likely should be 64-bits.
scottl [Sat, 4 Feb 2006 03:41:48 +0000 (03:41 +0000)]
i386/PAE defines bus_size_t to be 32-bits when it likely should be 64-bits.
Fixing it is left for another day, so just hack around it for now.

18 years agoFix calculation of the number of arenas to use on multi-processor systems.
jasone [Sat, 4 Feb 2006 01:11:30 +0000 (01:11 +0000)]
Fix calculation of the number of arenas to use on multi-processor systems.

18 years agoCast pointers to (uintptr_t) before down-casting to (int). This avoids
rwatson [Sat, 4 Feb 2006 00:14:06 +0000 (00:14 +0000)]
Cast pointers to (uintptr_t) before down-casting to (int).  This avoids
an incompatible conversion from a 64-bit pointer to a 32-bit integer on
64-bit platforms.  We will investigate whether Solaris uses a 64-bit
token here, or a new record here, in order to avoid truncating user
pointers that are 64-bit.  However, in the mean time, truncation is fine
as these are rarely/never used fields in audit records.

Obtained from: TrustedBSD Project

18 years agoFix INVARIANTS build on amd64; (unsigned unsigned long) != u_int64_t.
rwatson [Fri, 3 Feb 2006 23:50:26 +0000 (23:50 +0000)]
Fix INVARIANTS build on amd64; (unsigned unsigned long) != u_int64_t.

Submitted by: mlaier

18 years agoProperly initialize args structure before passing it to ipfw_chk(): having
oleg [Fri, 3 Feb 2006 23:03:07 +0000 (23:03 +0000)]
Properly initialize args structure before passing it to ipfw_chk(): having
uninitialized args.inp is unhealthy for uid/gid/jail ipfw rules.

PR: kern/92589
Approved by: glebius (mentor)
MFC after: 1 week

18 years agoAdd a comment.
jhb [Fri, 3 Feb 2006 21:09:40 +0000 (21:09 +0000)]
Add a comment.

18 years agoFix compilation with -Wundef (NBPF is undefined on FreeBSD >4).
ru [Fri, 3 Feb 2006 20:55:30 +0000 (20:55 +0000)]
Fix compilation with -Wundef (NBPF is undefined on FreeBSD >4).

18 years agoHandle NO_INCS solely inside bsd.incs.mk.
ru [Fri, 3 Feb 2006 16:50:32 +0000 (16:50 +0000)]
Handle NO_INCS solely inside bsd.incs.mk.

18 years agoFix a markup glitch.
ru [Fri, 3 Feb 2006 16:41:13 +0000 (16:41 +0000)]
Fix a markup glitch.

18 years agoSort includes.
jhb [Fri, 3 Feb 2006 16:37:55 +0000 (16:37 +0000)]
Sort includes.

18 years agoAdd AUDIT to NOTES, as it's probably ready to get regular build testing
rwatson [Fri, 3 Feb 2006 15:53:37 +0000 (15:53 +0000)]
Add AUDIT to NOTES, as it's probably ready to get regular build testing
by the tinderboxes.

18 years agoRemove user.h include in audit.h, it is unneeded, and also can cause
rwatson [Fri, 3 Feb 2006 15:49:07 +0000 (15:49 +0000)]
Remove user.h include in audit.h, it is unneeded, and also can cause
build problems for other components that include audit.h.

18 years agoIn fchdir(), Giant must be separately acquired and dropped if the old
rwatson [Fri, 3 Feb 2006 15:42:16 +0000 (15:42 +0000)]
In fchdir(), Giant must be separately acquired and dropped if the old
vnode is from a file system that is not MPSAFE, as vrele() expects
Giant to be held when it is called on a non-MPSAFE vnode.

Spotted by: kris
Tested by: glebius

18 years agoMake UDF endian-safe.
will [Fri, 3 Feb 2006 15:25:52 +0000 (15:25 +0000)]
Make UDF endian-safe.

Submitted by: Pedro Martelletto <pedro@ambientworks.net> (via scottl)
Tested on: sparc64

18 years agoDocument carp(4) arguments.
jcamou [Fri, 3 Feb 2006 14:41:41 +0000 (14:41 +0000)]
Document carp(4) arguments.

PR: docs/92653
Submitted by: Jeremy C. Reed <reed@reedmedia.net>
Reviewed by: ru
Approved by: trhodes (mentor)
MFC after: 5 days

18 years ago- Don't shift the clock frequency in MHz left by 8 before assigning it
marius [Fri, 3 Feb 2006 12:35:42 +0000 (12:35 +0000)]
- Don't shift the clock frequency in MHz left by 8 before assigning it
  to sbus_mdvec.dv_clock as sbus_mdvec.dv_clock is meant to be specified
  in MHz. While this was a bug it shouldn't have affected FreeBSD/sparc64
  as sbus_mdvec.dv_clock is used to limit the clock rate of chips when
  a machine isn't able to support them at maximum speed which isn't the
  case for sun4u machines.
- Remove the code that checks whether the clock frequency returned by
  sbus_get_clockfreq() is 0 and falls back to 25MHz if it is as that's
  already done in sbus(4).

Approved by: mjacob
MFC after: 3 days

18 years agoRegenerate.
rwatson [Fri, 3 Feb 2006 11:51:19 +0000 (11:51 +0000)]
Regenerate.

18 years agoAssign audit event identifiers to many system calls.
rwatson [Fri, 3 Feb 2006 11:48:37 +0000 (11:48 +0000)]
Assign audit event identifiers to many system calls.

Much work by: wsalamon
Obtained from: TrustedBSD Project

18 years agoDropping the lock in the transmit_event() is not safe, because we
glebius [Fri, 3 Feb 2006 11:38:19 +0000 (11:38 +0000)]
Dropping the lock in the transmit_event() is not safe, because we
store some pipe pointers on stack. If user reconfigures dummynet
in the interlock gap, we can work with freed pipes after relock.

To fix this, we decided not to send packets in transmit_event(),
but fill a queue. At the end of dummynet() and dummynet_io(),
after the lock is dropped, if there is something in the queue
we run dummynet_send() to process the queue.

In collaboration with: ru

18 years agoFix a sentence.
brueffer [Fri, 3 Feb 2006 11:10:50 +0000 (11:10 +0000)]
Fix a sentence.

18 years agoUse -O2 on RELENG_6 as well
des [Fri, 3 Feb 2006 10:55:00 +0000 (10:55 +0000)]
Use -O2 on RELENG_6 as well

18 years agoAxe unused function.
glebius [Fri, 3 Feb 2006 10:42:28 +0000 (10:42 +0000)]
Axe unused function.

18 years agoMFp4: Small cleanup of cpu messages at boot.
imp [Fri, 3 Feb 2006 06:39:57 +0000 (06:39 +0000)]
MFp4: Small cleanup of cpu messages at boot.

18 years agoMerge from p4: minor formatting nits.
imp [Fri, 3 Feb 2006 06:27:51 +0000 (06:27 +0000)]
Merge from p4: minor formatting nits.

18 years agoAllow newer config versions to config older versions with the same
imp [Fri, 3 Feb 2006 06:12:10 +0000 (06:12 +0000)]
Allow newer config versions to config older versions with the same
major number.

Reviewed by: ru@, jhb@, arch@ (a few months ago)

# this is subject to refinement based on experience.

18 years agoMFi386:
davidxu [Fri, 3 Feb 2006 02:49:14 +0000 (02:49 +0000)]
MFi386:
Clear carry flag in get_mconetxt so that setcontext does not
return a bogus error.

18 years agoClear carry flag in get_mcontext so that setcontext does not
davidxu [Fri, 3 Feb 2006 02:33:01 +0000 (02:33 +0000)]
Clear carry flag in get_mcontext so that setcontext does not
return a bogus error.

PR: misc/92110

18 years ago- Add a startup script for hostapd.
flz [Fri, 3 Feb 2006 01:35:36 +0000 (01:35 +0000)]
- Add a startup script for hostapd.
- Document associated variable in rc.conf(5).

Approved by: dougb
MFC after: 1 week

18 years ago!$(*&!($!&$(!&$&(!$(&!&($!($
mjacob [Fri, 3 Feb 2006 00:36:19 +0000 (00:36 +0000)]
!$(*&!($!&$(!&$&(!$(&!&($!($

Forget to commit this.

18 years agoMake PV entries dynamic on amd64. i386 has a pre-reserved block of kva
peter [Fri, 3 Feb 2006 00:16:36 +0000 (00:16 +0000)]
Make PV entries dynamic on amd64.  i386 has a pre-reserved block of kva
dedicated to storing pv entries, originally so that kva didn't have to be
allocated at inconvenient times.  For amd64, we can get the same effect by
using the direct map area.  Allocating pages is the same as with the object
backed method, but now we can just lookup the page in the direct map area.
Thus, no more pageable kva is reserved.  This is the single largest
consumer of kva on our work machines and this change should help conserve
the fixed size 2GB pageable kva on the amd64 kernel.

There are a pair of sysctl nodes introduced, named the same as their
tunable counterparts.  vm.pmap.shpgperproc and vm.pmap.pv_entry_max
They work just like the tunables of the same path, except the values are
linked.  The pv entry cap is now dynamically changeable.

I didn't make them totally unlimited because we need some sort of safety
limit still.  One could consume all physical memory without a cap.

18 years agoIf the device has a PNPID, don't bother to attach. There were some
imp [Thu, 2 Feb 2006 23:57:31 +0000 (23:57 +0000)]
If the device has a PNPID, don't bother to attach.  There were some
instances where the probe that was here would falsely grab a device.

18 years agoRemove devices acpi & mem, as they are in defaults already.
marcel [Thu, 2 Feb 2006 23:41:08 +0000 (23:41 +0000)]
Remove devices acpi & mem, as they are in defaults already.

18 years agoIn vlan_config() first call vlan_inithash(), then lock mutex, because
glebius [Thu, 2 Feb 2006 22:11:38 +0000 (22:11 +0000)]
In vlan_config() first call vlan_inithash(), then lock mutex, because
vlan_inithash() calls malloc(M_WAITOK).

18 years agoAdjust old comment (present in rev 1.1) to match changes in rev 1.82.
tegge [Thu, 2 Feb 2006 21:55:38 +0000 (21:55 +0000)]
Adjust old comment (present in rev 1.1) to match changes in rev 1.82.

PR: kern/92509
Submitted by:   "Bryan Venteicher" <bryanv@daemoninthecloset.org>

18 years agoFor low memory situations, non-VMIO buffers didnt't release pages back to
tegge [Thu, 2 Feb 2006 21:37:39 +0000 (21:37 +0000)]
For low memory situations, non-VMIO buffers didnt't release pages back to
the system when brelse() was called with B_RELBUF set on the buffer.  This
could be a problem when the system was low on memory, had many buffers on
QUEUE_EMPTYKVA and started to traverse directories.  For each getnewbuf(),
pages were allocated from the system, driving the free reserve downwards.
For each brelse(), the system put the buffer on QUEUE_CLEAN, with B_INVAL
set.

This commit changes the semantics of B_RELBUF to also free pages from
non-VMIO buffers.

Reviewed by: alc

18 years agoRemove use of inlines and use the functions as a library.
mjacob [Thu, 2 Feb 2006 21:31:34 +0000 (21:31 +0000)]
Remove use of inlines and use the functions as a library.

Larger code space, possibly performance hit, but more portable.
Certainly less questionable use of inlining.

Suggested by: des

18 years agoDon't destroy the slave /dev entry until someone figures out why devfs seems
cognet [Thu, 2 Feb 2006 20:35:45 +0000 (20:35 +0000)]
Don't destroy the slave /dev entry until someone figures out why devfs seems
to behave badly when we do so.

18 years agodefine lock.h before rwlock.h for DEBUG_LOCKS
csjp [Thu, 2 Feb 2006 20:33:10 +0000 (20:33 +0000)]
define lock.h before rwlock.h for DEBUG_LOCKS

18 years agoWhitespace fix.
jhb [Thu, 2 Feb 2006 20:14:52 +0000 (20:14 +0000)]
Whitespace fix.

Submitted by: Wojciech A. Koszek <dunstan at zsno ids czest pl>

18 years agoImplement SIOCGIFCONF for 32bit binaries.
ps [Thu, 2 Feb 2006 19:58:37 +0000 (19:58 +0000)]
Implement SIOCGIFCONF for 32bit binaries.

18 years agoEnable 64bit SGL's on PERC 4/DC
ps [Thu, 2 Feb 2006 17:51:47 +0000 (17:51 +0000)]
Enable 64bit SGL's on PERC 4/DC

18 years ago- Move the command setup from amr_start1 into the card specific submit
ps [Thu, 2 Feb 2006 17:50:59 +0000 (17:50 +0000)]
- Move the command setup from amr_start1 into the card specific submit
  routines.
- Add or replace cpu_spinwait() with DELAY(1) to a few of the busy
  loops when reading from the controller to work around firmware bugs
  which can crash the controller.

18 years agoUse PFIL_HOOKED macros in if_bridge and pass the right argument to
csjp [Thu, 2 Feb 2006 16:41:20 +0000 (16:41 +0000)]
Use PFIL_HOOKED macros in if_bridge and pass the right argument to
rw_assert. This un-breaks the build.

Submitted by: Kostik Belousov
Pointy hat to: csjp

18 years agoCorrect and improve the description of le(4) vs. pcn(4); apparently I
marius [Thu, 2 Feb 2006 14:57:00 +0000 (14:57 +0000)]
Correct and improve the description of le(4) vs. pcn(4); apparently I
was thinking from the pcn(4) perspective instead of the le(4) one when
writing the former version as le(4) supports a superset of the chips
supported by pcn(4) and not the other way round.

18 years agoUnder verbose mode, correctly report L2 cache information
davidxu [Thu, 2 Feb 2006 12:44:09 +0000 (12:44 +0000)]
Under verbose mode, correctly report L2 cache information
for CPU which supports CPUID function 8000_0006h.

Tested on: Pentum-M 750

18 years agoFix bug in L2 cache size detection code for CPU which supports CPUID
davidxu [Thu, 2 Feb 2006 11:54:40 +0000 (11:54 +0000)]
Fix bug in L2 cache size detection code for CPU which supports CPUID
function 8000_0006h.

Tested on: Pentum-M 750