Commit Graph

162795 Commits

Author SHA1 Message Date
agc
cfd783f213 -D_FILE_OFFSET_BITS=64 is not needed on NetBSD.
Install the test harness into the correct location.
2007-10-26 19:04:21 +00:00
agc
a1b018359f -D_FILE_OFFSET_BITS=64 is not needed on NetBSD 2007-10-26 19:03:17 +00:00
agc
d7728ae0d3 Update to version 20071025
Pay closer attention to the TSIH value that is assigned by the target -
rather than a simple (session id + 1) value, which cycles after 16 sessions
are used, use a central counter, and increment that whenever a TSIH is
apportioned. This fixes some problems for me with multiple targets being
ignored, and only the first target being used. Tested with the Microsoft
initiator, and the embryonic NetBSD initiator.

Use more enumerated types, rather than cpp definitions.

Use enumerated types also in preference to magic numbers.

In the iSCSI test harness, use the -t argument to specify a disk target
exported by the NetBSD iSCSI target. This allows us to test for the
situation outlined above.

Add my copyright to the test harness - there's no Intel code left anymore.

Modify the way initiator login and logout information is presented to the
user. This is only of concern to people who use this with the target in
non-detached (non-daemon) mode.

Get rid of the MODE_SENSE_10 and MODE_SELECT_10 cases in the disk switch,
since they do not return responses in the correct format yet.
2007-10-26 18:36:45 +00:00
agc
06e992a132 Correct the name of the AIX 5.3 initiator reporter (where known) 2007-10-26 18:19:36 +00:00
pooka
87ffdd1649 RUMUSEROBJDIR -> RUMPUSEROBJDIR (those cold-blooded old times ...) 2007-10-26 18:03:26 +00:00
pooka
6640f4d32a It's non-trivial to say that "no, we don't have cpu counter on this
arch (rump)", so emulate it.  But this is suboptimal.  The crux of
the problem seems to be that types.h contains both information on
the machine architecture (which we want) as well as other defines
such as __HAVE_CPU_COUNTER (which we don't want).
2007-10-26 17:59:38 +00:00
pooka
ff9a260335 few stubs 2007-10-26 17:56:24 +00:00
pooka
bf494d7f8d more carefully emulate vget() and vrecycle() 2007-10-26 17:55:43 +00:00
hira
d13505e0de Add missing -e option. From OpenBSD. 2007-10-26 17:45:26 +00:00
pooka
90f8810031 In threading where available. 2007-10-26 17:36:23 +00:00
pooka
edb40ac9bf Add some very initial support for a threading worker model as an
alternative to the (vastly superior ;) continuation model.  This
is very preliminary stuff and not compiled by default (which it
even won't do without some other patches I cannot commit yet).

The raison d'commit of the patch is a snippet which ensures proper
in-order dispatching of all operations, including those which don't
require a response.  Previously many of them would be dispatched
simultaneosly, e.g. fsync and reclaim on the same node, which
obviously isn't all that nice for correct operation.
2007-10-26 17:35:01 +00:00
ad
630552ea77 ras_sync: deal with spurious wakeup and add comments. 2007-10-26 17:28:37 +00:00
pavel
d35530e427 now when trap 0 is not used, we need to remove the temporary directiry
at the end. PR bin/37223.
2007-10-26 17:26:25 +00:00
pooka
944ce6a1a8 dump pid/lwp of caller 2007-10-26 17:24:45 +00:00
pooka
f977a9f9b5 Read/write can reuse message memory if operating uncached. This
will change evetually, but for now just appease a KASSERT by
resetting the message header to 0 after each loop.
2007-10-26 16:54:50 +00:00
hira
5952a904ed - Add -0 and -V to pax_usage().
- Add -k to tar_usage().
2007-10-26 16:38:12 +00:00
hira
82c330f342 Remove extra space from -T option in SYNOPSIS. 2007-10-26 16:35:59 +00:00
hira
e2c7784538 Sync SYNOPSIS with usage() (correct location of -P). 2007-10-26 16:31:16 +00:00
hira
c710611df5 Add -N to usage. 2007-10-26 16:21:25 +00:00
nisimura
eae2367539 make sure to have vtophys conversion to feed memory ptr to HW,
and some consistency among them.
2007-10-26 14:30:03 +00:00
nisimura
9c0670836c add missing rxstore[] allocation. 2007-10-26 13:56:18 +00:00
pooka
cb50a739c3 mmap stacks, makes it possible to align them 2007-10-26 13:51:14 +00:00
nisimura
16ea8193e3 sprinkle copyright notice. 2007-10-26 13:32:57 +00:00
joerg
930e1f6e1d Match delay/DELAY on x86 with delay(9). It takes an unsigned int as
argument. Use this and replace the inline assembly (mul + div using the
64bit intermediate result) with normal 32bit multiplication and
division. The compiler can turn the division into a multiplication and
shift, making it even cheaper then the original assembly. For extreme
long delays, just use 64bit arithmetic.
2007-10-26 13:24:39 +00:00
he
c71c45f606 After the machine's bus.h #ifdef was updated, this one needs a tweak as well. 2007-10-26 11:07:32 +00:00
pooka
4f8627af5f define _RUMPKERNEL 2007-10-26 10:44:27 +00:00
peter
f27028f22e Call callout_init before callout_stop. 2007-10-26 10:39:40 +00:00
he
27b6c6515d Correct the symbol used for multiple include protection, we can't
use _SYS_BUS_H_ here and expect good results when <sys/bus.h> is
included.
2007-10-26 09:15:54 +00:00
garbled
670c8a4f93 Fix the ranges_bitmap function so it correctly finds the various ranges
on OFW, and passes them on to ofwoea_batmap correctly.  With this fix,
ofppc now properly initializes all of it's batmappings.

Kept the macppc specific override of the bitmap, but surrounded it with
an #ifdef macppc.  It would probably be worth testing macppc without this
ifdef to see if it works there as well.
2007-10-26 08:41:24 +00:00
nisimura
b9c06c9fc0 add one more 10/100 Ethernet PCI NIC and fix some others. Needs
innovation to handle multiple device configuration with match/attach/init
sequence like NB auto-configuration machine.
2007-10-26 01:16:27 +00:00
garbled
9e99088c7c Add code to properly detect the interrupt mapping on the PegasosII, and any
other OFW machine that fails our first two methods.
2007-10-26 00:34:53 +00:00
wiz
c06a095415 Various improvements: typo fixes, wording, formatting. 2007-10-25 23:14:41 +00:00
he
555e1d5a74 Remove a superfluous test, wcrtomb() cannot return (size_t)-2.
Pointed out by Aleksey Cheusov.
2007-10-25 22:22:41 +00:00
jdc
c4eef94666 Only resize curscr, __virtscr and stdscr when the screen is resized.
Note the behaviour of sub-windows when the parent window is resized.

Fixes PR pkg/37129.
2007-10-25 20:42:07 +00:00
jdc
542a57c041 Return "-1" for unknown keys and only return NULL for errors.
Make the key name string a static buffer.  The specification allows this,
so the previous behaviour would leak a small amount of memory, as the
application wouldn't free the returned string.

Fixes one part of PR pkg/37062.
2007-10-25 20:32:40 +00:00
plunky
ed67784932 remove #include <usbhid.h> as its not needed 2007-10-25 19:32:15 +00:00
christos
83bb8db055 Add seeprom. 2007-10-25 17:34:06 +00:00
garbled
3f9a46c5fb Add some basic options from i386 GENERIC. 2007-10-25 17:33:25 +00:00
christos
95a01f2aff PR/37210: Jonathan Kollasch: Add seeprom man page. 2007-10-25 17:32:23 +00:00
garbled
fb3ebfc3c0 Add a new convenience function, of_find_firstchild_byname(), and apply
some minor KNF to this ofw_subr.c.
2007-10-25 16:59:38 +00:00
pooka
f608ef6f7b Don't unmount file system when releasing ukfs - it's always already
unmounted at that point (or never was mounted in the first place).
2007-10-25 16:56:41 +00:00
garbled
5c24ff82a3 Add a bunch of fixes and minor rewrites to ofppc to bring it closer to
working properly.  This is still a work in progress, and all work so far
has been based on the PegasosII machne.

1) Rewrite how the ISA memory and IO space maps are found.  More work
will still need to be done in this area.
2) Add a new OFW method of pci configuration.  So far I can only get this
to work on the primary PCI bus on the Pegasos.  Unsure if this is a
pegasos bug or a code bug.
3) Add the rtas device to ofppc, and add an "rtas_reboot" function to
rtas to allow me to reboot the PegasosII.  The rtas driver works, and is
a great start but needs to be changed slightly to allow easier access to
the functions from outside the driver.
4) Fix a number of bugs that existed in the shared PCI code for ofw that
probably weren't tickled by macppc.

