Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (29m)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 03:59:19 UTC Now

2008-10-20 10:34:54 UTC MAIN commitmail json YAML

- Add code to produce a fake ELF kernel containing only symbol info. Done
  by extracting ksyms state from the dump, so we have symbols for modules
  loaded at the time of the crash. If ksyms extraction fails, this falls
  back to the current behaviour of copying /netbsd.

- Leave it disabled for the moment: (1) we are about to branch (2) most
  tools understand the artificial kernel but gdb has trouble with it for
  some reason.

(ad)

2008-10-20 10:28:38 UTC MAIN commitmail json YAML

The tools/compat versions of mkstemp() and mkdtemp() need to call the
internal function that's usually named "__gettemp".  However in a cross
build, "__gettemp" is in a namespace reserved for the host system, so we
can't use that.  Use "__nbcompat_gettemp" instead, following the example
of several other functions or macros in tools/compat.  Previously, this
was handled by using the name "gettemp", but that conflicts with the
local gettemp() function in dist/nawk.
cvs: ----------------------------------------------------------------------

(apb)

2008-10-20 10:24:18 UTC MAIN commitmail json YAML

PR kern/38814 ksyms needs locking

- Make ksyms MT safe.
- Fix deadlock from an operation like "modload foo.lkm < /dev/ksyms".
- Fix uninitialized structure members.
- Reduce memory footprint for loaded modules.
- Export ksyms structures for kernel grovellers like savecore.
- Some KNF.

(ad)

2008-10-20 09:33:48 UTC MAIN commitmail json YAML

- fix crazy condition that always evaluates to false without this
  iwn_fix_channel() never gets called.
- remove hardcode to ic->ic_channels[11]

fixes a problem in associating to access points

(rtr)

2008-10-20 08:37:25 UTC MAIN commitmail json YAML

Fix three variable names.
From Todd T. Fries via Jason McIntyre.

(wiz)

2008-10-20 07:48:21 UTC MAIN commitmail json YAML

Define __USE_ISOC99 for linux, making the isblank() proto appear.
This is probably not the Right Thing, but it seems to not break anything.

(dogcow)

2008-10-20 07:11:55 UTC MAIN commitmail json YAML

Pass AWK in environment to shell scripts run during the build.

(apb)

2008-10-20 07:06:21 UTC MAIN commitmail json YAML

Drop trailing whitespace.

(wiz)

2008-10-20 07:03:58 UTC MAIN commitmail json YAML

Sort errors, use .Nx, avoid man markup, whitespace and punctuation nits.

(wiz)

2008-10-20 06:42:53 UTC MAIN commitmail json YAML

Document using boot -a and /rescue/init if the system fails to boot with
"init: not found".

(lukem)

2008-10-20 06:26:47 UTC MAIN commitmail json YAML

Adapt to NetBSD:
* Recommend checking /lib and /libexec for corruption.
* A NetBSD installation CD should suffice for recovery if necessary.
* I designed & wrote the rescue framework in NetBSD; update credits.
  (The FreeBSD guys were inspired by it)
* Other minor tweaks to differences in the systems.

(lukem)

2008-10-20 06:14:28 UTC MAIN commitmail json YAML

Add a manual page for /rescue.
Obtained from FreeBSD src/share/man/man8/rescue.8 1.3
This is the FreeBSD version; NetBSD customisation to occur
in followup commits.

(lukem)

2008-10-20 03:02:07 UTC MAIN commitmail json YAML

2008-10-19 23:28:31 UTC MAIN commitmail json YAML

if_input needs to be called at splnet(). ok by cube.

(hans)

2008-10-19 22:41:28 UTC haad-dm commitmail json YAML

2008-10-19 22:18:11 UTC haad-dm commitmail json YAML

2008-10-19 22:10:05 UTC MAIN commitmail json YAML

In shell scripts invoked during a build, and in crunchgen, use ${AWK}
instead of plain "awk".  The Makefiles that invoke these scripts
or programs will pass AWK=${HOST_AWK:Q}.

(apb)

2008-10-19 22:05:24 UTC MAIN commitmail json YAML

2008-10-19 21:27:46 UTC MAIN commitmail json YAML

2008-10-19 21:24:20 UTC MAIN commitmail json YAML

Removed a local variable that is no longer needed (should have been removed in last commit...)

(marcus)

2008-10-19 21:18:22 UTC MAIN commitmail json YAML

Xref netconfig(5). Requested by Martin S. Weber in PR bin/39605.

(snj)

2008-10-19 20:54:22 UTC MAIN commitmail json YAML

PR/39770: Robert Elz: mount(2) doc enhancements

