Commit Graph

43224 Commits

Author SHA1 Message Date
xtraeme 1d143cb5ae - Remove k8pnow_read_pending_wait() and use a macro that _always_
will wait for the bit pending wait to be cleared. When this bit is
  cleared the CPU is ready to enter to new processor state. [1]
- Remove useless comments.
- Sync boot messages with est.c

[1] Macro taken from FreeBSD.

And new changes tested by elad.
2006-09-02 11:00:52 +00:00
christos 25097e66ef Add missing initializers 2006-09-02 07:16:41 +00:00
gdamore 6f46a0d419 Remove ifdef 0'd code from before timecounters. 2006-09-02 02:06:05 +00:00
gdamore 12c3c2ae91 Convert evbmips to timecounters, using the MIPS3 cp0 clock.
This has been tested on AR5312, and I expect it to "just work" on
all evbmips systems.  (On AR5312, the counter is 110MHz. :-)
2006-09-02 02:04:25 +00:00
mrg 02356bf3f5 fix a bug in userlevel trap() handling where struct proc *p was used
before it was assigned to.
2006-09-01 22:22:45 +00:00
mrg ed30b212fd va = va += PAGE_SIZE is possibly undefined. remove the first "va = ". 2006-09-01 22:21:17 +00:00
mrg 6801145584 copy this from i386/compile/Makefile. it makes kernel builds work
properly with objdirs.
2006-09-01 22:12:40 +00:00
matt 6fcbfe6950 Increase SYMTAB_SPACE to 410000 2006-09-01 21:38:12 +00:00
uwe 1fd097bf15 Initial import of NetBSD/landisk port by NONAKA Kimihiro <nonaka@NetBSD.org> 2006-09-01 21:26:18 +00:00
matt 20751a781e Make this compile again. -Wshadow and other gcc4 stuff. 2006-09-01 19:15:48 +00:00
matt 87eed1926a Make sure .data is .long aligned. (fixes linker warning) 2006-09-01 19:11:56 +00:00
matt 3672c831f3 Remove explicit cast which causes assignments to PC_REGS(f) to fail. 2006-09-01 13:58:46 +00:00
matt 47006e8ea3 Remove unneeded volatile. 2006-09-01 13:54:48 +00:00
cube 52f4c135dc Device isabus has to expose an interface attribute otherwise it can't have
children attaching and config(1) detects isa0 as orphaned in RC3230.

While turning isabus into an interface attribute doesn't work (because the
attribute 'isabus' already exists), depending on that very same attribute
works.

XXX  I wonder what to allow, what to disallow.  I'll think about it.
2006-09-01 13:28:17 +00:00
matt be6447a4f3 Reorder AFLAGS to avoid assembler warnings 2006-09-01 13:07:51 +00:00
matt 1661cfe5d2 Increase SYMTAB_SPACE to 410000 2006-09-01 12:39:36 +00:00
mrg 663a6e2d8f s/E2BIG/EFBIG/ for bus_dma(9) errors. this is what every other
bus_dma does and several drivers depend on it.  in particular,
both re(4) and ath(4) would both spew "can't map mbuf" messages
as rapidly as possible (spamming the 9600 bps console) and
effectively locking up the interface until ifconfig "down up"
cycle was run.  with this fix, i get a much, much slower spew
of messages, and the interface (re(4)) continues to operate.
2006-09-01 09:21:18 +00:00
dyoung 4e2fa34401 Delete ath, it is known to be broken on alpha. 2006-09-01 08:19:03 +00:00
garbled bb2f95cc58 hptide controller was tested on prep by a user. Adding to GENERIC 2006-09-01 07:41:57 +00:00
garbled a9bf7a7670 I dunno how -Os crept into GENERIC, but yank it. 2006-09-01 07:23:51 +00:00
garbled fcfc216b3b Fix a horrible bug in how we initialize the 8259 interrupt controller.
The bug displayed itself by locking up console output on a 7043-140
following a powercycle.  This may also have been the cause of bogus
interrupts on motorola class machines.
2006-09-01 07:02:28 +00:00
sekiya bf3f4189a1 Fix delay() so that gcc4 does not optimize it into a noop. Lifted from the
newsmips implementation by tsutsui@
2006-09-01 05:43:23 +00:00
dyoung 9079f579cb Add ath(4) to GENERIC alpha kernel. UNTESTED. 2006-09-01 04:58:17 +00:00
sekiya 4edb45ca0c Add missing equal sign. 2006-09-01 04:47:44 +00:00
rumble db8f31d6dd Comment out tl(4) and nsphy(4) (used by the Set Engineering board) as it
appears to have an unresolved problem with bulk transmits.
2006-09-01 03:36:30 +00:00
rumble 67e8288ba5 Remove the 'FIFO Full' hack for interrupt vector 0.
It is unclear that this interrupt fails to latch as int2_wait_fifo()
depends on it doing so and appears to work. Furthermore, we were previously
unconditionally unmasking the interrupt 0 vector, which led to more
'unexpected interrupt' messages on the console, rather than avoiding them.

