Commit Graph

47645 Commits

Author SHA1 Message Date
nisimura
6d7713a9a1 - use a hardwired value for ISA/PCI iospace until the right solution
to find.
- use const [] construct for register location lookup.
2008-04-09 01:08:39 +00:00
nisimura
8ec93217ac - typo in MBR offset.
- redo the previous change in main.c and wm.c
2008-04-09 00:20:35 +00:00
nisimura
7c716f683a - note a comment about a discovery of viaide BAR read value weirdness.
- have RAID and SATA PCI storage subclass.
- cosmetics around NIC drivers.
2008-04-08 23:59:03 +00:00
dyoung
2c7f43b53e Attach elansc(4) at mainbus(4) instead of at pci(4). Attach pci(4)
at elansc(4).  Take advantage of a suspend/resume cycle to reconfigure
the SC520's PCI host-bridge bus for higher performance.  Update
the manual pages and the NET4501 kernel.
2008-04-08 20:30:16 +00:00
garbled
9792283735 SMP support for ofppc. (finally) Much thanks to Matt Thomas for help in
figuring out all the crazy nuances of getting this working, and to
Michael Lorenz for testing/fixing my changes on macppc.  Tested with a
quad-proc 7044-270.
Summary of changes:

Bumped CPU_MAXNUM to 16 on ofppc.
Added md_* routines to ofppc/cpu.c, to sync the timebase, and awaken the CPUs.
Fixed a bug in the test for a 64bit bridge cpu early in locore.S
Added code to set the interrupt priority for all CPUs with an openpic.
Change rtas to probe before cpus, to allow use of the rtas freeze/thaw
timebase code routines.
Fix CPU_INFO_FOREACH macro to iterate through detected cpus, not CPU_MAXNUM.
Change most uses of ci_cpuid to ci_index, to deal with CPUs that do not allow
writing to SPR_PIR.  Don't write SPR_PIR unless the secondary cpu identifies
itself as 0.
Change the hatchstack/interrupt stack allocations to allocate a 8192byte
interrupt stack, and a 4096 byte hatch stack, align them to 16 bytes, and
allocate them no lower than 0x10000.  Allocate them separately to prevent the
hatch stack corrupting the interrupt stack later on.
If the CPU is a 64bit cpu, copy SPR_ASR in cpu_hatch()
Set the idle stack to ci->ci_data.cpu_idlelwp->l_addr->u_pcb.pcb_sp.
Add OF_start_cpu().  Add a routine to ofwoea_initppc to spin up secondary
procs early, and place them into a spinloop waiting for the hatch routines
to be ready.
Modify the ipi routines to deal with openpics that reverse byte order on read
from an ipi register. (such as on the 7044)
Change the rtas setup to allocate the rtas physical base address above
the kernel, to avoid mucking up the hatch/interrupt stacks.
2008-04-08 02:33:03 +00:00
nisimura
a6da47bdf3 - Synology DS407 is a MPC8349E product.
- quick comparison between 8349E-mITXE eval and DS407.
2008-04-07 16:36:50 +00:00
nisimura
03449cb522 - accomodation for the case when TICK_PER_SEC is other than 100MHz. 2008-04-07 15:46:25 +00:00
nisimura
60c7b05675 - honour CONSPEED to determine EMUB console UDMB/UDLB register values.
- remove stray lines from siisata.c
2008-04-07 15:20:19 +00:00
nisimura
b06d491b48 - refer to how to use 57600bps console on the 2nd EUMB serial case. 2008-04-07 14:55:24 +00:00
nisimura
7aad948b25 - assign console on at 0x4600 for GENERIC.NAS configuration. 2008-04-07 14:40:46 +00:00
nakayama
3722b88cd3 Remove redundant #ifdef. KASSERT implies option DIAGNOSTIC. 2008-04-07 14:18:11 +00:00
tsutsui
a109378b55 Split device_t/softc, as following parents in sys/dev/sun. 2008-04-07 13:31:15 +00:00
nisimura
ac96fb2beb - add siisata.c in Makefile.
- use DEVTOV() to highlight vtophys() issue.
- VIA NICs do not stretch less than 60 octet frames.
2008-04-07 13:25:31 +00:00
nisimura
a904272206 - add siisata.c which should cover SiI 3112, 3512 and 3114.
- include IDE/SATA definitions in globals.h.
2008-04-07 12:33:57 +00:00
nisimura
bc0567728b add PCIIDE functionality which should cover cmdide, iteide, viaide and
slide.  Still not in working order.
2008-04-07 11:13:14 +00:00
dyoung
c2b5bd57df Defer write-protecting the kernel text until after interrupts are
enabled.  This is a grotty hack that lets a MULTIPROCESSOR kernel
patch the kernel with x86_patch() without trapping to the debugger.
2008-04-07 03:59:46 +00:00
dyoung
3dfe96300d Complete device_t/softc split. 2008-04-07 03:57:51 +00:00
nisimura
a0f6082331 - add MII bitbang op modelled after sip.c 2008-04-07 02:02:39 +00:00
cherry
f493ba9c7e Correct comment about struct timecounter field 2008-04-06 12:19:36 +00:00
skrll
9fcc1f5407 de-__P 2008-04-06 08:03:36 +00:00
kochi
63e7ca5a5c Make loader.efi compile again. 2008-04-06 07:50:04 +00:00
cegger
f5bd7c2196 use aprint_*_dev and device_xname 2008-04-06 07:23:57 +00:00
tsutsui
c3b129605a Use generic atomic_cas_uint() for mutex(9) and rwlock(9), and
remodel old RAS based _lock_cas() implementation for m68010
into genereic atomic_cas_32().
Now sun2 kernel compiles and even works on multiuser. (hehe)