(christos)

2008-10-19 19:44:47 UTC MAIN commitmail json YAML

2008-10-19 19:42:23 UTC MAIN commitmail json YAML

During the tools build (from src/tools/awk/Makefile),
src/tools/Makefile.host changes .CURDIR back and forth between
src/tools/awk and src/usr.bin/awk.  For some unknown reason, including
bsd.info.mk here leads to the obj dir being created at the wrong time,
while .CURDIR is src/usr.bin/awk.  Work around the problem by not
including bsd.info.mk when MKINFO=no.

(apb)

2008-10-19 19:40:19 UTC MAIN commitmail json YAML

2008-10-19 19:38:55 UTC MAIN commitmail json YAML

Define NOINFO, so that we don't try to build info fiels for host tools.

(apb)

2008-10-19 19:33:48 UTC MAIN commitmail json YAML

2008-10-19 19:29:43 UTC MAIN commitmail json YAML

Add the NOINFO variable, which works just like all other NOxxx variables.

(apb)

2008-10-19 18:17:14 UTC MAIN commitmail json YAML

Make genfs_directio() IO_JOURNALLOCKED aware.  DirectIO no longer triggers
"locking against myself" panic in wapbl_begin().

Observed and tested by: Frank Kardel <kardel@netbsd.org>

(hannken)

2008-10-19 17:57:19 UTC MAIN commitmail json YAML

Spelling and whitespace and punctuation nits.

(wiz)

2008-10-19 17:47:38 UTC MAIN commitmail json YAML

Calculate maxdispoffset rather than hard-coding it. Fixes scrolling in
80x25 mode.

XXX This doesn't handle odd modes like 80x30 on 640x480, but the driver
didn't allow that selection previously so at least it's an improvement
over the previous behaviour.

(jmcneill)

2008-10-19 17:20:38 UTC MAIN commitmail json YAML

vga_cnattach: calling wsdisplay_screentype_pick with a NULL type will
select the first entry in the list, which overrides the selected screen
type. Only call it a second time if the original selection is invalid.

(jmcneill)

2008-10-19 17:04:49 UTC MAIN commitmail json YAML

Improve wording.

(wiz)

2008-10-19 16:59:08 UTC MAIN commitmail json YAML

Add missing dot before macro.

(wiz)

2008-10-19 16:54:19 UTC MAIN commitmail json YAML

Improve wording. Use Bd -literal for code sample.

(wiz)

2008-10-19 16:00:39 UTC MAIN commitmail json YAML

We need -DAVOID_CPIO on most non-x86 ports. Set it on sparc64 and PowerPC
for now.

(macallan)

2008-10-19 15:58:40 UTC MAIN commitmail json YAML

Downgrade a few more FatalError()s to X_WARNING, while there use
PCI_MAGIC_IO_RANGE to mmap the IO range instead of a macppc-specific magic
number. We'll need this on shark and the other powerpc-based ports.

(macallan)

2008-10-19 15:56:07 UTC MAIN commitmail json YAML

Failure to map something is not a FatalError()

(macallan)

2008-10-19 15:53:02 UTC MAIN commitmail json YAML

2008-10-19 15:22:50 UTC MAIN commitmail json YAML

2008-10-19 15:22:17 UTC MAIN commitmail json YAML

fix so that we can compile with PIC

(christos)

2008-10-19 14:57:22 UTC MAIN commitmail json YAML

Replaced funky delay loop with a call to DELAY (fixed problems with newer GCCs).

(marcus)

2008-10-19 14:46:40 UTC MAIN commitmail json YAML

mention ps 'O' change.

(christos)

2008-10-19 14:12:28 UTC MAIN commitmail json YAML

Include opt_multiboot.h to allow the option to work.

(joerg)

2008-10-19 14:05:49 UTC MAIN commitmail json YAML

Fix debug code that had bitrotted. This allows the maple(4) driver to
be compiled with MAPLE_DEBUG defined.

o line 798: variable buf shadows previous local
o line 1425: event_thread is no longer a struct proc but now is
    a lwp_t. Use the correct p_pid member.

(mjf)

2008-10-19 11:42:27 UTC MAIN commitmail json YAML

Add entry for the addition of u3g.

(joerg)

2008-10-19 11:40:02 UTC MAIN commitmail json YAML

Remove two devices that are handled by ubsa and might need special
handling from u3g until further reports. Move a number of data cards
from ugensa to u3g based on the FreeBSD list.

(joerg)

2008-10-19 11:37:44 UTC MAIN commitmail json YAML

2008-10-19 11:36:11 UTC MAIN commitmail json YAML

