tsutsui
bc7b528919
Use CFATTACH_DECL_NEW(). (no softc)
2008-04-04 16:33:05 +00:00
tsutsui
9a86ae19d5
- add options COMPAT_40
...
- use options<space><tab>
2008-04-04 16:27:26 +00:00
tsutsui
174de56cb1
Add nca at pcmcia (53C400 based SCSI).
2008-04-04 16:21:08 +00:00
matt
666d4c1ddb
split device_t/softc. Use device_xname and device_private.
2008-04-04 16:04:19 +00:00
tsutsui
5147571380
Split devict_t/softc for ncr5380sbc SCSI, and misc cosmetic changes.
2008-04-04 16:00:57 +00:00
tsutsui
229f1dede1
Account ci_idepth in VR_INTR() and TX_INTR, rather than cpu_intr() in
...
hpcmips/interrupt.c. The latter one is used only on kernels configured for
multiple CPUs (i.e. kernels which have both options VR41XX and TX39XX).
Closes PR port-hpcmips/38139 from Risto Sainio.
2008-04-04 12:36:06 +00:00
tsutsui
d9941582bf
Split device_t/softc for le(4) and variants and misc cosmetic changes.
2008-04-04 12:25:06 +00:00
tsutsui
f061be1a68
Add options COMPAT_40.
2008-04-04 10:21:40 +00:00
tsutsui
88d7308f1b
Add options COMPAT_40.
2008-04-04 10:06:54 +00:00
hauke
00d02da16b
Go all the way, and use the new accessor function for the device_xname field.
2008-04-04 09:49:33 +00:00
tsutsui
703736dfc6
Fix botches in the previous.
2008-04-04 09:33:07 +00:00
yamt
f5c7cd2491
adb_read_date_time: remove an unused variable.
2008-04-04 09:16:59 +00:00
xtraeme
789a8d9a8c
Enable finsio(4).
2008-04-03 23:11:11 +00:00
xtraeme
4889c380c2
Add finsio(4) entry (commented out).
2008-04-03 22:51:09 +00:00
drochner
ed2b61ded7
update for device/softc split, thanks to Risto Sainio for testing
2008-04-03 17:04:40 +00:00
drochner
16304febf2
minor fixes for device/softc split, approved by dogcow
...
(not tested on real hardware yet)
2008-04-03 15:12:43 +00:00
drochner
46f8b82348
update for device/softc split,
...
compile-tested by yamt -- could someone please give it a functional test?
2008-04-03 15:08:58 +00:00
nisimura
5d92871af1
revise SDRAM SPD detect attempt for EUMB I2C debugging purpose.
2008-04-03 11:24:02 +00:00
nakayama
b1253edf64
Revise cpu_need_resched and cpu_signotify, then make them like x86's ones.
...
This can avoid sending IPI to myself.
2008-04-03 10:34:45 +00:00
jmcneill
8843b0cbbb
Disable machdep.acpi_beep_on_reset by default.
2008-04-03 10:20:18 +00:00
scottr
776597a46f
Factor out ADB spin-wait timeout loop, and use it for synchronous
...
operations to access the PRAM RTC, etc. in the IIsi and Cuda cases.
Thanks to Martin Husemann for pointing out the flaw.
This is a slightly more thorough workaround for the issue Martin found
in PR 37611, as it affected more than just adb_read_date_time().
2008-04-03 05:03:23 +00:00
christos
012e0e0132
make this compile with MPDEBUG. parts missing
2008-04-03 01:02:23 +00:00
hauke
b1374c3956
Fall-out from splitting device_t and softc for the dp8390 softc.
2008-04-02 18:36:58 +00:00
ad
5e136e1e5d
Add more error reporting to AP startup.
2008-04-02 11:52:54 +00:00
nisimura
82460723d2
add a prelimary implementation of MPC8245 EUMB I2C.
2008-04-02 06:20:53 +00:00
cegger
3faf8c6fd7
convert to CFATTACH_DECL_NEW
...
OK matt and mrg
2008-04-01 23:44:48 +00:00
martin
e9c68c5df0
Add timeout to busy loops waiting for ADB command completition.
...
Turns the hard hang in PR port-mac68k/37611 into a warning.
2008-04-01 12:02:52 +00:00
ad
138df53bd3
If MPDEBUG and waiting for the CPU to start, dump cpu_trace[] as it changes.
2008-04-01 11:09:58 +00:00
chris
a839529a7e
Increase the Zaurus INSTALL memory disk size to match the size of the
...
ramdisk created by the distrib files.
2008-04-01 00:01:14 +00:00
chris
e2d485abc4
Add GENERIC.HOSTUSB kernel for zaurus.
...
This allows a Zaurus to act as a USB host, rather than client device.
Tested on a C3000 with USB NIC. I've added most usb devices to the kernel
as I'd expect USB devices just work.
Eventually this will disappear once switching from host to device
controller mode is supported.
2008-03-31 23:40:44 +00:00
chris
53030734c6
Add GPIO pins for USB cable type detection and glue for zusb devices for
...
config.
2008-03-31 23:35:39 +00:00
chris
ed87ed8b00
Add zusb device for powering on the USB port. Also configure USB port 2
...
via the client USB on the pxa270, as it appears USB port 2 is the
externally routed port.
The linux driver was used as documentation for GPIO pins and port
settings.
Note that this only seems to work for one boot, a reboot loses for some
reason, perhaps something in the USB client area needs to be configured.
XXX: perhaps we should make zusb a device that attached/detaches the USB
USB host or client device depending on the plugged in cable.
2008-03-31 23:32:43 +00:00
chris
1859a7ec67
Update pxa2x0 ohci support to match recent device_t/softc splitting on
...
ohci.
Also remove powerhooks (eventually it'll be pmf'd)
This is enough for host usb to work sometimes on a zaurus.
2008-03-31 23:18:49 +00:00
kiyohara
aaf18737ff
Split device_t/softc.
...
Use aprint.
2008-03-31 15:49:29 +00:00
jmcneill
8c1cc2fb3f
Enable asus(4)
2008-03-31 15:21:01 +00:00
tsutsui
73f476d471
Split softc/device_t for spc(4) and misc related cleanup.
2008-03-31 15:20:47 +00:00
jmcneill
149201cfa6
Enable asus(4)
2008-03-31 15:19:28 +00:00
njoly
d292c1dc4d
Revert unexpected DDB_ONPANIC change introduced in last revision.
2008-03-31 09:42:25 +00:00
he
87e42a468b
Convert from use of bcopy() to memcpy() so that this builds again.
2008-03-31 06:19:59 +00:00
dogcow
50ea53d902
...and fix my fix to do the proper device_t split.
2008-03-31 03:19:20 +00:00
dogcow
0e06ed5d6e
fix device_t split fallout.
2008-03-31 02:42:42 +00:00
dogcow
85df549da3
fix device_t split fallout.
2008-03-31 02:39:40 +00:00
christos
e8ecc76830
will need darwin_types.h in the branch.
2008-03-30 20:59:59 +00:00
macallan
3b8eb423c6
actually update the 'battery present' sensor. Doh.
2008-03-30 18:19:53 +00:00
macallan
b996b42f44
free & unmap DMA memory and registers on detach()
...
Now removing and re-attaching a mediabay works again.
2008-03-30 18:16:25 +00:00
macallan
a78054eebc
don't splhigh() in the interrupt handler, instead spltty() in adb_poll()
2008-03-30 17:57:29 +00:00
he
527b0e5405
Convert from using bcopy() to memcpy(), so that this builds again.
2008-03-30 16:28:08 +00:00
he
72a4c73de6
Use memcmp() instead of bcmp() so that this builds again.
2008-03-30 16:24:50 +00:00
ad
26256b6233
If SMBIOS is present and there seems to be good expansion slot info,
...
note the number of ISA compatible slots.
2008-03-30 15:26:20 +00:00
skrll
56baac4d94
Detect boot devices attached at phantomas.
2008-03-30 12:39:32 +00:00
skrll
770e609eb3
Add support for NCR 53C720 found on various machines/attachments.
...
From OpenBSD (Mark Kettenis)
2008-03-30 12:32:13 +00:00
tsutsui
8a19236fe5
One missed file in the previous commit:
...
> Split softc and device_t for zsc(4) and its children.
Pointed out by mrg@.
2008-03-30 01:41:36 +00:00
chris
248e511e80
Add missing bracing for some THUMB_CODE.
2008-03-29 22:05:15 +00:00
phx
232fdde483
Activate genfb, pckbc, pckbd, pms, wskbd, wsmouse and wsdisplay.
...
Those devices work reliable on a Pegasos2 system with serial console and
with a real keyboard/monitor.
2008-03-29 21:55:32 +00:00
tsutsui
02cb47cab2
Split softc and device_t for zsc(4) and its children.
...
XXX we should restructure MI APIs and make it really machine independent.
2008-03-29 19:15:34 +00:00
matt
32d5b0e7f0
Fix more direct references to cd_devs to device_lookup_private
2008-03-29 17:55:35 +00:00
matt
73cb9d1894
Don't use device_private on xx_cd.cd_devs[n],
...
use device_lookup_private(&xx_cd, n) instead.
2008-03-29 17:52:46 +00:00
matt
3504316292
Don't use device_lookup to get softc, use device_lookup_private.
2008-03-29 17:51:08 +00:00
jmcneill
b3ac884c36
Add RCSID to top of file.
2008-03-29 17:40:22 +00:00
tsutsui
9826f6af3a
- don't forget to set sc_dev
...
- use aprint_*() variants
2008-03-29 15:59:57 +00:00
skrll
c36ab687e9
Tidyup the attachment of various devices in the same way as OpenBSD and
...
use the same name.
Must have been funny to someone.
2008-03-29 15:59:25 +00:00
chris
a3aadfe6ff
Fix LOCKDEBUG build on arm by:
...
* converting simple_{un}lock to mutex_enter/exit
* Using UVM_OBJ_INIT & DESTROY for the uvm_object in the pmap structure
2008-03-29 15:52:09 +00:00
skrll
5886a5273b
Need to pull in kobj_machdep.c for options MODULAR
2008-03-29 15:34:19 +00:00
tsutsui
e9abc1656c
Fix typo.
2008-03-29 14:34:13 +00:00
tsutsui
30a5080cfd
One more missed file on migration of struct device sc_dev -> device_t sc_dev.
2008-03-29 09:16:19 +00:00
tsutsui
8d17a1295b
Split softc/device_t for oosiop(4) and osiop(4), with misc cosmetic changes.
2008-03-29 09:11:35 +00:00
tsutsui
7b2990dafa
- split softc/device_t
...
- adjust attach messages for sbdio devices
- misc cosmetics
2008-03-29 08:14:40 +00:00
tsutsui
92c1d7b259
Fix thinko.
2008-03-29 07:35:04 +00:00
tsutsui
440f7c7b53
Split device_t/softc, and misc cosmetic changes.
2008-03-29 06:47:07 +00:00
tsutsui
58561d05b5
Use CFATTACH_DECL_NEW().
...
XXX: this one looks a bit strange because it's attached via nvram_pnpbus.c
2008-03-29 06:16:54 +00:00
tsutsui
d54d70b6a7
We have to use device_private() to get softc from cd_devs[].
2008-03-29 06:13:44 +00:00
tsutsui
d062717c3f
Don't forget to set sc_dev.
2008-03-29 05:48:33 +00:00
tsutsui
4090172b20
Don't forget to initialize sc_dev.
2008-03-29 05:42:45 +00:00
tsutsui
50cafe93bd
Use device_private(), missed in the previous.
2008-03-29 02:14:29 +00:00
cube
b5ab5ab5d8
Add and enable lii(4) in amd64 configurations, too, as it is very likely
...
the hw is used on amd64-capable otherboards, although it is not confirmed
yet.
2008-03-29 01:14:25 +00:00
cube
819aee2ff1
Add lii(4) where it makes sense.
2008-03-29 00:40:02 +00:00
cube
88b9a9b2e7
Add and enable lii(4).
2008-03-29 00:21:01 +00:00
nakayama
5a9b71307f
Don't read fplwp content in delay slot for considering the case fplwp was
...
modifiled.
Reported by Chris Ross on port-sparc64.
2008-03-28 23:22:53 +00:00
apb
e6806c2c83
Adapt to changes in m68k/060sp/asm2gas script: pass SED=${TOOL_SED:Q}
...
instead of TOOL_SED=${TOOL_SED:Q} in the environment.
2008-03-28 22:29:16 +00:00
apb
87f370a116
Synchronise the two asm2gas scripts in sys/arch/m68k/060sp and
...
sys/arch/m68k/fpsp:
* The fpsp/asm2gas sed script previously hardcoded the fact that
registers needed a '%' prefix, and the 060sp/asm2gas sed scrip
previously did not have rules related to inserting '%' before register
names. Now, both scripts have the same rules, but the rules are
parapeterised to use "$P", which is set to '' or '%' as appropriate.
* Some other minor changes to the sed scripts.
The new asm2gas scripts have been verified to produce identical output
to the old asm2gas scripts, for all inputs in 060sp/dist/*.sa and
fpsp/*.sa, except for some differences inside comments.
Thanks to Izumi Tsutsui for suggesting that these scripts should be
synchronised.
2008-03-28 22:27:33 +00:00
tsutsui
03bb6cc822
Split device_t and softc for MI mk48txx(4) and intersil7170(4) clocks,
...
and other related misc cosmetics.
2008-03-28 20:26:12 +00:00
tsutsui
048fb884fc
Split device_t and softc for MI mc146818 clock,
...
and other related misc cosmetics.
2008-03-28 19:05:49 +00:00
martin
65c31645cb
Now that we have per-cpu-contexts, checking the context on the local cpu
...
to find out if a pmap is on some mmu does not realy work any more.
2008-03-28 18:22:59 +00:00
tsutsui
820a544d88
Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_*().
2008-03-28 18:19:56 +00:00
tsutsui
c93c4b87ff
Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_normal(9).
2008-03-28 17:51:51 +00:00
drochner
fd0ded75ed
split device/softc for USB host controllers and the usb (control)
...
device,
this is hairy stuff, and I've only tested with uhci/ehci at pci,
please test the rest and report problems
2008-03-28 17:14:45 +00:00
tsutsui
71fd55d0c3
Enable warning options.
2008-03-28 16:41:37 +00:00
tsutsui
74d089c227
Adjust boot device detection code to make netboot work properly:
...
- make a bootloader pass bootpath which includes device path on ARC BIOS
via BTINFO_BOOTPATH
- make a kernel use BTINFO_BOOTPATH in bootinfo to see boot device first,
then check argv[0] passed from ARC BIOS if there is no valid bootinfo
- check OSLoadPartition variables in the ARCBIOS environment and whole
argv[] arguments for IP12
- initialize mach_type before it's referred
- bump boot version
Tested on IP32 with various kernel/bootloader combinations.
2008-03-28 16:40:25 +00:00
martin
e4eb0bc72d
Use the passed cpu info for returning the frequency, not the current
...
cpu
2008-03-28 15:39:31 +00:00
uwe
fd8017cbe4
Use aprint_*.
2008-03-28 01:19:12 +00:00
he
4f00010385
Remove <m68k/saframe.h> here as well, patterned after hp300.
2008-03-28 00:35:04 +00:00
uwe
43e743115c
Split device_t and softc.
2008-03-28 00:13:15 +00:00
uwe
9694bbc3bd
Convert to use CFATTACH_DECL_NEW (no softc).
2008-03-27 23:57:58 +00:00
uwe
e6030fb8a9
Split device_t and softc.
2008-03-27 23:57:21 +00:00
uwe
99111ebac3
Convert to use CFATTACH_DECL_NEW (no softc).
2008-03-27 23:42:34 +00:00
gdt
53ede206ae
Following the change to remove GENERIC.local from the repository and
...
cinclude it, remove INSTALL.local and adjust kernels that referenced
it.
2008-03-27 21:13:29 +00:00
hauke
e8d5382c3a
Add explanation for the sbc flags to the kernel configurations that
...
use the sbc 53c80 driver. Until now, this information has lived in the
source code, only; neither sbc nor ncrscsi have a man page.
Triggered by PR port-mac68k/2921
2008-03-27 20:00:24 +00:00
tnn
b2e98d2a76
Revert for DOM0 as well at request of Christoph Egger.
...
I guess this bootstatic stuff is supposed to play nicely with dhcp,
but it still doesn't for me. I suspect it's due to misdetecting the bootdev.
2008-03-27 18:42:16 +00:00
phx
14f850861b
SmartFirmware only reports the first 256MB as available.
...
Also use the remaining memory by looking at the "reg" property.
2008-03-27 18:01:08 +00:00
phx
61737214f3
Restrict RTAS instantiation to the first 256MB. Other memory regions may not
...
be mapped by OpenFirmware.
2008-03-27 17:54:46 +00:00
tnn
7b0c772876
Revert previous for DOMU kernels. They use a custom xennet bootstatic
...
callback for cmdline configuration. Keep for DOM0 kernels.
2008-03-27 16:48:35 +00:00
tnn
65052bdca1
Comment out NFS_BOOT_BOOTSTATIC. There no use having it in the default
...
kernel as it needs manual configuration anyway. Also, if it's enabled
but no static options given, then the kernel will happily configure the
interface as INADDY_ANY and not even try to use DHCP.
2008-03-27 16:33:32 +00:00
tsutsui
dde8b66a5c
Add zsc(4) and zstty(4) for Qube 2700.
2008-03-27 15:24:35 +00:00
tsutsui
fc21b00873
Add kernel support for optional Z85C30 serial console on Cobalt Qube 2700.
...
There is some interrupt related issue (in MI z8530tty driver?) on heavy load,
but useful enough for debugging.
2008-03-27 15:21:46 +00:00
martin
5405d9ca93
Restrict the "mach prom" command to the primary cpu - it hangs the machine
...
hard on every other try on some machines.
2008-03-27 15:21:35 +00:00
martin
afa2677a01
Fix a panic message and bump the number of retries untill we manage to
...
send an IPI a bit up again.
2008-03-27 15:20:47 +00:00
martin
1f9fec2e30
Get rid of delay() while waiting for IPI results; limit the waiting
...
time via the cycle counter. Suggested by macallan.
2008-03-27 14:51:02 +00:00
ad
17ca69f070
Disable the fast tsc_get_timecount() for now. The divide can overflow
...
causing an exception.
2008-03-27 13:00:25 +00:00
apb
a749c03e28
Use "${TOOL_SED}" instead of just "sed" in sys/arch/m68k/060sp/asm2gas.
2008-03-27 07:15:16 +00:00
uwe
b5ba6eeb69
Split device_t and softc.
2008-03-27 03:58:47 +00:00
uwe
63387b243b
Convert to use CFATTACH_DECL_NEW (no softc).
2008-03-27 03:35:12 +00:00
uwe
a0caab7521
Split device_t and softc.
2008-03-27 03:34:14 +00:00
uwe
178f553d3a
Use cfdata_t, aprint_*.
2008-03-27 03:16:29 +00:00
uwe
ba989a607d
Say "buttons" not "button" as there are several.
2008-03-27 03:01:05 +00:00
uwe
e65c61e272
Split device_t and softc.
2008-03-27 02:52:04 +00:00
uwe
44bf67fb94
Split device_t and softc.
2008-03-27 02:40:14 +00:00
uwe
907d951360
Split device_t and softc. While here, hide obio_softc - there's no
...
reason to expose it via obiovar.h
2008-03-27 02:26:34 +00:00
uwe
3d9ebca642
Split device_t and softc.
2008-03-27 02:15:29 +00:00
uwe
d767a02150
Add missing aprint_naive("\n");
2008-03-27 02:08:14 +00:00
uwe
043b797d5d
Convert to use CFATTACH_DECL_NEW (no softc).
2008-03-27 02:05:43 +00:00
uwe
3e56f06adf
Split device_t and softc.
2008-03-27 02:03:03 +00:00
uwe
94dcf58d14
Split device_t and softc.
2008-03-27 01:48:50 +00:00
uwe
8e76b33398
Use device_t, &c. Convert to use CFATTACH_DECL_NEW (no softc).
2008-03-27 00:42:43 +00:00
uwe
fb3a817da5
Add RCSID comment.
2008-03-27 00:32:58 +00:00
uwe
30cb91aa35
Split device_t and softc. Use aprint_*.
2008-03-27 00:31:06 +00:00
uwe
9c577c1e80
Use device_t. Convert to use CFATTACH_DECL_NEW.
2008-03-27 00:23:40 +00:00
uwe
ff0e77e824
Use device_t. Convert to use CFATTACH_DECL_NEW.
2008-03-26 23:49:16 +00:00
uwe
4ad267c0da
Fix R_SH_DIR32 calculation (XXX: some other relocs look wrong too).
...
Sync icache after module is linked.
2008-03-26 22:45:50 +00:00
xtraeme
ae33dd3e78
sme_cookie is not needed when SME_DISABLE_REFRESH is set.
2008-03-26 20:21:38 +00:00
tnn
1a21682d68
Split device_t/softc for envctrl(4).
2008-03-26 19:15:49 +00:00
xtraeme
701c2ae0a3
Split device_t/softc for joy(4) and all its attachments. Also
...
use device_lookup_private() and related cosmetic changes.
Reviewed by cube@.
2008-03-26 18:27:07 +00:00
dyoung
3adac159e7
Define fkb and sfkb once instead of in both elansc_protect_text()
...
and elansc_protect(). Should stop GCC from complaining about an
unused variable fkb.
2008-03-26 16:45:32 +00:00
dyoung
b0cfcf1f00
Use as many as two Programmable Address Regions (PARs) with 4kB
...
granularity to protect some of the kernel text that is not protected
by the PAR with 64kB granularity.
2008-03-26 15:49:03 +00:00
kiyohara
08b5f8f61c
Remove printf() when VGA vendor is case Diamond and Matrox. Moreover
...
this printf() will make the start of CPU1 fail. I have not understood the
reason yet. When doing DEBUG is effective, the vender of all PCI devices
will be displayed again. At this time, printf() doesn't support the format
like "%08x".
2008-03-26 15:09:50 +00:00
kiyohara
7bff3a9b0b
We might be able to use VGA. Please comment out for line '-DCONS_SERIAL'
...
if you wish for it. In that case, you will occasionally see the hoarsely
and strangely transformed character on screen. This reason cannot be
understood yet.
Default is continuously a serial console.
2008-03-26 14:56:18 +00:00
kiyohara
9edbb57d26
Cleanup bebox_{enable,disable,get}_irq().
2008-03-26 14:34:42 +00:00
chris
9c31e33724
Add help text to arm machine specific ddb commands.
...
Part of fix for port-arm/38311.
2008-03-26 13:01:13 +00:00
ad
4490d3fdcf
Correct pasto in the cc_microtime defs. From tsutsui@.
2008-03-26 12:36:33 +00:00
martin
261a6922f9
Make the debug message that triggered in PR 38297 slightly more verbose
2008-03-25 20:44:12 +00:00
martin
31c74d197f
Count the number of syscalls per cpu, to avoid cache trashing around
...
uvmexp.syscalls.
I wonder if we should apply the same treatment to uvmexp.{traps,intr,faults}
2008-03-25 16:42:07 +00:00
martin
d05574d259
Remove unused symbol
2008-03-25 16:01:15 +00:00
cube
4674a8058c
Don't reference m68k/saframe.h. Zed's dead, baby, Zed's dead.
2008-03-24 23:02:38 +00:00
ad
11d69830e6
+pseudo-device lockstat since there is a cycle counter. Ok martin@.
2008-03-24 13:48:18 +00:00
yamt
9a4b7dd279
merge yamt-lazymbuf branch.
2008-03-24 12:24:37 +00:00
yamt
c2ade09841
remove an empty file.
2008-03-24 11:52:07 +00:00
skrll
51730523ef
Typo in commit.
2008-03-24 08:34:06 +00:00
cube
c7dd91c86d
Change previous to use aprint_error_dev.
2008-03-24 00:06:03 +00:00
tsutsui
4f64b6719d
Use macro defined in <machine/cpu.h> for cobalt_id and device addresses etc.
...
since <machine/leds.h> has been removed.
Also remove redundant address definitions in Makefile and local headers.
Pointed out by dieter roelants.
2008-03-23 17:19:57 +00:00
macallan
3d2ef4afbb
use device_xname()
2008-03-23 17:09:19 +00:00
cube
a27f79f69e
Use M_TEMP for allocations instead of the now deceased M_IOCTLOPS.
2008-03-23 15:50:51 +00:00
uwe
ee4c6e644b
G/c old softint code.
2008-03-23 06:07:08 +00:00
uwe
91731665c3
intc_intr_enable/disable: TMU3 and TMU4 are handled by INTPRI00 &co.
...
Correctly propagate requests to enable/disable their interrupts.
2008-03-23 05:53:47 +00:00
uwe
3328e83196
Sort SH4_INTEVT_PCI* codes.
2008-03-23 05:45:45 +00:00
simonb
a1ba91e196
Remove unused _BSD_OFF_T_.
2008-03-22 22:06:35 +00:00
tsutsui
18573edb9c
Use C99 initializer.
2008-03-22 18:46:49 +00:00
tsutsui
38e83cc130
Reorganize interrupt handling on cobalt and allow multiple interrupts on
...
each icu irq to support multi function PCI devices in the Qube's PCI slot:
- split out interrupt stuff from machdep.c into new interrupt.c
- prepare struct *_intrhead to handle cpu and icu interrupts
- use LIST and malloc(9) to handle multiple interrupts per icu irq
(mostly taken from algor/pci/pcib.c and evbmips/malta/pci/pcib.c)
- move evcnt(9) stuff into *_intrhead from cobalt_intrhand
(i.e. make it per interrupt rather than per handler)
- in pci_intr_map(9) handle CPU interrupt separately and add a sanity check
- fixup interrupt lines for devices on the PCI slot in pci_conf_interrupt(9)
- move some device address definitions into <machine/cpu.h> and
remove <machine/leds.h>
- misc cosmetics
No objection on port-cobalt for three weeks.
2008-03-22 18:32:20 +00:00
nakayama
c853b61f50
Add more assertion.
2008-03-22 16:51:30 +00:00
jmmv
bf266e554b
Fix esym calculation to match comments. Reported by Gao Ya'nan in
...
PR port-i386/38170.
2008-03-22 16:50:17 +00:00
ad
69c15cf00b
Make it compile.
2008-03-22 14:28:10 +00:00
ad
3685a3103f
vn_close no longer takes a 'struct lwp' argument.
2008-03-22 14:21:56 +00:00
nakayama
d0e8e57d7d
Lock also on freeing own context, and add assertion.
2008-03-22 04:15:49 +00:00
nakayama
c7f58e76ff
Insert a delay with enabling interrupts to avoid deadlocks
...
when sending IPI is failed.
2008-03-22 04:12:32 +00:00
uwe
823b306d1e
Revert interrupt stack changes. There are some issues and, at least
...
in the current form, they complicate implementation of fast software
interrupts. I'd rather get fast softints in now and may be revisit
interrupt stack later.
2008-03-22 03:23:27 +00:00
uwe
57ea1b0849
Oops, delete commented out line forgotten in previous.
2008-03-22 00:21:52 +00:00
uwe
18d9c9643e
On SH4 we must be running on P2 to access memory-mapped TLB arrays.
...
Print DA2 again - that messenger was shot in 1.34
2008-03-22 00:15:41 +00:00
ad
a9ca7a3734
Catch up with descriptor handling changes. See kern_descrip.c revision
...
1.173 for details.
2008-03-21 21:54:58 +00:00
xtraeme
d749da9154
Split device_t/softc for ichlpcib(4) and all hpet consumers, plus
...
other related cosmetic changes.
2008-03-21 13:25:27 +00:00
xtraeme
409a4c533c
Split device_t/softc for amdpcib and the hpet attachment, plus other
...
related cosmetic changes.
2008-03-21 12:29:38 +00:00
dyoung
45361f4c9c
Use device_t.
2008-03-21 00:24:34 +00:00
nakayama
fb3ca52b49
- remove disabling interrupt in IPI.
...
- unused VA bits in MMU demap is 13 bits, not 12 bits.
2008-03-20 19:31:33 +00:00
kochi
07973f8d9b
reorder includes, fix indentation.
2008-03-20 14:56:06 +00:00
nakayama
7249e6951e
Use proper ASI macro.
2008-03-20 13:18:16 +00:00
kochi
c45bfb6fd1
Make ia64 kernel of GENERIC.SKI config compile.
...
Only compile tested.
2008-03-20 09:09:19 +00:00
cube
76f56e694a
Set the device_t back pointer in the softc.
2008-03-18 23:52:16 +00:00
cube
10dda1cba0
Back out previous, which obviously wasn't meant to get committed.
2008-03-18 20:48:42 +00:00
cube
7aa6248cdf
Split device_t and softc for ATA devices, as well as wd(4). Other
...
cosmetic changes where appropriate.
2008-03-18 20:46:35 +00:00
nakayama
8aead4fcfb
Fix a race when increment an interrupt level event counter.
2008-03-18 18:22:43 +00:00
tsutsui
f9697db4a0
Fix botched spl(9) bug I introduced back in 3.99.18 (rev 1.64):
...
Don't enable unhandled interrupts before all interrupts are processed.
Should fix "long download, network frozen" problems reported on
port-cobalt by several people.
2008-03-18 15:02:12 +00:00
martin
4882fcc17f
Fix a few format strings (hidden by option ifdefs)
2008-03-18 10:04:14 +00:00
dogcow
de88169824
pesky missing spaces.
2008-03-18 05:05:35 +00:00
jmcneill
6a2a315184
Remove debug printf: ``so we need 10 x 8 tiles -> 00500000''
2008-03-18 02:41:38 +00:00
nakayama
0a332c0d29
Fix a race condition in IPI handlers of save/drop fpstate, from OpenBSD.
...
Reported and tested by martin@.
2008-03-17 23:54:03 +00:00
nakayama
4eab56b382
Change statintr and schedintr similar to kern/kern_clock.c.
2008-03-17 18:31:19 +00:00
ad
495b385c33
Shave more cycles off tsc_get_timecount(). From dsl@
2008-03-17 16:46:47 +00:00
cube
de0b597e7c
Fix previous (aprint_*_dev usage).
2008-03-17 13:38:25 +00:00
dogcow
f466c3913d
fix blatant errpr [sic], and correct args to sbmatch/aprint_error_dev.
2008-03-17 10:39:49 +00:00
kiyohara
7f2e285540
Clean up for includes of board independent driver.
2008-03-17 09:30:02 +00:00
kiyohara
3720700f83
Enclose "#ifndef _ARM_PCI_MACHIDEP_H_".
2008-03-17 09:20:23 +00:00
nakayama
6456819faa
Make schedintr interrupt handler per-CPU.
...
While there rename tickintr interrupt handler and share initialization
code with schedintr.
2008-03-17 04:04:00 +00:00
cube
5b1afbbaae
Make this compile after device_t/softc split.
2008-03-17 01:16:22 +00:00
cube
9f2d68dedf
Fix fallout from softc split.
2008-03-17 00:53:12 +00:00
yamt
b09761a4bb
arint_normal -> aprint_normal
2008-03-17 00:00:55 +00:00
he
c69d818cfe
Patterned after the other ports, define _MACHINE and MACHINE before
...
including <arm/arm32/param.h>. Fixes build problem for rump.
2008-03-16 19:54:11 +00:00
uwe
f0757531d4
Only SH7750 and SH7750S require updates to memory-mapped data cache
...
arrays to be performed while running on P2. Don't penalize other cpus
that can do it from P1.
2008-03-16 19:17:53 +00:00
uwe
04e0ee32b2
Rewrite RUN_P2, RUN_P1 in asm. gcc4 is too happy to optimize away
...
assigned-goto versions if try to do anything fancy with them
(discovered by trying to wrap RUN_P2 into an "if").
2008-03-16 19:14:08 +00:00
kiyohara
4e674399aa
Remove unnecessary comment-outed call.
2008-03-16 17:39:56 +00:00
kiyohara
f717170f44
Remove TEXTADDR. We start to 0x100000.
2008-03-16 17:37:09 +00:00
he
02e88f9885
Adapt to device_parent() taking a device_t, not a struct device *.
2008-03-16 16:08:57 +00:00
tsutsui
49576266b9
Add support for optional Z85C30 serial console on Cobalt Qube 2700.
...
Bump version.
2008-03-16 10:10:43 +00:00
tsutsui
c828b4e601
Add more wait after sending a setup packet since
...
21041 on Qube 2700 seems to require more setup time.
2008-03-16 09:38:17 +00:00
uwe
66575b7b12
If we bother to report number of wired TLB entries we might as well do
...
it correctly.
2008-03-16 07:16:37 +00:00
cube
bb192d4cfd
Split device_t and softc for the ... wait for it ... [air quotes] MI
...
variant of fdc(4)/fd(4). Other cosmetic changes as appropriate.
2008-03-16 00:58:56 +00:00
uwe
5c45d9ed62
defflag cache related options.
2008-03-15 22:48:58 +00:00
cube
612c30d938
Split device_t and softc for sb(4) and all its attachments.
2008-03-15 21:09:02 +00:00
nakayama
9db309f3e2
Use macros to specify a interrupt level.
2008-03-15 20:14:17 +00:00
matt
6e8b97e230
After a process in swapped in, refresh the pcb's paddr.
2008-03-15 18:42:06 +00:00
dsl
467fb43e11
Add -momit-leaf-frame-pointer, saves a few bytes.
2008-03-15 18:00:32 +00:00
jmcneill
5f170d1cdb
Swap red and blue for 8bpp paletted mode.
2008-03-15 16:13:39 +00:00
cube
a22d8d4abb
Split device_t and softc for pckbc(4) and its attachments.
2008-03-15 13:23:24 +00:00
rearnsha
d14160690e
Allow detection of VFP devices on ARM11 cores.
2008-03-15 10:35:30 +00:00
rearnsha
667f59c8dd
Allow use of the VFP.
2008-03-15 10:30:51 +00:00
rearnsha
b45167b608
VFP support.
2008-03-15 10:16:43 +00:00
tsutsui
767de2b348
Wrap mips3_cp0_count_read() stuff (for DECstation 5000/150) with
...
#if defined(MIPS3) so that kernel config without options MIPS3 compiles.
Problem reported by Erik Bertelsen on port-pmax.
2008-03-15 08:50:08 +00:00
uwe
2e62be9d52
Add "mach reset" command that resets machine by taking a trap with
...
exceptions disabled. Fix db_stackcheck_cmd (have_addr is now bool).
Supply help strings for mach commands.
2008-03-15 01:03:40 +00:00
matt
9e8ca25d60
Switch dz driver to PRIVALLOC and device_* accessors.
2008-03-15 00:57:15 +00:00
matt
eb34c39d65
This is not (has never?) being used.
2008-03-15 00:27:18 +00:00
matt
3fbab323bd
Switch to PRIVALLOC and device_* accessors
2008-03-15 00:25:05 +00:00
matt
3143c8de1f
Use 0 sized softc and switch to PRIVALLOC
2008-03-15 00:24:13 +00:00
matt
5e7971cbf0
Fix device access. Use a 0 sized softc and switch to PRIVALLOC for mem_cmi.
2008-03-15 00:23:17 +00:00
matt
4e11517afe
Use device_*
2008-03-15 00:21:48 +00:00
matt
e344d4551d
Use a 0 sized softc / switch to PRIVALLOC.
2008-03-15 00:21:30 +00:00
matt
022989947e
Comment out xmi and nmi devices.
2008-03-15 00:20:08 +00:00
cube
d293cfca1a
Split device_t and softc for all attachments of vga(4).
2008-03-14 22:12:08 +00:00
jkunz
2f13c500d2
Fix falout from recent VAX code rototill:
...
MicroVAX 4000/[3-7]00 could not get HW Ethernet address.
2008-03-14 21:35:01 +00:00
jkunz
3682eb424e
Fix falout from recent VAX code rototill: MicroVAX 4000/1xx and 3100m9x could not get HW Ethernet address.
2008-03-14 20:49:29 +00:00
tsutsui
a2a8479cbe
Fix spl(9) botch in cpu_intr() on ews4800mips:
...
Don't enable unhandled interrupts before all interrupts are processed.
2008-03-14 16:47:08 +00:00
tsutsui
4f59bf75cb
Fix spl(9) botch in cpu_intr() on arc:
...
Don't enable unhandled interrupts before all interrupts are processed,
and also change all interrupt handlers to return processed MIPS_INT_MASK
values, rather than masked values of them.
2008-03-14 16:43:27 +00:00
nakayama
868048cf4d
SMP support for sparc64 now works, so make GENERIC.MP kernel build
...
by default.
2008-03-14 16:43:16 +00:00
nakayama
9cfa53b41a
#include "opt_multiprocessor.h"
2008-03-14 15:40:22 +00:00
nakayama
8d734e3bd0
Complete per-CPU TSBs and MMU contexts changes.
2008-03-14 15:40:02 +00:00
nakayama
5374009247
Improve FPU state save/clear like x86, idea from OpenBSD.
2008-03-14 15:39:18 +00:00
nakayama
74a205f37a
On SMP kernel,
...
- use "tick" interrupt for per-CPU statclock.
- disable "counter-timer" #1 interrupt and use it as timecounter.
2008-03-14 15:38:36 +00:00
nakayama
ead4e6f7b9
Improve IPI handling:
...
- make IPI takes two arguments.
- add IPI event counters per-CPU.
- implement IPI functions which were missing or broken.
- insert DELAY while halting primary CPU in IPI handler.
2008-03-14 15:38:00 +00:00
cube
607ead0ef4
Split device_t and softc for all com(4) devices (well, everything that
...
uses a com_softc backend). Use proper types and ansify where appropriate.
2008-03-14 15:09:09 +00:00
cube
816c3531d9
Split device_t and softc, catching up with changes of all other ne(4)
...
variants.
2008-03-14 11:51:06 +00:00
martin
2f30108619
If a cd(4) is attaching on ata instead of scsi, the controller is
...
the grandparent, not the parent.
2008-03-14 09:44:22 +00:00
ichiro
f742db2180
make compile
...
- add xenbus_read_ull prototype into include/xenbus.h
2008-03-14 02:17:15 +00:00
bouyer
9cde455f5c
Add swedge support to xbd backed, and make the virtual block device handle
...
sizes larger than 4TB. Tested by Jukka Marin.
Should fix kern/37370.
2008-03-13 22:19:39 +00:00
bouyer
b097a67b1d
Implement a C version of splx() in evtchn_do_event(). using plain splx()
...
here will reenable interrupts as a side effect, and we don't want it here.
It could cause some event handlers to run twice (which should be harmless),
and trap() to be called on the wrong LWP in doreti_checkast (which can
probably cause some damage).
2008-03-13 22:04:57 +00:00
drochner
86d10efebd
if "ddb_vgapost" is called but its data structures were not initialized,
...
print a message, suggested by joerg
(the message might be invisible if the console is in X mode)
2008-03-13 17:40:24 +00:00
drochner
3678498d59
-add a function to vga_post which can be called from DDB to get a
...
usable VGA console ("call ddb_vgapost")
-allow to switch from/to screens occupied by an X server if the graphics
device is console and in polling mode (ie DDB)
This together allows to get a DDB session on a VGA console if the
system crashed while X11 was running.
As long as the protocol to tell X servers about virtual screen switches
is as primitive as it is, it is unsafe to restart an X session afterwards.
So this is basically for crash analysis.
2008-03-12 23:26:18 +00:00
dyoung
7bbfa300c6
Do not use sc_invalid, it is no more.
2008-03-12 18:08:43 +00:00
dyoung
15bb494e45
In smap_stop(), clear IFF_RUNNING before disabling the device.
2008-03-12 17:23:13 +00:00
tsutsui
21497ab14b
Sync with MI NE2000 changes:
...
> Split device_t and softc for the NE2000 Ethernet chip and all its variants
> and attachments. Use device_t accessors, correct types, and ANSIfy when
> appropriate.
2008-03-12 15:07:48 +00:00
cube
cf80f73d17
Split device_t and softc for the NE2000 Ethernet chip and all its variants
...
and attachments. Use device_t accessors, correct types, and ANSIfy when
appropriate.
2008-03-12 14:31:11 +00:00
dyoung
d347ff7717
Prepare for PMF self-suspension: in the if_stop() methods, clear
...
IFF_UP and IFF_RUNNING before running the 'disable' step, instead
of after. Soon I will handle the 'disable' step by calling into
PMF, which may call if_stop(, 0). Ordinarily, that is harmless.
This change lets the if_stop() routines exit early when they find
on entry that IFF_RUNNING is not set.
2008-03-11 23:58:06 +00:00
dyoung
25cf32ee3d
Use device_t and accessors.
2008-03-11 23:19:03 +00:00
joerg
aa717955e2
Use CPUID2EXTFAMILY and CPUID2EXTMODEL.
2008-03-11 22:43:08 +00:00
matt
9b9164cc52
on MP systems, whenever we change a PTE, make to sync the data cache so that
...
other processors can see the change.
2008-03-11 20:44:01 +00:00
matt
fad3202138
This file is no longer used.
2008-03-11 05:43:35 +00:00