Commit Graph

119614 Commits

Author SHA1 Message Date
scw
52c15bbd20 Don't drop to spl0 in cpu_switch/cpu_switchto. Do it in the idle loop
instead.

With this change, we no longer need to save the current interrupt level
in the switchframe. This is no great loss since both cpu_switch and
cpu_switchto are always called at splsched, so the process' spl is
effectively saved somewhere in the callstack.

This fixes an evbarm problem reported by Allen Briggs:

        lwp gets into sa_switch -> mi_switch with newl != NULL
            when it's the last element on the runqueue, so it
            hits the second bit of:
                if (newl == NULL) {
                        retval = cpu_switch(l, NULL);
                } else {
                        remrunqueue(newl);
                        cpu_switchto(l, newl);
                        retval = 0;
                }

        mi_switch calls remrunqueue() and cpu_switchto()

        cpu_switchto unlocks the sched lock
        cpu_switchto drops CPU priority
        softclock is received
        schedcpu is called from softclock
        schedcpu hits the first if () {} block here:
                if (l->l_priority >= PUSER) {
                        if (l->l_stat == LSRUN &&
                            (l->l_flag & L_INMEM) &&
                            (l->l_priority / PPQ) != (l->l_usrpri / PPQ)) {
                                remrunqueue(l);
                                l->l_priority = l->l_usrpri;
                                setrunqueue(l);
                        } else
                                l->l_priority = l->l_usrpri;
                }

        Since mi_switch has already run remrunqueue, the LWP has been
            removed, but it's not been put back on any queue, so the
            remrunqueue panics.
2003-10-23 08:59:10 +00:00
chs
65d5587ddd rename pv_next to pv_node. use SPLAY_RIGHT() instead of expanding it inline. 2003-10-23 08:30:21 +00:00
tron
1cbe1ba80d Backout last change which is incorrect for XFree86 3.3.6 and our current
configuration of XFree86 4.3.0. This fixes a part of PR xsrc/23233.
2003-10-23 07:49:35 +00:00
itojun
f90a2e28b1 do not build "null ESP and no AUTH" proposal. (racoon 174) by Tom Lendacky 2003-10-23 07:23:50 +00:00
dyoung
38a484b2d0 In the input path, do not discard management frames belonging to
a different BSS, because that keeps drivers like atw from detecting
ad hoc beacons with the same SSID but different BSSID for the
purpose of IBSS merges.

This should be revisited: maybe drivers should check for beacons
before handing packets up with ieee80211_input(). However, this
restores the atw(4) to working like it did with the old 802.11
layer, and it *is* nice to re-use the 802.11 layer's packet-decode
& -dispatch code (i.e., the ic_recv_mgmt callback).
2003-10-23 06:30:32 +00:00
kent
27d4af4355 No need to check the codec ready flag in read_codec() and write_codec().
According to the ICH datasheets, the flag is unchanged unless resetting
the codec.