Sync list of 3G cards with FreeBSD.

(joerg)

2008-10-19 11:34:31 UTC MAIN commitmail json YAML

2008-10-19 09:44:31 UTC MAIN commitmail json YAML

2008-10-19 08:30:10 UTC MAIN commitmail json YAML

Always make the debugging output unbuffered; in addition, if debugging
is enabled but debugging output is not directed to stdout, then make
stdout line buffered.

Previously, the code to make debug output unbuffered applied only if
debugging to a file, not if debugging to stdout or stderr.  Making
stdout line buffered when debugging was suggested by Steven Bellovin.

(apb)

2008-10-19 07:56:42 UTC MAIN commitmail json YAML

Use uint32_t and include <stdint.h>, instead of using u_int32_t
and including <sys/types.h>.

(apb)

2008-10-19 04:53:41 UTC MAIN commitmail json YAML

Create audio devices on all_md.

(tsutsui)

2008-10-19 03:39:26 UTC MAIN commitmail json YAML

2008-10-19 03:10:09 UTC MAIN commitmail json YAML

rename proc_representative_lwp to proc_active_lwp and clarify it is for
ps display purposes. suggested by rmind.

(christos)

2008-10-19 02:39:08 UTC MAIN commitmail json YAML

Use 'O' for LSONPROC like solaris instead of bundling LSIDL, LSRUN, LSONPROC
to 'R'

(christos)

2008-10-19 01:43:25 UTC MAIN commitmail json YAML

Select a "representative" lwp instead of the first lwp in the list. The
first lwp in the list is the last created and in the firefox and gtk-gnash
case this is usually a zombie, so the status in ps was ZLl. This now picks
the lwp in order ONPROC > RUN > SLEEP > STOP > SUSPENDED > IDL > DEAD > ZOMB
and breaks ties using cpticks.

(christos)

2008-10-18 22:44:26 UTC MAIN commitmail json YAML

Avoid using PRINTX11VERSION which doesn't give the expected result.  Use
the somewhat hackish XORG_VERSION_CURRENT instead.

(cube)

2008-10-18 20:46:43 UTC MAIN commitmail json YAML

2008-10-18 20:44:53 UTC MAIN commitmail json YAML

2008-10-18 20:20:01 UTC MAIN commitmail json YAML

2008-10-18 19:24:04 UTC MAIN commitmail json YAML

Obviously intention was to check for SCHED_OTHER, not SCHED_FIFO.

(rmind)

2008-10-18 18:53:20 UTC MAIN commitmail json YAML

kern/39757 from mishka@:
Bump CISS_MAX_CDB from 12 to 16 bytes. For volumes larger than 2TB,
the scsipi layer will have to use 16 bytes SCSI commands, which would be
rejected by ciss. The cdb buffer already 16 bytes long, and a look at the
FreeBSD driver shows there's no reasons to limit SCSI commands to 12 bytes.

(bouyer)

2008-10-18 16:59:52 UTC MAIN commitmail json YAML

Don't use a pointer to vm_map_entry after releasing the vm_map_lock().
Pointed out by yamt@.

(bouyer)

2008-10-18 16:52:35 UTC MAIN commitmail json YAML

Create ld, altq and nsmb devices on all_md.

(tsutsui)

2008-10-18 16:35:40 UTC MAIN commitmail json YAML

Add fan sensor support, from Thomas E. Spanjaard

(jmcneill)

2008-10-18 16:27:19 UTC MAIN commitmail json YAML

Regen from configure.ac rev 1.67:
> Prepare dummy <resolv.h> and <arpa/nameser.h> to make asn1_compile and
> compile_et compile on systems which don't have these BIND headers like Cygwin.

(tsutsui)

2008-10-18 16:25:04 UTC MAIN commitmail json YAML

Prepare dummy <resolv.h> and <arpa/nameser.h> to make asn1_compile and
compile_et compile on systems which don't have these BIND headers like Cygwin.

Tested by "build.sh -m i386 -U release" on CYGWIN_NT-5.1-1.5.25,
and should close PR toolchain/29032.

(tsutsui)

2008-10-18 15:55:27 UTC MAIN commitmail json YAML

Make scan abort command async as newstate is called from an interrupt
context so we cannot ltsleep.

(blymn)

2008-10-18 14:41:49 UTC MAIN commitmail json YAML

With the demise of ../wpa_supplicant/crypto_libc.c, enable the
internal AES/SHA1 implementations.

(scw)

2008-10-18 14:40:48 UTC MAIN commitmail json YAML

2008-10-18 14:36:41 UTC MAIN commitmail json YAML

