Commit Graph

144215 Commits

Author SHA1 Message Date
dsl
5e60bf00ce Avoid calling JobRestartJobs() from the SIGCONT signal handler, instead
push a byte through the (now badly named) exit_pipe and call JobRestartJobs()
from the main code path when poll() wakes up.
Part of a plan to remove JobSigLock() and the zillions of system calls
it does.
2006-03-08 22:11:48 +00:00
macallan
a12ced4fd9 sprinkle #if NWSDISPLAY > 0 to make this compile cleanly without wscons again 2006-03-08 20:09:01 +00:00
hubertf
05524656d1 in src.tgz, set build.sh permissions +x 2006-03-08 19:18:04 +00:00
dyoung
fe756b012b config(8) creates opt_ah.h, no need to do so here. 2006-03-08 17:06:07 +00:00
dyoung
f2746f1ea3 No need to create opt_ah.h here, config(8) takes care of it. 2006-03-08 17:03:13 +00:00
nathanw
422fd73258 This copy of bus_dma.c is unused; evbppc ports have referenced
powerpc/powerpc/bus_dma.c for over two years.
2006-03-08 15:18:39 +00:00
he
927b30ab63 Remove yet another instance of the macro triplet SET/CLR/ISSET, now
found in <sys/types.h>.
2006-03-08 12:10:58 +00:00
he
5bc221cbe3 Remove yet another instance of the macro triplet SET/CLR/ISSET, now
found in <sys/types.h>.
2006-03-08 10:48:40 +00:00
sekiya
11927f82ba The network bootloader entry point should be nisse(), not start(). Fixes a
very long-standing netboot issue.

Patch contributed by Hans Rosenfeld.
2006-03-08 09:32:22 +00:00
dyoung
cafe884d2c Change macro names to avoid collisions:
BIT -> __BIT
BITS -> __BITS
2006-03-08 08:26:50 +00:00
thorpej
b0275539fe Make extent_alloc_subregion(), extent_alloc(), and extent_alloc1() real
functions, not CPP macros.
2006-03-08 04:43:00 +00:00
jonathan
b9c6a2634b Rework Linux sysctl()-emulation, so that on amd64, we return the same
Linux kernel-version as on i386 and ppc (currently 2.4.18), and a date
in Feb 2002.

On all other NetBSD platforms we return a Linux-kernel version of
2.0.38 and a date sometime in 2000, which (AFAIK) predates the
existence of amd64, and therefore predates Linux support for amd64.

To me, it makes much more sense to return the same Linux-kernel-version
and date for both 32-bit x86 and 64-bit x86.

Empirically (and not least), this change also allows SuSE 10 amd64
binaries to run under our Linux amd64 binary emulation (both static
and dynamic-linked, given suitable setup) , which they didn't when we
reported a Linux/x86_64 kernel version of 2.0.38.
2006-03-08 03:55:31 +00:00
christos
93edf29420 Fix clock reading problem on turbo nexts and color slabs. First
reported by: Timm Wetzel twetzel at gwdg.de on 2001-06-22, and now
again by: Cory Bajus cbajus at mts.net
2006-03-08 03:29:49 +00:00
msaitoh
1e5874b3c2 fix memory leak when resetting the source address and destination address. 2006-03-08 03:09:33 +00:00
jnemeth
1a6a87b59b PR/23616: Christian Biere: login might not back-off as expected 2006-03-08 03:09:04 +00:00
jnemeth
2e3c4f59d7 PR/23616: Christian Biere: login might not back-off as expected 2006-03-08 02:49:18 +00:00
christos
f02eb7273c rename ISSET to ISBITSET. 2006-03-08 02:10:04 +00:00
macallan
d443f196f2 report lid and AC power state to sysmon 2006-03-08 01:17:49 +00:00
dyoung
ce412dc403 Straggler from previous commit: rename macro LSHIFT->SHIFTIN. 2006-03-08 00:26:43 +00:00
dyoung
f66403a698 Move my bit-twiddling macros to libkern.h from my drivers, where
I had duplicated them.  Improve the macros' names.  Simplify their
implementation.

