matt
dfb9f2d504
Remove some constant (use value in bus_space_tags).
2003-03-07 18:24:00 +00:00
drochner
c0e23f3152
-Fix ORB queue corruption / use of free()d memory
...
caused by bad interaction of sbp2_free() and sbp2_abort().
sbp2_abort() requires that its argument ORB is on the
"active" list, and it puts it onto the freelist - sometimes.
So we had 2 causes of corruption:
-removing the ORB from a list which it isn't on
-free()ing recycleable items on the ORB freelist
-minor cosmetics
2003-03-07 16:29:33 +00:00
drochner
49e6bf0fa5
Add support for "simplified direct" (aka RBC) devices.
...
This reveals some ugly points in the sd driver, as
the PQUIRK_ONLYBIG flag (there are 6, 10, 12 and 16 byte
CDBs for r/w) and the handling of small/big mode
select/sense. This should be cleaned up.
Also the "long" struct disk_parms.disksize is worth
a thought...
2003-03-07 16:18:57 +00:00
kanaoka
5c5aa9ba83
Make sure this compiles with ACPI_DEBUG.
...
Pointed out by Patrick Welche <prlw1@newn.cam.ac.uk>.
2003-03-07 15:17:44 +00:00
rjs
b486d4a0ff
Add NULL cn_halt and cn_flush entries to consdev.
2003-03-07 13:30:35 +00:00
he
0a235da1cd
Add inclusion of <sys/lock.h> to allow compilation of usage of
...
MALLOC() to succeed.
2003-03-07 12:40:12 +00:00
fvdl
02de215ad2
Add cpu* at mainbus.
2003-03-07 11:02:50 +00:00
thorpej
b81d443ef3
Allow a memory disk image to be statically included in the kernel
...
to be specified in the kernel configuration file, like so:
makeoptions MEMORY_DISK_IMAGE="/path/to/image.fs"
2003-03-07 01:26:12 +00:00
dsl
ef50700873
LIBSA_NO_CLOSE is LIBSA_NO_FS_CLOSE everywhere else.
2003-03-07 00:46:37 +00:00
matt
52f7db1beb
Fix C&P tpyo.
2003-03-07 00:14:38 +00:00
taca
e7e88128f7
Fix compile error with struct consdev change.
2003-03-06 23:47:35 +00:00
fvdl
d2c1c747ec
Remove last traces of pccons.
2003-03-06 23:21:36 +00:00
matt
c4d8a6226e
Make the intel phy match the i82562 phys.
2003-03-06 22:38:09 +00:00
fvdl
167eeeab9c
Update for kernel include changes.
2003-03-06 22:32:07 +00:00
bouyer
5cdb9ac484
Regen: Remove duplicate in previous.
2003-03-06 22:25:43 +00:00
bouyer
0cc9494784
Remove duplicate in previous.
2003-03-06 22:25:23 +00:00
fvdl
06114d8df6
Don't descend into ../i386/include anymore.
2003-03-06 22:22:55 +00:00
fvdl
00289f6f52
Put the correct value in the TPR before entering DDB.
2003-03-06 22:17:44 +00:00
bouyer
35f51b36b4
Regen: Add several SiS host bridges, from FreeBSD.
2003-03-06 22:10:26 +00:00
bouyer
bc029ddc91
Add several SiS host bridges, from FreeBSD.
2003-03-06 22:09:46 +00:00
thorpej
1557986bd7
Don't require that input buffers and output buffers be of the same
...
type.
2003-03-06 21:32:59 +00:00
thorpej
a572240890
For functions with inputs and outputs, we currently require that the
...
buffer types be the same; don't rely on the middle-end to enforce this
for us.
2003-03-06 21:10:45 +00:00
fvdl
51c335ad9a
Fixup DDB entry and register access.
2003-03-06 20:58:09 +00:00
jonathan
a9ae465f5e
Commit the FreeBSD alternative of a private patch to check NIC internal
...
ram for using TBI, versus MII/GMII.
FreeBSD commit log and versions:
Obtain the media type from the shared memory and only use the eeprom
as a fallback.
if_bge.c: rev 1.30
if_bgereg.h: rev 1.13
Thanks to Paul Saab @mu.org.
2003-03-06 20:53:05 +00:00
thorpej
9e7bb2595e
Based on the feedback on wasabisystems.com!bsd-api-discuss (sure wish
...
people would read that list in a more timely fashion!), change the new
64-bit memory reporting sysctl nodes to report bytes. This should not
be a problem, since it's only a week old, and no applications use the
new nodes yet.
2003-03-06 20:32:59 +00:00
matt
feeb962699
Correct pci1 bus_space tag.
2003-03-06 20:15:24 +00:00
jonathan
cf38b6aae6
FreeBSD fix for problems reported (to FreeBSD) with 16-bit accesses
...
to 32-bit device registers. Add (untested) NetBSD fix for big-endian hosts.
From FreeBSD versions:
if_bge.c: 1.26 and 1.27
if_bgereg.h: 1.12
FreeBSD (MFC) comment:
MFC: Avoid 16-bit accesses to device memory. Use volatile where
appropriate in referencing device memory. Parenthesize BGE_HOSTADDR
define properly.
2003-03-06 20:12:53 +00:00
thorpej
ea9a7f73e0
* No need for an interface attribute on "dma".
...
* Take the "dma" attribute off fhpib and nhpib, so that leaving out "dma"
causes a compile-time error, rather than a run-time crash.
2003-03-06 18:28:52 +00:00
thorpej
bba7685f5f
Update for consdev changes.
2003-03-06 18:24:52 +00:00
darrenr
bacf7b9b2b
When unblocking threads, do not call setrunnable() on the thread we will
...
be returning because the code path that calls is will very likely call
setrunnable() again on the returned thread, leading to a panic because
the thread returned is already at LSRUN. This fixes a problem where netbsd
would panic when using gdb (5.3) on a process with multiple lwp's like this:
% gdb program
(gdb) run
^C
(gdb) quit
2003-03-06 15:31:14 +00:00
skrll
bcc03a47aa
Add NULL cn_halt and cn_flush entries to consdevs. Hi Matt!
2003-03-06 13:09:28 +00:00
rafal
d5afdde2ba
Catch up to struct consdev changes.
2003-03-06 07:59:37 +00:00
igy
9ead47682a
catch up to consdev update
2003-03-06 07:39:34 +00:00
matt
210f48e582
Remove unneeded conditional code.
2003-03-06 07:15:46 +00:00
igy
3c0a5d1f13
Remove #ifdef __HAVE_GENERIC_SOFT_INTERRUPTS switch and old interrupt
...
support. Ixp12x0 port always uses generic soft interrupt.
2003-03-06 06:17:43 +00:00
igy
edcaa77675
insert macro to protect itself against multiple includion.
2003-03-06 06:14:16 +00:00
matt
3dc865b386
Relocate Discovery first thing in initppc (if not at expected address).
...
This implies that if PMON tells us where the GT is, we write that address
in gtbase.
2003-03-06 06:04:21 +00:00
matt
a190651169
Make most of PPC (OEA) bus_space's identical (or as identical as possible).
...
(except mvmeppc).
2003-03-06 05:25:18 +00:00
fvdl
27e2af69da
Call db_machine_init to set up the ddb ipi vector.
2003-03-06 00:47:00 +00:00
matt
6074e25e08
Add support for mmap(2) to be able to return memory aligned on a 2^n
...
boundary.
2003-03-06 00:41:51 +00:00
matt
6221ccd63f
Make sure to flush each line after printf.
2003-03-06 00:39:42 +00:00
matt
7109fe9012
Add cn_halt and cn_flush entries to consdevs. (needed for dma-only console
...
devices).
2003-03-06 00:38:26 +00:00
matt
0b8a5fd80f
Adapt to powerpc/bus.h changes.
2003-03-06 00:20:39 +00:00
fvdl
4e5e707719
* Rework interrupt code
...
* Redirect some include files to x86
* Enable ioapic usage
* Do MP.
2003-03-05 23:55:57 +00:00
thorpej
6689073e50
When computing the LOADADDR() of .data and .sdata, use:
...
LOADADDR(previous_section) + (ADDR(current_section) - ADDR(previous_section))
to avoid using SIZEOF(), which does not properly take into account
the size of orphans that might be sorted with the section.
2003-03-05 23:54:22 +00:00
christos
1fbc199e4e
use M_ACPI where appropriate.
2003-03-05 23:00:56 +00:00
christos
35f9126434
Fix the fallout from potr malloc changes
2003-03-05 22:56:46 +00:00
manu
a6757a0de1
Less accurate vm_region, but it sticks better to Darwin results.
2003-03-05 22:39:48 +00:00
matt
ff2281b498
Add preliminary support Marvell (Galileo) Discovery System Controllers.
...
This code was contributed by Allegro Networks.
2003-03-05 22:08:18 +00:00
dsl
4c320740d2
Use do_setres{u,g}id for osf1_sys_set{u,g}id
2003-03-05 18:47:39 +00:00