Document how "-dF[+]filename" works.

(apb)

2008-10-18 14:35:32 UTC MAIN commitmail json YAML

Allow optional "+" in "-dF[+]filename" even if the filename is "stdout"
or "stderr".  Previously, the "+" was alowed only for real file names,
but it's easier to write the documentation if the "+" is always allowed.

(apb)

2008-10-18 14:09:54 UTC MAIN commitmail json YAML

mention rump networking support

(pooka)

2008-10-18 13:38:42 UTC MAIN commitmail json YAML

2008-10-18 12:32:50 UTC MAIN commitmail json YAML

Ditch crypto_libc.c in favour of the internal AES/MD5/SHA1 implementations
in the WPA distribution when building without native crypto.

For hostapd in particular, using crypto_libc.c unconditionally meant that
up until now the program has been pretty much unusable for anything which
requires cryptographic key exchanges. E.g. WPA/WPA2.

Also add support for a range of authentication protocols (EAP) in hostapd
if we're building with native crypto support.

(scw)

2008-10-18 09:43:44 UTC MAIN commitmail json YAML

Make u3g send an eject command to Novatel MC950D devices. Explicitly
attach as device for umass mode on MC950D and the Huawei devices to
supersede the umass quirk.

(joerg)

2008-10-18 09:08:34 UTC MAIN commitmail json YAML

for AMD CPUs: utilize new ci_feature4_flags field and check if SVM is present & disabled by the BIOS.
If so, then print this information in the dmesg, but only once for cpu0.
Don't do this check in a Xen DomU.

(cegger)

2008-10-18 04:41:14 UTC MAIN commitmail json YAML

Change type of per-CPU event counters to EVCNT_TYPE_MISC.

(nakayama)

2008-10-18 04:20:37 UTC MAIN commitmail json YAML

- fix corner case bugs.
- avoid unnecessary write backs.
- remove meaningless local variable usages.

(nakayama)

2008-10-18 03:46:22 UTC MAIN commitmail json YAML

- Initialize pool subsystem and kmem(9) earlier, when UVM is up enough.
- Remove uao_hashinit() workaround used for anon-objects.
- Replace malloc with kmem.

OK by <yamt>.

(rmind)

2008-10-18 03:44:04 UTC MAIN commitmail json YAML

Make SCHED_M2 nice with nice(1).  Closes PR/38048.

(rmind)

2008-10-18 03:40:18 UTC MAIN commitmail json YAML

Disallow user priority adjustments for SCHED_OTHER policy, simplify
convert_pri().  Sync schedctl(8) with the change.  Closes PR/38009.

(rmind)

2008-10-18 03:37:41 UTC MAIN commitmail json YAML

Do not recommend to mix affinity(3) with pset(3).

(rmind)

2008-10-18 03:31:10 UTC MAIN commitmail json YAML

It is wasteful that reconstructing arguments for inserting the pointer
to streaming buffers in each bus_dma functions on sbus/psycho layer.

Use iommu functions directly with storing the pointer into (unused)
_dm_cookie at bus_dmamap_create time.

(nakayama)

2008-10-18 03:30:19 UTC MAIN commitmail json YAML

- Recommend poll(2) instead of select(2).
- Update example code a little bit.

(rmind)

2008-10-18 03:10:53 UTC MAIN commitmail json YAML

UltraSPARC IIi and IIe have PCI DMA Write Synchronization Register to
synchronize the DMA writes.  So use it in case of BUS_DMASYNC_POSTREAD.

Tested on my Netra X1 for several years.

(nakayama)

2008-10-17 22:16:37 UTC MAIN commitmail json YAML

Add checks to avoid possible calls to kmem_alloc() with 0 values.

Approved by bouyer.

(jym)

2008-10-17 21:31:55 UTC MAIN commitmail json YAML

apb's latest change introduced a test to make sure an actual etc.tgz (or an
extraction of it) was provided as -s, but SOURCEMODE was not set to true in
the default case, which is to use /usr/src/etc, a source directory.

(cube)

2008-10-17 21:20:30 UTC MAIN commitmail json YAML

revert previous; now 'postinstall fix' does not work anymore without having
sets.

(christos)

2008-10-17 21:14:40 UTC MAIN commitmail json YAML

use an existing file otherwise the test always fails.

(christos)

2008-10-17 21:11:27 UTC MAIN commitmail json YAML

More or less a complete rewrite.  The man page now better matches reality.

(ginsbach)

2008-10-17 20:52:34 UTC MAIN commitmail json YAML

I don't have set.etc!?!? Do you?

(christos)