A brief description of each macro is below.

        BIT(n): Return a bitmask with bit m set, where the least
                significant bit is bit 0.

        BITS(m, n): Return a bitmask with bits m through n, inclusive,
                    set.  It does not matter whether m>n or m<=n.
                    The least significant bit is bit 0.

        A "bitfield" is a span of consecutive bits defined by a
        bitmask, where 1s select the bits in the bitfield.  SHIFTIN,
        SHIFTOUT, and SHIFTOUT_MASK help read and write bitfields
        from device registers.

        SHIFTIN(v, mask): Left-shift bits `v' into the bitfield
                          defined by `mask', and return them.  No
                          side-effects.

        SHIFTOUT(v, mask): Extract and return the bitfield selected
                           by `mask' from `v', right-shifting the
                           bits so that the rightmost selected bit
                           is at bit 0.  No side-effects.

        SHIFTOUT_MASK(mask): Right-shift the bits in `mask' so that
                             the rightmost non-zero bit is at bit
                             0.  This is useful for finding the
                             greatest unsigned value that a bitfield
                             can hold.  No side-effects.  Note that
                             SHIFTOUT_MASK(m) = SHIFTOUT(m, m).

Examples:

/*
 * Register definitions taken from the RFMD RF3000 manual.
 */
#define RF3000_GAINCTL          0x11            /* TX variable gain control */
#define         RF3000_GAINCTL_TXVGC_MASK       BITS(7, 2)
#define         RF3000_GAINCTL_SCRAMBLER        BIT(1)

/*
 * Shift the transmit power into the transmit-power field of the
 * gain-control register and write it to the baseband processor.
 */
atw_rf3000_write(sc, RF3000_GAINCTL,
    SHIFTIN(txpower, RF3000_GAINCTL_TXVGC_MASK));


/*
 * Register definitions taken from the ADMtek ADM8211 manual.
 *
 */
#define ATW_RXSTAT_OWN          BIT(31)         /* 1: NIC may fill descriptor */
/* ... */
#define ATW_RXSTAT_DA1          BIT(17)         /* DA bit 1, admin'd address */
#define ATW_RXSTAT_DA0          BIT(16)         /* DA bit 0, group address */
#define ATW_RXSTAT_RXDR_MASK    BITS(15,12)     /* RX data rate */
#define ATW_RXSTAT_FL_MASK      BITS(11,0)      /* RX frame length, last
                                                 * descriptor only
                                                 */

/* Extract the frame length from the Rx descriptor's
 * status field.
 */
len = SHIFTOUT(rxstat, ATW_RXSTAT_FL_MASK);
2006-03-08 00:24:06 +00:00
dyoung
e9dba3e91c Rename BIT(n) macro to _BIT(n) to avoid a conflict with forthcoming
bit-twiddling macros.
2006-03-08 00:14:20 +00:00
peter
4cab041d0b Jornada 720 US/UK: map the win and fn buttons correctly.
Problem reported and patch tested by Alex Poylisher.
2006-03-07 23:39:39 +00:00
he
8aa8bfed52 Remove another instance of the macro triplet SET/CLR/ISSET, now
found in <sys/types.h>.
2006-03-07 23:32:53 +00:00
he
ed846418fd Remove unused ISSET macro. 2006-03-07 23:30:19 +00:00
he
488517487a Conditionally undefine ISSET before defining it locally with
different expansion (tests a given bit number).
2006-03-07 23:26:24 +00:00
he
81afc84174 Remove another instance of the macro triplet SET/CLR/ISSET, now
found in <sys/types.h>.
2006-03-07 23:19:05 +00:00
he
fa612b7436 Remove local ISSET macro definition. 2006-03-07 23:18:31 +00:00
jmcneill
e20bf2a14d Don't try to suspend while already suspended. 2006-03-07 23:16:20 +00:00
jld
25ab6c9464 Improve timekeeping under Xen. Specifically, replace use of
cc_microtime with a MD function that isn't affected by erratic "clock
interrupts" and instead takes more advantage of time information
provided by the hypervisor.  Fixes, most importantly, a case where the
clock as seen by userland would sometimes bounce back and forth by up to
1<<31 us (~35 min).

Approved by bouyer@; explained in more detail in
http://mail-index.netbsd.org/port-xen/2006/02/28/0002.html
2006-03-07 23:08:14 +00:00
jnemeth
61f477b7e3 PR/31531: Takahiro Kambe: shutdown(8) quietly exit if execed from login shell 2006-03-07 22:19:55 +00:00
bouyer
c743cbc911 Regen: added more serverwork SATA controllers. 2006-03-07 22:12:14 +00:00
he
097212d1dd Remove another instance of the macro triplet SET/CLR/ISSET, now
found in <sys/types.h>.  Also removed ISCLR, and transformed the
single use to !ISSET.
2006-03-07 22:12:05 +00:00
bouyer
d43ac7ad9d Also support Serverwork Frodo4, Frodo8 and HT-1000 in svwsata.
From OpenBSD.
2006-03-07 22:11:25 +00:00
elad
33e5cb5406 Add entry for elad-kernelauth. 2006-03-07 19:55:07 +00:00
christos
b2927ed049 remove unused ISCLR macro. 2006-03-07 19:15:50 +00:00
macallan
c415b408ad switch to wscons 2006-03-07 18:57:40 +00:00
he
f1cd142fed Document the hack to make ipsend and iptest build for NetBSD/vax,
with a pointer to PR#32907 for further details.
2006-03-07 18:24:13 +00:00
rpaulo
1d38428ed2 Add Pentium M 730 1.6Ghz. 2006-03-07 18:20:54 +00:00
he
56dbe819ca If compiling for NetBSD/vax, define boolean_t here before including
<sys/file.h> with _KERNEL defined.  Also add a 3-line XXX comment
explaining some of why this is done.
Should fix the build problem documented in PR#32907.
Will be documented in doc/HACKS shortly.
Fix discussed with thorpej.
2006-03-07 18:18:06 +00:00
pooka
4e6df87951 add CIRCLEQ_LOOP_{NEXT,PREV}.{0,3} 2006-03-07 18:16:46 +00:00
wiz
e2a71c2aab 'advertisment' -> 'advertisement', from leonardo chiquitto filho
via jmc@openbsd.
2006-03-07 18:15:28 +00:00
pooka
cbb99f35f7 document CIRCLEQ_LOOP 2006-03-07 18:13:43 +00:00
pooka
b28fd3a188 add CIRCLEQ_LOOP_{NEXT,PREV}(), as discussed (briefly) a while ago
on tech-userlevel
2006-03-07 17:56:00 +00:00
pooka
5f64ff8fb1 add fdclone to NAME also 2006-03-07 17:24:35 +00:00
pooka
25833a1352 fdavail is a goner 2006-03-07 17:22:10 +00:00
pooka
1279f1b037 remove the no longer useful fdavail(), as proposed and (thankfully) not
discussed on tech-kern
2006-03-07 17:13:53 +00:00
he
3081ceee1a Remove another instance of the macro triplet SET/CLR/ISSET, now
found in <sys/types.h>.
2006-03-07 16:36:41 +00:00
shige
675a401abf Change name of SMBus include: smbusreg.h => ausmbus_pscreg.h. 2006-03-07 16:34:16 +00:00
he
93e5acd417 Removed another instance of the macro triplet SET/CLR/ISSET, now found
in <sys/types.h>.  An ISCLR macro remains here for now.
2006-03-07 16:33:39 +00:00
jmcneill
d5491c459e Put the device in D3 state when it's not in use to save power. 2006-03-07 15:18:59 +00:00