There is much much more left to do here, this is all still a work in
progress, but this commit will allow other people to play around with the
code if they want to.
2007-10-25 16:55:49 +00:00
jmmv
240f26990b Translate oldsendmail per Pavel's request. 2007-10-25 15:47:51 +00:00
pooka
69cae5d94a Reference mountpoint when fetching operations and release waiters
in unmount.
2007-10-25 15:22:25 +00:00
christos
ba0aca47b0 PR/37205: Aleksey Cheusov: nawk: a number of open files is limited to very
small constant. Make the array of files dynamically allocated.
2007-10-25 15:12:03 +00:00
he
a9f62d9e82 Add two very simple regression tests for the "toupper" and "tolower"
functions, doing some minimal checking that they now support multibyte
charsets after the fix from PR#36394 was applied.
2007-10-25 14:51:18 +00:00
he
945d30fed1 Result file from regression test should not have been checked in. 2007-10-25 14:48:49 +00:00
nisimura
fedf46d32a change MAKEDEVTARGETS= for floppy-less installation. 2007-10-25 14:48:00 +00:00
he
50d663aa6a Add support for multibyte charsets in the "tolower" and "toupper" awk
functions.  Code contributed by Aleksey Cheusov in PR#36394, and slightly
tweaked for closer-to-KNF conventions by me.  Also slightly improved checks
of error returns.
2007-10-25 14:44:49 +00:00
he
c6b19d4d1d Bring back the fix in revision 1.6, apparently accidentally lost
during last merge, to allow escape of a newline in string literals.
2007-10-25 14:40:33 +00:00