The flag is useless after enabling bus mastering.  This behavior is common
to all ICH chips.  The quirk handling code is removed.
2003-10-23 05:25:29 +00:00
simonb
e93422fa5f Remove "struct aubus_ohci_softc". As well as ohci_softc_t, it only had
a copy of the interrupt cookie which isn't used outside the attach.  We
has also bogusly only told the autoconfiguration machinery that our softc
was as big as a ohci_softc_t, not a struct aubus_ohci_softc.
Also, disestablish the interrupt if OHCI initialisation fails.
2003-10-23 04:58:32 +00:00
briggs
8cfe8cd526 After discussion between mycroft and enami, restore the WDC_PCMCIA_ATTACH
flag and use it to avoid an extra power cycle during the probe process.
2003-10-23 03:56:36 +00:00
provos
d9e66c4556 document splay changes 2003-10-23 03:16:06 +00:00
provos
6a583bc5cb changed linked list in pmap_remove_pv to a splay tree; approved: fvdl@ 2003-10-23 03:03:20 +00:00
matt
b8b1ccbdfd If host is x86-*-netbsd*, don't descend into gcc, gdb, and rcs 2003-10-23 02:58:49 +00:00
uwe
94a688bcbc In hd64461pcmcia_chip_io_map set *windowp to 0.
This driver ignores i/o window handle, but most 'at pcmcia'
attachments init their sc_io_window to -1 and then check at detach
time if it was changed from the "bad" value.  Keep them happy, so that
they can correctly clean up when card is detached.
2003-10-23 02:34:07 +00:00
simonb
dab526c8ce Remove OpenBSD and old NetBSD cvs id's; this file now looks nothing like
the original version.
2003-10-23 02:32:18 +00:00
simonb
94eda46437 De-__P(), remove double RCS/CVS id. 2003-10-23 02:31:03 +00:00
simonb
61cddc3b80 Add "com* at opb?" for IBM PowerPC 4xx CPUs. 2003-10-23 02:25:36 +00:00
simonb
a1f8e60591 Update for CVS repo basesrc/src change (many moons ago). 2003-10-23 02:23:26 +00:00
fvdl
118d6961e7 Add auvia. 2003-10-23 01:14:43 +00:00
briggs
193b74f006 Regenerate for ENE Cardbus product IDs. 2003-10-23 00:47:45 +00:00
briggs
cdb1c2e5bf Add some ENE Cardbus bridges from FreeBSD. 2003-10-23 00:46:56 +00:00
uwe
6a7a7e91e7 Add missing newline at the end of an error message. 2003-10-23 00:22:55 +00:00
kleink
6cded84c4b Fix an RCS Id botch that occured when renaming. 2003-10-23 00:04:57 +00:00
briggs
3448998b43 Try to deal better with card removal during the card enabling process. 2003-10-23 00:04:03 +00:00
briggs
7dc8540d52 Avoid a race condition that could allow a removable controller (such as
a compact flash card) to lock the atabus thread if it gets detached during
the probe process.
2003-10-22 23:59:00 +00:00
kleink
aa20eb60ec Fix a comment. 2003-10-22 23:57:04 +00:00
uwe
49fd54d39a Use adcvar.h. 2003-10-22 23:52:46 +00:00
kleink
22396ac6f7 G/c __nanf2, which is neither being used nor the representation of a NaN. 2003-10-22 23:50:47 +00:00
fvdl
878ae8047e Remove use of NULL as an integer value. 2003-10-22 22:51:36 +00:00
kleink
77e57be326 For a double-extended NaN, the exponent must be EXT_EXP_INFNAN, not
DBL_EXP_INFNAN.
2003-10-22 21:37:34 +00:00
kleink
c9432c8396 C99: provide DECIMAL_DIGIT. 2003-10-22 21:28:08 +00:00
uwe
5846d07065 Don't compare a char to NULL. 2003-10-22 21:13:44 +00:00
uwe
ae7219a39a Don't compare an integer to NULL. 2003-10-22 21:10:15 +00:00
uwe
49bb9c9d40 Don't compare an integer variable to NULL. 2003-10-22 21:09:09 +00:00
kleink
eef6265460 G/c the local declaration of __nanf; handling of this (conditional on
__HAVE_NANF) was moved to <math.h> some time ago.
2003-10-22 21:04:40 +00:00
skrll
899032e619 Consistent naming. 2003-10-22 20:43:12 +00:00
jdolecek
7234f6fb3c don't put GENERIC into BUILD_KERNELS 2003-10-22 20:40:42 +00:00
kleink
b3bc4360e2 C99: provide DECIMAL_DIG. 2003-10-22 20:31:05 +00:00
he
f99f18a0af Fix two more instances of paddr_t vs. NULL (use 0 instead). 2003-10-22 20:26:32 +00:00
jdolecek
a9b5015c6d fix bug in pty target (pasto from some other port) 2003-10-22 20:22:26 +00:00
he
20af44689e Bring this back to a compileable state; fallout from NULL type change,
so just use 0 before casting to paddr_t.
2003-10-22 20:15:20 +00:00
uwe
129cf6259c Catch up with GENERIC (1.148). 2003-10-22 18:24:53 +00:00
matt
7e1d1cca33 s/SSR/SRR 2003-10-22 17:29:18 +00:00
matt
3f37cf2db7 Rework ddblow so that if PSL_PR == 1, it dispatches directly to the
trap handler and bypasses the ddbtrap code.
2003-10-22 17:27:58 +00:00
augustss
f42962a2c2 Add Dvorak keyboard map. From PR kern/23230, jacereda@tractor.act.uji.es. 2003-10-22 17:24:43 +00:00
jdolecek
c5808c177b no dmoverio either 2003-10-22 17:13:50 +00:00
jdolecek
958d4a6d68 add kttcp major 2003-10-22 17:12:54 +00:00
jdolecek
bc7edb6f2d add stic0 to 'all' (used to be created in alpha 'wscons' target) 2003-10-22 17:09:50 +00:00
jdolecek
0f5caa8622 no apm 2003-10-22 17:08:50 +00:00
jdolecek
51c4eb4597 add majors for mly, dpti, dpt, twe, joy, radio, cir 2003-10-22 17:08:13 +00:00
jdolecek
ee510816af add wsfont major to archs which have the other wscons devices 2003-10-22 16:53:22 +00:00
kleink
5a44ed37d3 C99: provide FLT_EVAL_METHOD. 2003-10-22 16:18:48 +00:00