2008-10-17 20:42:47 UTC MAIN commitmail json YAML

2008-10-17 20:21:34 UTC MAIN commitmail json YAML

2008-10-17 20:19:24 UTC MAIN commitmail json YAML

Move linux_sigaction.c from MI to MD lists, except for amd64.

(njoly)

2008-10-17 20:17:19 UTC MAIN commitmail json YAML

Remove unneeded linux_sigaction.c

(njoly)

2008-10-17 20:03:24 UTC MAIN commitmail json YAML

use generic enable_interrupts() and disable_interrupts() instead of
armv6-specific interrupt control ops when _ARM_ARCH_6 not defined

(cliff)

2008-10-17 20:02:39 UTC MAIN commitmail json YAML

Bump date for previous.

(bouyer)

2008-10-17 19:31:00 UTC MAIN commitmail json YAML

Fix product name, it's JMC2x0 not JME2x0.
Pointed out by ethanhsiao at jmicron in private mail.

(bouyer)

2008-10-17 17:29:39 UTC MAIN commitmail json YAML

make .a archives PIC for MKPIE

(christos)

2008-10-17 17:15:09 UTC MAIN commitmail json YAML

add missing free.

(christos)

2008-10-17 15:04:18 UTC MAIN commitmail json YAML

Document the HOST_xxx and TOOL_xxx variable naming convention.

(apb)

2008-10-17 14:24:43 UTC MAIN commitmail json YAML

Requested by yamt:
- In getpages don't allocate if we are not locked
- Use kmem_alloc instead of malloc and don't sleep

Also provide a 64 entry stack array so we don't have to allocate in the
common case.

(christos)

2008-10-17 12:35:12 UTC MAIN commitmail json YAML

2008-10-17 10:53:26 UTC MAIN commitmail json YAML

Fix a bug in which which(1) would check only the first element of the
path for all args except the first.  So "which cp vi" found /bin/cp
using the first entry in the path, but failed to find /usr/bin/vi
using the second entry in the path, although "whereis cp vi" worked.
Restoring the ":" was done in the wrong place.

Also fix a bug in which an arg beginning with "/" would cause all
subsequent args to be ignored.  A "break" should have been "continue".
Add comments to all break and continue statements saying what they are
intended to do.

Also add braces around the body of a for loop which contained only one
multi-line statement.

(apb)

2008-10-17 08:51:43 UTC MAIN commitmail json YAML

2008-10-17 08:20:48 UTC MAIN commitmail json YAML

build fix: <sys/savar.h> is needed to make dereferencing sadata_vp compile.
A fwd declaration is enough for defining a pointer, but you need the definition to access the structure

(cegger)

2008-10-17 08:16:57 UTC MAIN commitmail json YAML

add struct lwp fwd declaration make to this header standalone

(cegger)

2008-10-17 08:12:23 UTC MAIN commitmail json YAML

build fix: get prototype for cpu_upcall()

(cegger)

2008-10-17 06:40:21 UTC MAIN commitmail json YAML

it appears the previous commit's sacrifice was "successful compilation with
NFS_V2_ONLY defined".

(dogcow)

2008-10-17 00:46:08 UTC MAIN commitmail json YAML

2008-10-17 00:29:21 UTC MAIN commitmail json YAML

p_smutex was merged into p_lock some time ago.

(uebayasi)

2008-10-16 23:43:03 UTC haad-dm commitmail json YAML

Be consistent when calling struct dm_dev. Use name dmv when possible.
Change DISABLE_DEV macro to inline function.

(haad)

2008-10-16 23:26:42 UTC haad-dm commitmail json YAML

2008-10-16 22:22:08 UTC MAIN commitmail json YAML

2008-10-16 22:05:13 UTC MAIN commitmail json YAML

Alpha requires 8k pages for mbuf size calculation to work (maybe
sparc64 too?).  Make it so.

(pooka)

2008-10-16 22:04:23 UTC MAIN commitmail json YAML

Another sacrifice to the stack protector gods.

(christos)

2008-10-16 21:22:32 UTC MAIN commitmail json YAML

Fix compilation if !INET6

(abs)

2008-10-16 20:12:23 UTC MAIN commitmail json YAML

Regen syscall tables. I forgot to do it after revivesa. While pooka
did some, not all are regenerated. Do them all at once for consistency.

(wrstuden)

2008-10-16 19:51:58 UTC MAIN commitmail json YAML

Add SB700 to the list of supported controllers, and include a caveat
that some SB700 controllers can hang under load when Native IDE
mode is selected in the system BIOS, but work fine in AHCI mode.

(abs)

2008-10-16 19:38:37 UTC MAIN commitmail json YAML