Tested on tme (emulationg 2/120 and 3/150) and (real) 3/80.
2008-04-05 22:47:52 +00:00
tsutsui
6cc162d54c Always specify COPTS="-Os" and disable several options and devices
to shrink kernels. Current sun68k bootloader can't load a kernel larger
than ~2MB, and our ever growing kernel have reached the limit.
2008-04-05 22:16:04 +00:00
tsutsui
6976334ea5 Always specify COPTS="-Os" and disable several options and devices
to shrink kernels. Current sun68k bootloader can't load a kernel larger
than ~2MB, and our ever growing kernel have been reached the limit.
2008-04-05 22:08:41 +00:00
tsutsui
052ab0354c Add commented out ext2fs definitions. 2008-04-05 18:21:34 +00:00
tsutsui
cde344d3be Allow MD cycle counter routines to pass their own optimized
tc_get_timecount function to MI cc_init().
2008-04-05 18:17:36 +00:00
skrll
cefd9f38fa Add and enable various siop attachments. 2008-04-05 15:30:46 +00:00
cegger
09275ba76d use aprint_*_dev and device_xname
OK martin
2008-04-05 13:40:05 +00:00
tsutsui
19a464fa71 - fix build with OBJDIR
- clean more generated files
2008-04-05 07:33:00 +00:00
tsutsui
9252161713 Use htole32() on preparing setup packet. 2008-04-05 06:46:39 +00:00
tsutsui
abb05145d7 Add support booting from UFS2 partition for sparc.
Tested on tme emulating SS2.

Closes PR port-sparc/36068.
2008-04-05 06:39:08 +00:00
nisimura
a59dc1792e - add COMPAT_40
- add #options WAPBL for journalled BSDFFS for GENERIC.NAS
2008-04-05 04:13:48 +00:00
nisimura
1976aeb78e add rootfs on disk bootinfo case. 2008-04-05 04:05:06 +00:00
nisimura
3bbbade04a add some MPC824x NAS box description. obtained by googl'ing. 2008-04-05 03:39:41 +00:00
cegger
ee63fe0a40 use aprint_*_dev and device_xname
OK joerg
2008-04-04 22:39:30 +00:00
cegger
ab47026c88 use aprint_*_dev and device_xname
OK joerg
2008-04-04 22:18:05 +00:00
cegger
320e553f24 use aprint_*_dev and device_xname
OK joerg
2008-04-04 22:05:39 +00:00
cegger
8dd00d48ab use aprint_*_dev
OK joerg
2008-04-04 20:31:50 +00:00
cegger
e34ebae1b0 remove unused file
OK bouyer
2008-04-04 20:15:07 +00:00
drochner
ca15c5b536 add some missing softc initialisation necessary after the device/softc
split, approved by Chris Gilbert
2008-04-04 17:44:43 +00:00
tsutsui
a3fc79baa9 Split device_t/softc for iee(4), with misc cosmetic changes. 2008-04-04 17:03:42 +00:00
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