matt
7aa9230dd8
Add BAT_VA2IDX to abstract out the va to index calculation.
2008-02-23 19:48:43 +00:00
matt
21a07206db
Add clrr{ptr,long,reg}i, l{ptr,long,reg}arx, st{ptr,long,reg}cx macros
2008-02-23 19:38:47 +00:00
matt
c44a88fb5a
Detect HIGHBAT/XBSEN/HIGHSPRG to MPC74[45]x where x > 1
...
Enable above as appropriate.
2008-02-23 19:37:07 +00:00
matt
c6f7e7c68c
Add MTX_* and RW_* definitions
2008-02-23 19:34:53 +00:00
matt
2fb44af084
Add BAT_WIMG and some XBL aware BAT_BL_{512,1G,2G,4G} macros.
2008-02-23 19:28:29 +00:00
matt
e40b7cd828
Add a XBSEN flag for large BATs
2008-02-23 19:23:37 +00:00
dholland
8b5e597afa
Move ret_card() to cards.c, where it more rationally belongs. From OpenBSD.
2008-02-23 19:09:00 +00:00
oster
8b2eb1e024
Add the missing 'n' to 'correspoding'.
2008-02-23 18:35:04 +00:00
uwe
434cf91d86
Now that __EXCEPTION_BLOCK does the right thing, preserving SR for us,
...
we don't have to open-code it here.
2008-02-23 18:00:22 +00:00
sborrill
b701bbf89d
Fix tiny typo
2008-02-23 17:53:23 +00:00
uwe
6b59ecacca
Shave off a few instructions by using callee-save registers to cache
...
stuff. Profit from the fact that __EXCEPTION_BLOCK now preserves SR
and replace __EXCEPTION_UNBLOCK with just an "ldc" to restore SR.
2008-02-23 17:52:31 +00:00
sborrill
12958cf8a3
Add boot.cfg files to bootcd and bootcd-com iso images.
2008-02-23 17:52:14 +00:00
sborrill
2463fb7b22
Only attempt to output up to MAXBANNER banner lines
2008-02-23 17:49:29 +00:00
uwe
9b1adbdb11
Tweak __EXCEPTION_BLOCK so that original SR value is preserved in Rm.
...
We can then often use just "ldc Rm, sr" instead of matching
__EXCEPTION_UNBLOCK and thus shave off a few instructions.
2008-02-23 17:49:22 +00:00
matt
c9cd44128e
Add assym.d to DEPS so it gets properly cleaned.
2008-02-23 17:43:36 +00:00
chris
855792073c
Add some more missing pmap_update()s following pmap_kremove()s.
2008-02-23 17:27:58 +00:00
uwe
75c29600dd
Misc cosmetic changes to cpu_switchto: use asm comments to have a few
...
more chars before we wrap, replace remaining ,<TAB> with ,<SPACE> in
operands, clarify a few comments. Note new "bool returning" argument
(not used yet as it's always false unless we have fast soft
interrupts). Same object code generated.
2008-02-23 16:48:03 +00:00
mlelstv
69b2d26ed9
make this less verbose
2008-02-23 16:25:35 +00:00
chris
2ff98bbc26
Add missing pmap_update(pmap_kernel()); calls after pmap_kenter_pa and
...
pmap_remove.
2008-02-23 16:05:17 +00:00
christos
6711b9aec7
use the proper variable.
2008-02-23 15:53:22 +00:00
christos
8fbaff1005
fix lint issues.
2008-02-23 15:18:04 +00:00
ad
6869216239
Fix pthread_mutex_trylock() for recursive mutexes. PR lib/38087.
...
Based on a patch provided by rafal@.
2008-02-23 15:15:57 +00:00
mlelstv
6b959e1dfc
Always attach AHCI_SATA devices, even when not configured for AHCI mode.
...
Fixes PR kern/38081.
2008-02-23 14:53:31 +00:00
is
b9381f4be4
Fix comment. By Kris Katterjohn (from the tech-kern).
2008-02-23 09:37:54 +00:00
tsutsui
4ad6bc9eb7
- use bootprog_name[] generated by sys/conf/newvers_stand.sh
...
- constify, KNF
- fix bootloader names in comment
2008-02-23 06:51:28 +00:00
tsutsui
f4c4fc8b84
Bump version for working bootinfo support.
2008-02-23 06:46:56 +00:00
rafal
c1fc4aa545
Request DMA-coherent memory for the rx/tx descriptors. Makes this work on
...
sgimips (tested on my O2). Hint re: descriptor size << cacheline size from
Tsutsui-san; thanks!
2008-02-23 06:12:30 +00:00
matt
aa6e59f5dc
A number of performance changes:
...
Change internal register SSP to contain curlwp insread curcpu(). This
shrinks the GENERIC by 2KB.
Add rwlock stubs (rw_enter, rw_exit, rw_tryenter).
Simplify simple lock code for uniprocessors.
Do SPL raise/lower in cpu_handle_ipi instead of simple_locks.
2008-02-23 05:48:13 +00:00
tsutsui
d3005ea3b8
Use ${.TARGET}.
2008-02-23 05:43:27 +00:00
tsutsui
3f0427dce0
- preserver non-stripped boot binaries
...
- use ${.TARGET}
2008-02-23 05:42:51 +00:00
tsutsui
548d0c802d
Fix NULL pointer dereference on CD boot.
...
Reported by Martin Husemann on port-sgimips.
2008-02-23 05:35:20 +00:00
dyoung
29e838604a
Convert a complicated if/else if/else chain to a switch statement
...
that is a bit more readable.
ENODEV and ENOTTY are appropriate error codes for indicating
unsupported ioctls, but EINVAL is definitely not! If an operation
is not supported, return ENODEV instead of EINVAL.
2008-02-23 02:26:53 +00:00
dyoung
932264266e
Detach self and children. Make some functions static. Use device_t
...
and accessors. Use PMF_FN_*.
2008-02-23 02:17:16 +00:00
dyoung
d0f117b7d2
Detach self and children. Use device_t and accessors. Use PMF_FN_*.
2008-02-23 01:54:44 +00:00
lukem
8346a6360d
Use mkstemp() + fchmod() instead of mktemp(), since the latter
...
results in linker warnings.
2008-02-23 01:26:01 +00:00
dyoung
9aa9ebb999
Add a method to detach children. Use device_t and accessors. Use
...
PMF_FN_*.
2008-02-23 01:11:12 +00:00
dyoung
2511aa0b7f
Reduce diffs between cardbus_set_powerstate_int() and
...
pci_set_powerstate_int().
2008-02-23 00:30:56 +00:00
dyoung
86fcf72f67
Simplify the switch-statement in pci_set_powerstate_int(), and fix
...
a couple of typos so that it will work as I think that it was
intended to: delay for 10000us or 200us on transitions to/from D3
or D2 state, respectively. Discussed this with jmcneill@.
2008-02-23 00:27:53 +00:00
dyoung
212fa79969
Suspend, resume, detach.
...
Use mutex(9) and condvar(9) instead of splbio(9)/splx(9) and
tsleep(9)/wakeup(9).
Use device_t and accessors. Use aprint_*_dev().
2008-02-22 23:40:49 +00:00
dyoung
d2cef052fc
Add methods to detach self and children.
...
Use device_t and accessors. Use aprint_*_dev().
2008-02-22 23:32:24 +00:00
dyoung
520b45a1f0
Make the CardBus D2/D3 power-handling more alike to PCI's, but
...
without the typos. :-)
Use device_t and accessors. Use aprint_*_dev(). Use PMF_FN_*.
2008-02-22 23:30:42 +00:00
dyoung
288f7bb3b8
Use device_t and accessors. Use aprint_*_dev().
...
Add method to detach child.
2008-02-22 23:26:11 +00:00
dyoung
b982c25441
Use device_t and accessors. Use aprint_*_dev(). Use PMF_FN_*.
2008-02-22 23:24:07 +00:00
dyoung
aea7bb1ab3
use device_t and accessors. Use aprint_*_dev(). Do not cast the
...
softc to 'struct device *', but use &sc->bce_dev instead. Use
PMF_FN_*.
2008-02-22 23:21:01 +00:00
dyoung
0ba85a6f89
Use device_t and accessors. Use &sc->sc_dev instead of cast to
...
device_t. Remove superfluous detach warning.
2008-02-22 23:11:35 +00:00
ad
9a0b455f25
- Add a one line comment indicating what this file does.
...
- Move the check for PK_SYSTEM to a more sane place.
2008-02-22 23:10:12 +00:00
dyoung
cd44c43b28
Add a method to detach child.
...
Cosmetic: use device_t and accessors. Use aprint_*_dev(). Use
PMF_FN_{ARGS,CALL,PROTO}.
2008-02-22 23:04:52 +00:00
dyoung
c0dffd675b
Add another #definition, PMF_FN_CALL, for passing our suspend/resume
...
arguments to another function.
2008-02-22 22:33:21 +00:00
rmind
9850c0557d
sys__sched_getparam and sys__sched_getaffinity: Do not assume that LWP
...
with LID=1 exists, use LIST_FIRST(&p->p_lwps) instead.
Fixes PR/37987 by <yamt>.
While here, adjust license.
2008-02-22 22:32:49 +00:00
dyoung
c7d0c816a2
Return EBUSY and do not detach if we are the console.
...
Cosmetic: use device_t and accessors. Temporarily use PMF_FN_PROTO,
PMF_FN_ARGS.
2008-02-22 22:29:16 +00:00