Add misissing include and fix a few typos.

(martin)

2008-10-16 19:35:07 UTC MAIN commitmail json YAML

revert stack protector change.

(christos)

2008-10-16 19:33:48 UTC MAIN commitmail json YAML

don't use variable allocation on the stack.

(christos)

2008-10-16 19:33:11 UTC MAIN commitmail json YAML

2008-10-16 19:30:49 UTC MAIN commitmail json YAML

One more rump syscall: ioctl (required for interface configuration)

(pooka)

2008-10-16 19:28:52 UTC MAIN commitmail json YAML

Resurrect cpu_setfunc(), adapted to new world order.

(martin)

2008-10-16 19:28:26 UTC MAIN commitmail json YAML

Add an example of how to configure the virtual interface address
and the default gateway.

(this will probably go into some library eventually, but now it'll
just sit here as an example)

(pooka)

2008-10-16 19:27:25 UTC MAIN commitmail json YAML

Before I sort all the COMPAT_RIDICULOUSLYPREHISTORIC ioctl stuff
out, add a weak alias for ifunit() so that utils can be linked with
sockin.

(pooka)

2008-10-16 19:14:51 UTC MAIN commitmail json YAML

Deal with the ld.so/linkset brokenness and compile all of libnet
and libnetinet into a big bunch for now.  If they were separate
libraries, the DOMAIN_DEFINE() in the latter on the linkline would
not get noticed at "boot" time because of the abovementioned
brokenness.  One of these days I'll add code to dlopen() the
libraries and resplit them, but this will allow things to work
until then.

(pooka)

2008-10-16 19:06:40 UTC MAIN commitmail json YAML

Ignore stack-protector, since with nfs_bio.c it gets its life force
drained out.  Yes, this is a quick kludge, should rather fix
nfs_bio.c to be less silly.

(pooka)

2008-10-16 18:56:56 UTC MAIN commitmail json YAML

include bpf headers so that the bpf calls actually do something. ok by cube.

(hans)

2008-10-16 18:21:46 UTC MAIN commitmail json YAML

Adjust locking on the sadata::sa_vps list. The main time we
walk the list, we're looking for a vp to do something with. We do
this in the signal code and in the timer code. The signal code already
runs with proc::p_lock held, so it's a very natural lock to use. The
timer code, however, calls into the sa timer code with a spinlock held.
Since proc::p_lock is an adaptable mutex, we can sleep to get it. Sleeping
with a spinlock is BAD. So proc::p_lock is _not_ the right lock there,
and something like sadata::sa_mutex would be best.

Address this difficulty by noting that both uses actually just read
the list. Changing the list of VPs is rare - once one's added, it stays
until the process ends. So make the locking protocol that to write the
list you have to hold both proc::p_lock and sadata::sa_mutex (taken
in that order). Thus holding either one individually grants read access.

This removes a case where we could sleep with timer_lock, a spinlock at
IPL_SCHED (!!), while trying to get p_lock. If that ever happened, we'd
pretty much be dead. So don't do that!

This fixes a merge botch from how I handled our gaining p_lock - p_lock
should not have simply replaced p_smutex.

While here, tweak the sa_unblock_userret() code for the case
when the blessed vp is actually running (on another CPU). Make its
resched RESCHED_IMMED so we whack the CPU. Addresses a hang I've
observed in starting firefox on occasion when I see one thread running
in userland and another thread sitting in lwpublk, which means it's on
the list of threads for which we need an unblocked upcall. This list is
one on which things should NOT linger.

(wrstuden)

2008-10-16 17:58:30 UTC MAIN commitmail json YAML

The field width passed for a %.*s printf format is supposed to be int, not
ptrdiff_t; on 64-bit platforms the latter will be too wide.
Adjust accordingly.

(dholland)

2008-10-16 17:54:23 UTC MAIN commitmail json YAML

2008-10-16 17:49:24 UTC MAIN commitmail json YAML

p_smutex was replaced by p_lock.

(skrll)

2008-10-16 17:42:26 UTC MAIN commitmail json YAML

Bring back cpu_setfunc.

cpu_lwp_fork should use cpu_setfunc, but not right now.

(skrll)

2008-10-16 17:08:33 UTC MAIN commitmail json YAML

resurrect cpu_setfunc(), adapted to new world order.

(martin)

2008-10-16 16:41:07 UTC MAIN commitmail json YAML

2008-10-16 16:40:39 UTC MAIN commitmail json YAML

...... except that the compat converter is actually supposed to convert
the ioctl, not return random garbage.  It returning random garbage
causes an interface with an interesting netmask to get set and
hence a very interesting effect when you try to add a route for
your system.