Approved by sekiya@.
2006-09-01 03:33:41 +00:00
matt 4139dfe2aa Move a variable to prevent a "unused" variable warning. 2006-09-01 03:24:50 +00:00
matt 28ee68ae9b Make this compile. The "fixed" bus_space_tag_t is horrible. 2006-09-01 03:24:08 +00:00
matt aa6c194477 Remove an unneeded volatile. 2006-09-01 03:22:58 +00:00
matt fc28199c6e Fix a -Wshadow error. 2006-09-01 03:22:26 +00:00
bjh21 1323fd42da This file isn't used any more. 2006-08-31 23:16:28 +00:00
freza fd156a0bc9 * move the "cheating" conditional into unmapiodev() implementation
itself (instead of memio_unmap()), as it differs between OEA and
  ibm4xx.

OK by matt@
2006-08-31 23:14:38 +00:00
freza 8f274ce5a8 * implement unmapiodev(), make mapiodev() aware of ppc4xx_tlb_mapiodev()
* we now don't rely on having console linear-mapped (that was terribly
  broken, really)
* also, this can be used as generic ibm4xx mapiodev()/unmapiodev()

OK by matt@
2006-08-31 22:53:40 +00:00
freza ca97defaa7 * ppc4xx_tlb_reserve(): allocate "reserved" TLB entries dynamically
* ppc4xx_tlb_mapiodev(): resolve pa to va from reserved TLB entries

OK by matt@

XXX we'll keep TLB_NRESERVED defined until we fix explora to use new API
2006-08-31 22:13:51 +00:00
freza 60d1041835 * add PVR values for Xilinx 405 cores
* don't try to decode vendor-specific PVR, print raw value instead.
* panic() if we see cache wasn't probed, we'd crash later anyway.
* rework the way PVR gets translated to core name.
* while there, normalize printf format ("%s: ...", device_xname(self), ...).

OK by matt@
2006-08-31 21:32:27 +00:00
dyoung 8cd106d3d2 Per discussion on tech-kern and tech-userlevel, move the bit-twiddling
macros, __BIT, __BITS, SHIFTIN, SHIFTOUT, and __arraycount() from
lib/libkern/libkern.h to sys/cdefs.h.  Add a __-prefix to SHIFTIN
and SHIFTOUT, and add a manual page for the bit-twiddling macros,
bits(3).

Make the __BIT and __BITS macros "widthless," as best I can, by
changing their type to uintmax_t from uint32_t.  XXX The manual
page lags this change by a bit.

Define __PRIxBIT and __PRIxBITS printf(3) format strings.
2006-08-31 19:24:37 +00:00
tsutsui a714ccc7c2 volatile void func(decl) -> void func(decl) __attribute__((__noreturn__)) 2006-08-31 19:23:44 +00:00
matt 77ef4246de Call unmapiodev when unmapping bus_space to possibly reclaim the VA. 2006-08-31 18:28:47 +00:00
matt 3d324b035e Add unmapiodev(vaddr_t, vsize_t) (to be used by bus_space_unmap) 2006-08-31 18:23:40 +00:00
matt 25159b5f42 Add unmapiodev. 2006-08-31 18:18:17 +00:00
matt 6a157410d2 Increase SYMTAB_SPACE 2006-08-31 18:12:42 +00:00
matt 00185e0248 Make these compile again. (#include <arm/ep93xx/epgpioreg.h> and
do the proc -> lwp changeover).
2006-08-31 17:53:19 +00:00
matt d2fa9e5329 Make cpu_coredump dependent on COREDUMP 2006-08-31 16:49:21 +00:00
matt 34827b737d More PTRACE fallout. 2006-08-31 16:39:13 +00:00
matt 5322f324e6 Make this console now that vconsole is done and with GCC4. 2006-08-31 05:11:07 +00:00
xtraeme 6b60608a48 Execute k8_powernow_init() if it's a K8 CPU and is able to change FID/VID
(previously the test was always false).

POWERNOW_K8 now runs in 32-bit mode with amd64 CPUs.
2006-08-31 04:20:21 +00:00
rumble 8b5466f087 Describe the GIO Product Identification Word and add a few macros to
extract other fields.
2006-08-31 00:01:10 +00:00
rumble c693018067 Add the giopci device and associated ethernet/mii chipsets for the Phobos
and Set Engineering GIO fast ethernet boards.
2006-08-30 23:59:50 +00:00
rumble ba52409a2e Provide a pseudo-pci bus for the following PCI ethernet boards, which live
behind custom PCI<->GIO bridges:
	- Set Engineering GIO Fast Ethernet (TI ThunderLAN)
	- Phobos G100 (DEC 21140?)
	- Phobos G130 (DEC 21143)
	- Phobos G160 (DEC 21143)

All boards present the chipsets' pci configuration registers at some
defined offset in their slots' address space as well as device registers.
We simply allow the MI pci subsystem to attach the devices.

This has been tested with a G130 board (DEC 21143) and works well on IP20
and IP24. The Set Engineering board attaches, works fine when receiving and
lightly transmitting, but chokes for unknown reasons on heavy transmits.
The tl(4) driver may need some fixing.
2006-08-30 23:58:13 +00:00
rumble 2d1cbf7222 Implement the gio_arb_config() interface for changing the machine-specific
gio bus arbiter parameters via imc(4) or pic(4).

Slots are identified by name: GIO_SLOT_GFX, GIO_SLOT_EXP1, GIO_SLOT_EXP2.

Provide some helper functions for establishing interrupts associated with
each slot and obtaining product descriptions.
2006-08-30 23:48:55 +00:00