thorpej
9cc29ba9a4
Oops, RCS ID.
2001-09-28 01:24:44 +00:00
thorpej
b6279c024f
File describing the ACPICA and how we glue it to NetBSD.
2001-09-28 01:24:21 +00:00
thorpej
5f7bd77097
OS Services Layer to glue the Intel ACPICA to NetBSD.
2001-09-28 01:06:58 +00:00
thorpej
6a930624d7
Let <machine/cpufunc.h> provide wbinvd() on NetBSD.
2001-09-28 00:46:50 +00:00
thorpej
c3e86966fb
We've flattened out the directory heirarchy -- acenv.h is not found
...
in platform/ in our tree.
2001-09-28 00:43:40 +00:00
thorpej
415b593488
NetBSD "environment" header for ACPICA.
2001-09-28 00:40:54 +00:00
thorpej
3926b0395b
Import the 20010831 snapshot of the Intel ACPI Component Architecture
...
ACPI reference implementation.
2001-09-27 23:11:59 +00:00
fvdl
df8490a27a
Always initialize ni_rootdir in nfs_namei. From Andrei Petrov.
2001-09-27 21:44:56 +00:00
ad
404706846e
Make firmware updates work with dpti.
2001-09-27 18:43:37 +00:00
mjacob
87a8b82ae9
Restore previous functionality- in scsipi_periph_timed_thaw check to
...
make sure the completion thread is running before you try to schedule
it.
Fixes port-i386/14013
2001-09-27 18:11:06 +00:00
mjacob
79d74959da
Restore previous definitions.
2001-09-27 18:07:51 +00:00
thorpej
21056065db
Move the code that enumerates the pnpbios device nodes into a
...
separate function.
2001-09-27 17:13:39 +00:00
uch
69ed217599
ANSIfy, KNF.
2001-09-27 16:31:23 +00:00
tsutsui
3339a3e525
Remove iha_minphys() and use minphys() instead.
2001-09-27 15:26:57 +00:00
tsutsui
19e9d87b56
Include uvm/uvm_extern.h for PAGE_SIZE.
2001-09-27 15:12:30 +00:00
tsutsui
883a221861
Adjust IHA_MAX_SG_ENTRIES since fragments of DMA buffer are not
...
more than (MAXPHYS / PAGE_SIZE + 1).
2001-09-27 15:11:34 +00:00
leo
984d919c49
Add ELF stuff to loader. This is a combined effort from Thomas Gerner and
...
myself.
2001-09-27 14:29:22 +00:00
minoura
7d1fc276fa
Make these compile with the old (a.out) toolchain.
2001-09-27 14:08:27 +00:00
sato
9a679b0eb1
- add VR4181 ICU register map.
...
- add VR4181 intr levels.
- add VR4131 ICU register map.
- add VR4131 intr levels.
XXX: not yet tested these platform.
2001-09-27 13:59:37 +00:00
minoura
f5f7a94fa6
Add some missing definitions.
2001-09-27 13:27:54 +00:00
minoura
99247aadcc
Initial commit of the new bootloader to support ELF kernel.
...
It consists of two programs named boot_ufs and boot; the former reads
the latter (an OMAGIC a.out).
Boot now utilizes the libsa library to read the actual kernel.
- LFS code exists, but probobly does not work.
- Currently the ELF toolchain is required.
- Many features are missing.
2001-09-27 10:14:49 +00:00
minoura
7e950cc6e8
libsa for the new bootloader of x68k port.
2001-09-27 10:03:26 +00:00
minoura
8d3d810cc4
Embed the version number of the interface between the bootloader and
...
kernel. See amiga.
2001-09-27 09:55:10 +00:00
itojun
646869b6cd
regen
2001-09-27 07:10:37 +00:00
itojun
2a47bfbf34
add 4DWAVE and SiS sound devices.
2001-09-27 07:09:27 +00:00
mrg
a68e13f815
implement generic soft interrupts as described in softintr(9). convert
...
the network, clock & serial softint's to use them.
2001-09-27 02:05:42 +00:00
shin
541214b72d
clock_machdep.h was removed.
2001-09-27 01:08:22 +00:00
thorpej
a7eb08e847
"cms" is not needs-flag
2001-09-26 21:49:09 +00:00
thorpej
55d06660bb
"aria" does not needs-flag
2001-09-26 21:40:07 +00:00
eeh
98ecb5b215
getprop* -> PROM_getprop*
2001-09-26 20:53:05 +00:00
matthias
da7395fac9
wskbd_rawinput: check sc->sc_displaydv before calling wsdisplay_kbdinput.
2001-09-26 15:13:23 +00:00
eeh
64d9292e8c
*NEVER* cast a reference parameter to a different type.
2001-09-26 15:05:49 +00:00
fvdl
0596817942
Apparently the old gas doesn't like *(%reg), so revert this one for now,
...
until everyone's switched to the new toolchain.
2001-09-26 14:07:51 +00:00
fvdl
7b78937c2b
More '*' usage in indirect calls/jumps.
2001-09-26 09:58:39 +00:00
chris
b08ac48955
Move the call to the xi_pcmcia_identify to before the first use of sc->sc_flags.
...
Doesn't fix my problem with auto negotiate, but it might help others.
2001-09-26 09:01:30 +00:00
itojun
6374da40e1
don't softintr_disestablish twice.
...
previous code panic'ed with the following command sequence:
# ifconfig gif0 create tunnel A B
# ifconfig gif0 deletetunnel
# ifconfig gif0 destroy
2001-09-26 07:54:19 +00:00
chs
365f4c4313
change the names of the arguments to uvn_put() to match their usage.
2001-09-26 07:23:51 +00:00
chs
a76b67cf09
jump through hoops to avoid calling uvm_km_free_poolpage() while holding
...
spinlocks, since that function can sleep. (note that there's still one
instance remaining to be fixed.) use TAILQ_FOREACH where appropriate.
2001-09-26 07:14:56 +00:00
chs
e37c6bf037
move call to pool_drain() outside the pageq lock.
2001-09-26 07:08:41 +00:00
chs
d288111138
undo the part of the previous revision about skipping
...
the put if there are no pages, that seems to cause some problem.
fix another problem with missing an splx(), spotted by enami.
2001-09-26 06:20:50 +00:00
chs
e8be8c6351
be sure to call the pager put with page-aligned offsets.
...
spotted by Nathan Williams.
while I'm here, move an splbio() so that we don't return without
splx()ing it if there's an error, and don't bother calling the
pager put if the vnode has no pages.
2001-09-26 05:25:03 +00:00
oster
d7a81df519
RF_DEV2RAIDID isn't used anywhere anymore. Bye bye.
2001-09-26 03:01:19 +00:00
oster
de43684ab7
- rf_types.h doesn't really need to pull in rf_archs.h
...
- for *.c, don't rely on rf_types.h to pull in rf_archs.h
2001-09-26 02:52:57 +00:00
thorpej
1eb0dacf81
IRQUNK -> ISACF_IRQ_DEFAULT
2001-09-26 01:30:58 +00:00
thorpej
0cf4cbfa39
Use ISACF_*_DEFAULT rather than *UNK.
2001-09-26 01:17:16 +00:00
enami
b0df86c9e6
In the function getnewvnode:
...
- Mark file system busy again on retry.
- Don't use the variable `listhd' uninitialized.
2001-09-26 00:59:57 +00:00
jdolecek
de311f11c3
Match the Diamon Rio800. Reported working by Chris Lloyd in kern/14064.
2001-09-25 21:08:44 +00:00
is
9a02c51726
Security check - don't paste new command line into bootblock that
...
don't look like the new style bootblock (with enough space in it).
2001-09-25 19:07:00 +00:00
jdolecek
25bef3c837
Take care to transfer whole buffer passed via write(2); write(2) should
...
not do short writes unless when using non-blocking I/O.
This fixes kern/13744 by Geoff C. Wing.
Note this partially undoes rev. 1.5 change. Upon closer examination,
it's been apparent that hbench-OS expectations were not actually justified.
2001-09-25 19:01:21 +00:00
is
e9023155ad
Replace skript by a C program, that knows how to manipulate the default
...
command line in the bootblock and to recompute the bootblock checksum.
2001-09-25 18:47:55 +00:00
chs
039c1fd312
print a stack trace in more LOCKDEBUG cases.
...
add a blank line between complaints.
use TAILQ_FOREACH where appropriate.
2001-09-25 06:13:29 +00:00
oster
e475673b85
Nuke an unused typedef.
2001-09-25 02:56:13 +00:00
chs
e7d9abce3e
in ltsleep(), assert that the interlock is held (if one is given).
2001-09-25 01:38:38 +00:00
onoe
b7c46d6199
use ALIGNED_POINTER() instead of ALIGN().
...
The type of ALIGN() is vary on architecture and casting pointer to u_int
is incorrect for MI code.
Since the code is to make sure aligned access to IP header and requires
bcopy if the test fails. So the performance implication is not necessary
and we can use ALIGNED_POINTER() here.
pointed out by nathanw.
2001-09-25 01:07:53 +00:00
eeh
e3f674b10c
Change a printf to DEBUG only.
2001-09-25 00:06:55 +00:00
eeh
766a9b8c9c
Change bus_space_mmap() signature to the official one.
2001-09-24 23:49:31 +00:00
reinoud
78b6ed208e
Change the caddr_t to uintptr_t and remove the cast ... it gave problems
...
compiling on an LP64 ... discussed with Gimpy, atatat and bleeh
2001-09-24 21:47:57 +00:00
is
36fb85f059
Put default command line into a fixed location with a known size.
...
This is intended to allow patching of the command line without a
compiler.
2001-09-24 20:27:08 +00:00
bouyer
92aaf348cf
Ali M5229 IDE controllers: tweak the rigth 0x79 register (the one from the
...
pci/isa bridge, not the one from the IDE controller).
2001-09-24 20:03:47 +00:00
rearnsha
a5480e24b4
Hmm, on a.out platforms we have
...
size_t == unsigned int
on elf platforms we have
size_t == unsigned long int
So use %ld when printing and cast md->md_size to long.
2001-09-24 17:00:52 +00:00
takemura
ca59965026
Renamed platid_search() to platid_search_data() and added new platid_search().
...
Platid_name() was re-implemented using platid_search().
2001-09-24 14:29:30 +00:00
itohy
0f210a885d
Add simple boundary check on CIS parsing.
...
I have a weird PC-card-style appliance (I'm not sure I may call it a PC card)
whose ``CIS'' reads zeros forever, which caused kernel panic.
For your interest, it is a cooling fan to be inserted to a PC card slot.
2001-09-24 14:19:10 +00:00
wiz
4c99916337
va_{start,end} audit:
...
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).
Improved by comments from enami and christos -- thanks!
Heimdal/krb4/KAME changes already fed back, rest to follow.
Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
jdc
b6426dff1e
Fix typo in !COMPAT_13 case.
2001-09-24 13:19:54 +00:00
takemura
ce2f39b63a
Hacking code piece, dumping PCI configration register.
2001-09-24 10:42:02 +00:00
leo
1c35b74032
Enable ELF symbols in ddb.
2001-09-24 09:21:24 +00:00
leo
c0233c6e50
Add missing argument to pmap_update().
2001-09-24 09:17:19 +00:00
chs
7bb91a0959
resize the namecache hash table also when desiredvnodes changes.
2001-09-24 06:01:13 +00:00
chs
7173d0a3e8
use pmap_kenter_pa() instead of pmap_enter() in a few places.
2001-09-24 05:37:50 +00:00
eeh
1e7d8c3a11
Print out device details.
2001-09-24 04:39:40 +00:00
mhitch
a52fa14deb
Run vfs_shutdown() if NOSYNC is *not* set, rather than set.
2001-09-24 03:56:03 +00:00
chs
3628675acf
implement pmap_wired_count().
2001-09-24 01:48:15 +00:00
chs
fd3414abea
fix typo in previous.
2001-09-24 01:29:06 +00:00
sommerfeld
98b0d5654c
replace %ecx with %cl to silence new assembler warnings.
2001-09-24 01:09:33 +00:00
sommerfeld
b27c418d40
Deal with invokers who pass us environment variable settings as part
...
of the command they want us to run.
Fixes part 3A of PR#14046
2001-09-24 00:20:11 +00:00
tls
9b9300274d
GCC 2.95 generates significantly larger code with -O2 than our old compiler did; this can cause the second-stage bootblock to exceed the number of blocks that fit in the list in the first-stage bootblock. I thought we used to explicitly set -Os in here; anyway, with this change, we do now!
2001-09-23 23:43:29 +00:00
jdolecek
f5599abc0a
fix typo
2001-09-23 19:59:19 +00:00
manu
2d16421460
Moved COMPAT_LINUX config stuff from arch/sgimips to arch/mips, so that it's
...
available on all Mips ports.
2001-09-23 19:45:41 +00:00
jdolecek
d08f6c6e2e
pull <sys/exec.h> to get setregs prototype.
...
problem noted by Chuck Silvers
2001-09-23 19:32:10 +00:00
eeh
c9a848a23c
32-bit kernels have 32-bit pointers.
2001-09-23 17:31:17 +00:00
fredb
43ff3eb524
Nit -- this kernel is called "INSTALLSBC", not "INSTALL".
2001-09-23 17:30:52 +00:00
fredb
780a06ff07
Sync with "GENERIC".
2001-09-23 17:18:00 +00:00
uch
6c1c0aff9c
improve interrupt response.
2001-09-23 14:32:52 +00:00
chs
59c12af6f5
implement pmap_wired_count().
2001-09-23 09:01:13 +00:00
chs
62b6d75cc8
implement pmap_wired_count().
2001-09-23 08:12:59 +00:00
chs
a467bddfdc
bump the rusage counter for "swaps" when we swap out a process.
...
addresses PR 6170.
2001-09-23 07:10:08 +00:00
chs
2adcba997b
make pmap_resident_count() non-optional.
2001-09-23 06:35:30 +00:00
chs
a29a7b1934
when creating a symlink, set the vnode's copy of the size also.
2001-09-23 05:28:23 +00:00
chs
f0b6149f57
change spec_{read,write}() to specify the device blkno in units of DEV_BSIZE
...
rather than the device's sector size. this allows /dev/rcd0a and /dev/cd0a
to return the same data. fixes PRs 3261 and 14026.
2001-09-23 04:39:25 +00:00
chs
65752b4854
remove SAVESTART from the symlink, mknod and create operations.
...
it was unnecessary, and removing it also fixes a v_usecount leak
that was introduced in the previous revision.
2001-09-23 01:37:03 +00:00
sommerfeld
9ce108757e
use fifo_putpages
2001-09-22 22:49:32 +00:00
chs
520b477a5a
check early for reads beyond EOF.
2001-09-22 22:44:08 +00:00
sommerfeld
acf40b361c
Correct comment to match code
2001-09-22 22:36:30 +00:00
sommerfeld
181c4513dc
Add fifo_putpages() placebo so that the vnode's uobj is unlocked.
2001-09-22 22:35:18 +00:00
sommerfeld
cc8633edd3
VOP_PUTPAGES must release the uobj's lock for us, so ensure it's locked
...
beforehand and unlocked afterwards using LOCK_ASSERT().
2001-09-22 22:33:16 +00:00
chs
da3f862846
typo in previous.
2001-09-22 22:20:00 +00:00
chs
5148b779c3
check early for reads past EOF.
2001-09-22 22:14:29 +00:00
manu
142bd48453
config stuff for COMPAT_LINUX
2001-09-22 21:30:15 +00:00
manu
151b90c898
Added Linux emulation support to Mips port
2001-09-22 21:29:20 +00:00
manu
c56e2ccc5d
I'm working on Mips
2001-09-22 21:26:40 +00:00
manu
75e9ab7f5f
Enabled Mips Linux emul in header files
2001-09-22 21:25:49 +00:00
manu
e302bb5bc5
Enable Mips Linux emulation in header files
2001-09-22 21:24:16 +00:00
manu
40a2d61d92
Fixes for mips support
2001-09-22 21:22:57 +00:00
manu
63d1ca8449
Initial support for running Linux binaries on the Mips. Both static and
...
dynamic binaries work on 32 bit mips. Signals are completely broken yet,
and ptrace is not supported.
2001-09-22 21:19:10 +00:00
manu
a0cca8f7f6
One file that was missing from a previous commit
2001-09-22 21:17:55 +00:00
manu
2207c50687
Fixed errors in header files
2001-09-22 21:15:18 +00:00
manu
84d266e55c
More work on Linux compat for Mips: system calls mapping.
2001-09-22 21:14:37 +00:00
eeh
4061423088
BADREG was no longer defined.
2001-09-22 19:58:28 +00:00
eeh
53ebc1b431
Correct the `fast' int types.
2001-09-22 19:51:48 +00:00
manu
e7a3ba084e
Empty framework for upcoming work on IRIX_COMPAT
2001-09-22 18:51:35 +00:00
simonb
5847ff0480
*int_fast64_t should be "long", not "long long".
...
From Klaus Klein.
2001-09-22 18:03:10 +00:00
explorer
56b9583089
Implement two major items:
...
(1) Add an IOCTL to tell the Lucent based cards how often to
do an access point scan. These results are returned by
calling another IOCTL to get the most recent scan data.
This function works with prism2 cards as well, but the
data is returned in a different format, or perhaps it is
data only for the closest access point.
(2) For prism2 cards, add the ability to put it into LAN monitor
mode, where (via BPF) all packets can be received. This
mode works best with "wiconfig wi0 -p 3 -f ?" to put the
card into pseudo-IBSS mode (to keep it from channel-hopping
and scanning for access points) and to set the frequency of
the AP you wish to monitor.
The returned data has a partial wi_frame header (down to the
wi_dat_len field) followed by the raw data of the packet.
I have and will put up on http://www.flame.org/NetBSD/wireless/
some simple utilities which do some perhaps interesting things,
like scan for access points, capture packets, etc.
2001-09-22 17:22:25 +00:00
bjh21
0368c93d47
Move the functionality of eca_init_rx_hard() into the tail end of
...
eca_fiqhandler_tx and eca_tx_downgrade. This seems to reduce the
number of Rx overruns to zero on my current test case.
2001-09-22 17:19:27 +00:00
bjh21
35de4e1a4c
Add fiq_downgrade_dont_disable, which does what fiq_downgrade does, but
...
doesn't disable FIQs in the process.
2001-09-22 17:16:18 +00:00
rafal
0143775c35
If OSLoadOptions is set to auto, boot straight to multi-user. Requested
...
one too many times and it seems to do no harm, so enable it.
2001-09-22 16:26:34 +00:00
bjh21
ea073a0cd4
eca_init_rx_hard() shouldn't call eca_init_rx_soft(). That's the
...
whole point.
2001-09-22 15:33:53 +00:00
bjh21
cddb5108f8
More re-arrangements: Split eca_init_rx() into two parts, one of which
...
(eca_init_rx_soft()) just sets up software state, and the other of
which (eca_init_rx_hard()) actually puts the interface into receive
mode and sets up the FIQ handler etc. Arrange that when we transmit a
frame, eca_init_rx_soft() has already been called, so we only need to
call eca_init_rx_hard() from the Tx downgrade handler.
The point of this is that I should be able to incorporate the
functionality of eca_init_rx_hard() into the Tx FIQ handler so that we
can switch from Tx to Rx with little enough delay that we don't drop
the first few bytes of the incoming frame.
2001-09-22 15:29:20 +00:00
bjh21
ffe2e2dfd3
Re-organize eca_gotframe to make the logic a little clearer (to me).
2001-09-22 14:42:51 +00:00
ad
5ed7f8b717
Save some info about the board for dpti.
2001-09-22 13:05:36 +00:00
simonb
6879b04b7e
Pacify gcc 2.95.3: put an "=" output constraint at the start in an
...
asm argument.
Also, wrap >80 character line.
2001-09-22 06:30:17 +00:00
jdolecek
8573719e3d
add new UVM_LOAN_WIRED flag - the memory pages loaned in TOPAGE case
...
are only wired if this flag is present (i.e. they are not wired by default now)
loaned pages are unloaned via new uvm_unloan(), uvm_unloananon() and
uvm_unloanpage() are no longer exported
adjust uvm_unloanpage() to unwire the pages if UVM_LOAN_WIRED is specified
mark uvm_loanuobj() and uvm_loanzero() static also in function implementation
kern/sys_pipe.c: uvm_unloanpage() --> uvm_unloan()
2001-09-22 05:58:04 +00:00
tsutsui
baa3ec7385
Fix errors on make cleandir in stand/boot* dirs.
...
Patch from misc/14012 by kwellsch@tampabay.rr.com .
2001-09-22 05:19:39 +00:00
tv
ab11c169b5
objcopy -> ${OBJCOPY}; remove redundant definitions of OBJCOPY?= (it is
...
now in bsd.own.mk).
2001-09-22 03:34:17 +00:00
eeh
ebe55962eb
Handle fpu registers 32-63 properly.
2001-09-22 01:05:04 +00:00
mrg
343880977d
don't print the alignment fault twice.
2001-09-22 00:59:30 +00:00
mrg
bb9e4c2671
sync.
2001-09-22 00:58:46 +00:00
mrg
8e278c1dc1
update to reality: remove a bunch of stuff.
2001-09-22 00:58:13 +00:00
mrg
bbb36f6711
use the 32-bit compiler on sparc64 (but not yet enabled.)
2001-09-22 00:56:23 +00:00
elric
b537810471
Fixed AHC_DEBUG on 64 bit arches with a bit of casting in a printf.
...
Added a message to help me debug a problem that I'm having. The
printf is protected by AHC_DEBUG.
2001-09-21 23:54:57 +00:00
ad
fcf00dcc00
Add `dpti', which is an I2O vendor extension implementing the DPT/Adaptec
...
control interface. This makes it possible to run the Linux versions of
dptmgr, raidutil, dptelog and other tools under NetBSD.
2001-09-21 23:44:19 +00:00
eeh
a984fa914e
Workaround for machines with the Acer Labs chipsets.
2001-09-21 22:08:41 +00:00
tv
3552c05893
Skip the "includes" phase of src/sys/lkm.
2001-09-21 20:53:36 +00:00
eeh
ec10c45552
Define proper constants for 128-bit floating point.
2001-09-21 20:48:02 +00:00
eeh
f8e6b3bc07
Correct values for different rounding modes.
2001-09-21 20:32:32 +00:00
thorpej
559632229e
Recolor pages as we disocver the cache sizes.
2001-09-21 19:26:20 +00:00
thorpej
68481297d1
More sunos32 fallout.
2001-09-21 17:12:22 +00:00
wiz
d5e1bab856
Update copyright, fix typo and remove too many '/'.
...
Ok'd by eeh.
2001-09-21 15:30:41 +00:00
fvdl
f22b808267
Make new gas happy. Use movzbl instead of xorl + movb.
2001-09-21 14:14:30 +00:00
fvdl
165dd7f987
Make the newer gas happy by explicitly adding '*' to indirect calls, and
...
matching mov extensions with register names.
2001-09-21 14:12:50 +00:00
fvdl
000902fbf6
Unfortunately, the previous change seems to make most (all?) configurations
...
using the ahc driver hang when probing scsi devices. The problem may be in
the ahc driver and not in this change, but back it out until this has been
fixed anyway.
2001-09-21 13:54:47 +00:00
chs
d0b76cab5e
use shared locks instead of exclusive for VOP_READ() and VOP_READDIR().
2001-09-21 08:02:55 +00:00
chs
a548bfb584
add an assert.
2001-09-21 07:57:35 +00:00
chs
4111c37251
when zeroing pages past EOF, don't zero the page containing EOF if it
...
already contains valid data. should fix PRs 13361 and 13436.
2001-09-21 07:52:25 +00:00
eeh
6138deb0d4
Handle DMA boundaries a bit better.
2001-09-21 03:04:09 +00:00
eeh
09b0bc09db
Clean up page allocations.
2001-09-21 03:02:32 +00:00
chs
1dcb706816
fix type-o.
2001-09-21 02:36:47 +00:00
chris
8fd1ceb7bf
Fix bug in vmapbuf, was using len before it had been adjusted. Found by Frank while Luke was tracking down a bug.
2001-09-20 23:32:23 +00:00
ad
d9f326efb9
Split out the check for a valid disk device into a function.
2001-09-20 22:46:04 +00:00
ad
96e145132b
Add gem.
2001-09-20 22:17:25 +00:00
wiz
d0b8cdc6a9
When using va_list, use vprintf, not printf.
2001-09-20 22:11:30 +00:00