All in all, a very healthy debugging session (if you're a vampire
or a wraith).

(pooka)

2008-10-16 15:36:23 UTC MAIN commitmail json YAML

Wrap declaration of a STATIC function that's only conditionally defined
in a suitable ifdef, so things still compile if STATIC is defined as
"static", which is for some reason not the default.

(dholland)

2008-10-16 15:31:05 UTC MAIN commitmail json YAML

Wrap declaration of a STATIC function that's only conditionally defined
in a suitable ifdef, so things still compile if STATIC is defined as
"static", which is for some reason not the default.

(In the long run STATIC should go away - it might have once been a
portability hack but now definitely serves no purpose.)

(dholland)

2008-10-16 15:02:10 UTC MAIN commitmail json YAML

... except that compat_ifioctl() must know how to route the
commands further.

(pooka)

2008-10-16 14:55:28 UTC MAIN commitmail json YAML

Remove unused global variables

(dholland)

2008-10-16 14:38:39 UTC MAIN commitmail json YAML

Add a few compat stubs.  They shouldn't be required at all, but I
don't currently have the time to wage a holy war against how the
kernel decides it wants them.

(pooka)

2008-10-16 14:36:42 UTC MAIN commitmail json YAML

Provide a way for a program to override the PIE flags.

(christos)

2008-10-16 14:36:40 UTC MAIN commitmail json YAML

Use "extern" properly for referencing globals defined in other modules.
Now builds cleanly with -warn-common.

(dholland)

2008-10-16 14:36:20 UTC MAIN commitmail json YAML

Never build this with PIE.

(christos)

2008-10-16 13:39:25 UTC MAIN commitmail json YAML

Set nexaddr on qbus vaxen to enable remapping of buffers when booting
from MSCP devices. Fixes MSCP boot problem introduced by moving boot up
to allow for bigger kernels. OK by matt.

(hans)

2008-10-16 13:36:06 UTC MAIN commitmail json YAML

2008-10-16 12:47:23 UTC MAIN commitmail json YAML

2008-10-16 10:32:30 UTC MAIN commitmail json YAML

2008-10-16 10:30:17 UTC MAIN commitmail json YAML

Be more verbose about the performance hit.

(pooka)

2008-10-16 09:44:12 UTC MAIN commitmail json YAML

2008-10-16 09:43:12 UTC MAIN commitmail json YAML

add do-sys-rump-net-lib

(pooka)

2008-10-16 09:39:43 UTC MAIN commitmail json YAML

2008-10-16 09:30:57 UTC MAIN commitmail json YAML

2008-10-16 09:29:43 UTC MAIN commitmail json YAML

* descend into rump/net
* descend into fs/lib/libnfs

(pooka)

2008-10-16 09:25:30 UTC MAIN commitmail json YAML

Add a prototype to allow this to build (will be moved to a better
place later).

(pooka)

2008-10-16 09:24:51 UTC MAIN commitmail json YAML

2008-10-16 09:12:54 UTC MAIN commitmail json YAML

Convert mount_nfs to the mount_foo_parseargs() format.  No functional
change.

(pooka)

2008-10-16 08:52:20 UTC MAIN commitmail json YAML

Another revivesa merge botch.

(ad)

2008-10-16 08:47:07 UTC MAIN commitmail json YAML

_lwp_kill: set SI_LWP in the siginfo, not SI_USER.

(ad)

2008-10-16 05:41:13 UTC MAIN commitmail json YAML

Adjust previous; apb@ points out that _PATH_TMP is provided by compat_defs.h;
thus, this shouldn't need a paranoid fallback definition.
And, use _PATH_TMP also in the second place that was using a hardwired "/tmp".

(dholland)

2008-10-16 05:35:01 UTC MAIN commitmail json YAML

Fix ridiculously small filename buffer for temporary file and resulting
truncation if $TMPDIR is set; also, fix an error path to not leave the
temporary file behind. From Gao Ya'nan in PR 39746.
While here, use _PATH_TMP instead of a hardwired "/tmp".

(dholland)

2008-10-16 04:02:32 UTC MAIN commitmail json YAML

Bring back saframe. Noted by Robert Swindells.

(wrstuden)

2008-10-16 03:51:55 UTC MAIN commitmail json YAML

sys/sa.h and sys/satypes.h are both needed, so revive/include them.

(wrstuden)

2008-10-15 22:25:26 UTC MAIN commitmail json YAML

nfs_boot calls some networking stack routines directly.  Since rump
will not invoke nfs_boot in the foreseeable future, provide those
routines as stubs in case sockin is used instead of the real
networking stack.

