jdolecek
738e87aeb9
fix argument for bitmask_snprintf() (stylistic only, code is commented out anyway)
2001-04-22 11:51:45 +00:00
jdolecek
8927d6f1be
Fix serious bug in bounce buf handling - the EDF_BOUNCEBUF flag needs
...
to be cleared always in edmcadone(), otherwise if there is a write
via bounce buffer followed by read directly to buf, the read operation
would return trashed data (the buf data would get overwritten
by contents of bounce buffer in edmcadone()).
Reset b_resid as necessary when the i/o is done, too.
g/c some unneeded stuff, use lockmgr()-style locking in ed_[un]lock(),
better avoid some deadlocks
These changes make the driver quite a bit more stable. It's actually
reliable enough to be possible to newfs the drive and use it for
read/write filesystem now.
2001-04-22 11:32:49 +00:00
shin
2d7f52d2c7
add Serial Line IP (sl).
2001-04-22 02:06:34 +00:00
shin
22b4360d24
add config files for installation.
2001-04-22 02:01:43 +00:00
thorpej
4738622712
Give pmap_update() an argument (a pmap_t) so that it knows which
...
pmap it should be updating.
2001-04-22 00:33:59 +00:00
bjh21
68ec0583b4
Add latches (arm26).
2001-04-22 00:27:18 +00:00
bjh21
660a20cd22
Add a skeleton driver for the random latches on the Archimedes, which are
...
shared between the printer port and floppy drive. Useful facilities will be
added when I know what I need.
2001-04-22 00:26:35 +00:00
thorpej
7f10ba88b1
#define away pmap_update() in <machine/pmap.h> so that no function
...
call overhead is incurred as we start sprinkling pmap_update() calls
throughout the source tree (no pmaps currently defer operations, but
we are adding the infrastructure to allow them to do so).
2001-04-21 23:51:14 +00:00
ross
c8ee2e4ddd
Import and use cpu_info_primary for non-MULTIPROCESSOR.
...
Hey, it compiles, and it's only -current.
2001-04-21 22:03:21 +00:00
bjh21
4442920f51
In nfs_loadattrcache(), if checkalias() gives us a new vnode, lock it. This
...
prevents us losing the locked state of the old vnode.
fvdl thinks the old vnode is certain to be locked at this point. I've put in
a KASSERT to be on the safe side.
This seems to fix PR kern/12661.
2001-04-21 21:35:53 +00:00
fvdl
4c41d3275c
s/cheap/expensive/ for DIAGNOSTIC
2001-04-21 21:10:41 +00:00
fvdl
41a3ee5d58
Note that the (already commented out) DIAGNOSTIC option is expensive.
2001-04-21 21:03:46 +00:00
fvdl
2654febb55
Remove DIAGNOSTIC and mark it as expensive.
2001-04-21 21:02:03 +00:00
fvdl
a1b8e618af
Doh. Put the option *after* the include of plain GENERIC.
2001-04-21 20:58:13 +00:00
fvdl
781af989f9
Move the DIAGNOSTIC option to a seperate config file, it's too expensive
...
to be in GENERIC (which should be a kernel ready for production use).
2001-04-21 20:49:14 +00:00
rearnsha
8faae68155
Use bus_space functions for accessing SBIC registers.
2001-04-21 20:47:26 +00:00
jdolecek
6402f68d79
Match any device with class bridge and subclass BRIDGE_MC, instead
...
of matching individual products. Pointed out by Jason Thorpe.
2001-04-21 19:18:20 +00:00
bjh21
85e1abfb39
Keep track of interrupt depth. With forthcoming changes to cpu.h, this gets
...
us accounting for interrupt time.
2001-04-21 18:51:17 +00:00
thorpej
0115ec662c
The pmap_update() call at the end of uvm_swapout_threads() is
...
completely useless. Nuke it.
2001-04-21 17:38:24 +00:00
thorpej
15f731ee94
pmap_update() should not be equated with "flush entire TLB", it is
...
used to process deferred pmap operations. Since these pmaps don't
defer anything, pmap_update() is a noop.
2001-04-21 17:25:01 +00:00
thorpej
c3df364b08
pmap_update() -> tlbflush()
2001-04-21 17:20:58 +00:00
thorpej
82065e8a0b
Update the comment for pmap_update().
2001-04-21 17:13:12 +00:00
tsutsui
e53804bd4b
Preliminary support for Acard ATP850/860 UDMA PCI IDE controllers.
...
XXX Currently disabled by default because it has some problems on macppc.
XXX Maybe some more initialization is needed, but there is few information
XXX about the chips.
2001-04-21 16:36:37 +00:00
thorpej
24e7ecca97
Adjust the way the cpu_info[] array works (array of pointers
...
rather than array of structures). Keep a list of active
CPUs and define a CPU_INFO_FOREACH to traverse them.
This fixes cpustates statistics tracking.
2001-04-21 16:27:10 +00:00
tsutsui
8dfe3efca7
space -> tab
2001-04-21 16:10:54 +00:00
sato
5c43977ed6
- fix comment for MCR/530.
...
- add MCR/530A(MobilePro780) PWCTL_COM0 device.
- add MC-R520A(MobilePro770) BTN_COVER device,
but commented because of no checking.
- add MC/R530A(MobilePro780) BTN_COVER device,
but commented because of no checking.
2001-04-21 15:56:55 +00:00
bjh21
630f137a5e
Multiple-inclusion protection.
2001-04-21 15:47:32 +00:00
sato
9804ab7c49
add VR4181 vrip register maps.
...
add VR4181 vrip intr levels.
2001-04-21 14:46:36 +00:00
sato
05c9ce0788
add VR4181 BCU register definitions.
...
add routines for VR4181.
2001-04-21 14:44:40 +00:00
tsutsui
e815501ea9
Regen from pcidevs rev. 1.318:
...
> Correct an entry for Acard UDMA IDE controller.
> The chip is actually marked as ATP860-A, not ATP860R.
2001-04-21 13:32:25 +00:00
tsutsui
42f78f411a
Correct an entry for Acard UDMA IDE controller.
...
The chip is actually marked as ATP860-A, not ATP860R.
2001-04-21 13:28:52 +00:00
tsutsui
c7bcfd56a3
Fix a leftover comment.
2001-04-21 11:54:25 +00:00
sato
a797d869ed
dump io setting: DPRINTF->VPRINTF
2001-04-21 10:32:38 +00:00
tsutsui
f39a68828d
Make sure to check SC_ACCEL_TAGS in ncr53c9x_ioctl()
...
even if sync transfer is disabled or not supported.
2001-04-21 07:28:22 +00:00
martin
83930a016c
Demangle an #ifdef mess and make all ioctl routines take an u_long
...
as the command argument. Before we were subject to subtle sign extension
differences depending on char being signed or unsigned.
2001-04-21 07:23:41 +00:00
tsutsui
c6e66cb834
Define ${ELF2ECOFF} and use it so that we can specify objcopy
...
for it on cross environment.
2001-04-21 05:54:02 +00:00
tsutsui
64eed5859d
Clean up ncr53c9x_select():
...
- Define NCR_F_SELATN3 for sc_features and use it to check if the chip
supports SELATN3 command
- Make conditions of sending messages a bit simpler.
2001-04-21 05:35:20 +00:00
ross
baa78b5c79
Nonfunctional change split out from pending functional commit.
2001-04-20 23:52:23 +00:00
thorpej
4ad5b289fe
No longer need to play with the kernel_lock while waiting
...
for the other processor to sync FP state.
2001-04-20 22:59:38 +00:00
thorpej
c24c3604b0
SPINLOCK_INTERLOCK_RELEASE_HOOK should actually be
...
SPINLOCK_SPIN_HOOK, so that we actually check for
pending IPIs on the Alpha more than once. Also,
when we call alpha_ipi_process(), make sure to go
to splipi().
2001-04-20 22:58:39 +00:00
thorpej
b8ccfcaac5
Add splipi() to block interprocessor interrupts (which come in at IPL 5).
2001-04-20 22:28:58 +00:00
toshii
61ff48a82e
In pmap_allocpagedir(), check if uvm_km_zalloc of ptpt is successful,
...
and handle alloc failure case.
2001-04-20 18:11:53 +00:00
matt
1a5fe5b583
Split cpu from mainbus so that cpu can attached to other buses (like ofbus).
2001-04-20 18:08:48 +00:00
thorpej
97682364ef
Adjust for a multiprocessor data structure change (whee, I guess
...
I haven't built a GENERIC.MP for a while...)
2001-04-20 18:03:27 +00:00
thorpej
499f5a02fd
Alas, we must put pmap_emulate_reference() in the kernel_lock
...
perimeter as long as we still acquire it in interrupt handlers,
in order to avoid a lock ordering deadlock.
2001-04-20 18:00:50 +00:00
thorpej
a18eaa4cb6
Make sure there is there is a curproc in ltsleep().
2001-04-20 17:58:49 +00:00
tsutsui
f2e3f6d5d4
Cosmetics. (tab/space etc.)
2001-04-20 17:32:33 +00:00
he
9f142f57b9
In the provisional disklabel (which will be used if there is no
...
valid on-device disk label), set d_npartitions to RAW_PART+1 instead
of to 1. Discovered as a build bug on the netbsd-1-5 branch, affecting
miniroot construction and vnd devices; RAW_PART went missing from the
in-core disklabel, and eventually also the on-device label.
2001-04-20 16:58:19 +00:00
matt
5f6967f571
A small change for NETWINDER support. (netwinder needs its own pci_attach_hook)
2001-04-20 16:52:04 +00:00
matt
60ca1c1c66
Make EXEC_ELF32 standard. Cleanup/fix GENERIC to include more devices.
2001-04-20 16:48:01 +00:00