(pooka)

2008-10-15 20:41:11 UTC MAIN commitmail json YAML

Don't descend into rumptest automatically.  Otherwise a manual
"make install" in this directory does some funnies.

(pooka)

2008-10-15 20:32:46 UTC MAIN commitmail json YAML

Pre-declare struct sadata_vp here so we avoid a circular dependency
between this file and savar.h. This lets lwp.h stand on its own.

I do not understand why compiling kernels on i386 did not catch this.

(wrstuden)

2008-10-15 20:15:37 UTC MAIN commitmail json YAML

One more init I happened to forget: iostat_init()

(pooka)

2008-10-15 20:08:33 UTC MAIN commitmail json YAML

Reduce the scope of PPPoE session IDs from globally unique to per-interface
unique. Some brands of ADSL modems pick a hard-coded session ID which
would otherwise make it impossible to use two of them in the same system
simultaneously.

(scw)

2008-10-15 19:06:45 UTC MAIN commitmail json YAML

Reword quite out-of-place (even historically) "nqnfs 2" error message.

(pooka)

2008-10-15 18:31:16 UTC MAIN commitmail json YAML

2008-10-15 18:30:29 UTC MAIN commitmail json YAML

Fix entry description.

(bouyer)

2008-10-15 18:07:46 UTC MAIN commitmail json YAML

Use RET/RETc as appropriate

(matt)

2008-10-15 18:07:28 UTC MAIN commitmail json YAML

Looks like we need sa.h after all for userland. Add it back.

(wrstuden)

2008-10-15 17:34:52 UTC MAIN commitmail json YAML

2008-10-15 17:32:04 UTC MAIN commitmail json YAML

Add support for more ethenet ICH9 devices. Tested by Pouya D. Tafti
on a 82801I_IGP_M_AMT.

(bouyer)

2008-10-15 17:31:51 UTC MAIN commitmail json YAML

don't compile/link libraries with pie

(christos)

2008-10-15 16:56:49 UTC MAIN commitmail json YAML

2008-10-15 16:38:10 UTC MAIN commitmail json YAML

Make sure the register used is 0 when doing ops which affect the entire
cache or tlb.

(matt)

2008-10-15 16:03:29 UTC MAIN commitmail json YAML

Add a weak alias for ktr_saupcall, so things build w/o KTRACE compiled.

(wrstuden)

2008-10-15 16:00:47 UTC wrstuden-revivesa commitmail json YAML

Add alias for ktr_saupcall, so things build w/o KTRACE.

(wrstuden)

2008-10-15 14:32:26 UTC MAIN commitmail json YAML

Correct existing Xen example and add Xen with serial console example.
Refer to boot.cfg(5) for Xen examples from boot(8).

(sborrill)

2008-10-15 14:21:35 UTC MAIN commitmail json YAML

For NFSV3CREATE_EXCLUSIVE verifier, just use arc4random() instead
of the first inet address on INET systems (which is likely to be
localhost).

(pooka)

2008-10-15 14:09:21 UTC MAIN commitmail json YAML

Revert revivesa merge botch to fix build.

(pooka)

2008-10-15 13:57:03 UTC MAIN commitmail json YAML

Revert weird revivesa merge botch.  (Hi Bill!)

(pooka)

2008-10-15 13:11:45 UTC MAIN commitmail json YAML

2008-10-15 13:04:27 UTC MAIN commitmail json YAML

2008-10-15 13:02:29 UTC MAIN commitmail json YAML

2008-10-15 13:02:01 UTC MAIN commitmail json YAML

2008-10-15 13:01:15 UTC MAIN commitmail json YAML

Mark a few network-related calls as RUMP (needs more work)

(pooka)

2008-10-15 13:00:40 UTC MAIN commitmail json YAML

2008-10-15 11:45:35 UTC MAIN commitmail json YAML

Call rump_sys_setsockopt(SO_RCVTIMEO) for el-cheapo "async" socket i/o.

(pooka)

2008-10-15 11:43:38 UTC MAIN commitmail json YAML

Mostly support TCP, mostly meaning "client-side TCP", since listen,
accept etc. is not supported yet.  Disconnect is not really supported
either, but doesn't matter in most cases.

(pooka)

2008-10-15 10:05:07 UTC MAIN commitmail json YAML

build fix: get prototype for membar_producer()

(cegger)

2008-10-15 09:55:01 UTC MAIN commitmail json YAML

buildfix: get prototype for cpu_upcall()

(cegger)

2008-10-15 08:58:40 UTC MAIN commitmail json YAML