Commit Graph

39541 Commits

Author SHA1 Message Date
tsutsui 2be3acc29a u_intNN_t -> uintNN_t 2005-01-02 12:03:12 +00:00
christos ca0484bf3e add a linted comment. 2005-01-02 00:14:46 +00:00
rumble 067cc4d32d Add commented out pf and pflog pseudo-devices. 2005-01-01 21:20:19 +00:00
yamt 95c82bfee4 introduce vm_map_kernel, a subclass of vm_map, and
move some kernel-only members of vm_map to it.
2005-01-01 21:02:12 +00:00
yamt 1207308b90 for in-kernel maps,
- allocate kva for vm_map_entry from the map itsself and
  remove the static limit, MAX_KMAPENT.
- keep merged entries for later splitting to fix allocate-to-free problem.
  PR/24039.
2005-01-01 21:00:06 +00:00
chs 6bd8ed04bb add cases for '040 and '060 FPUs. from Radek Kujawa. 2005-01-01 17:11:39 +00:00
toshii 1701924009 While processing soft interrupts, don't call splx()/lowerspl() when
unnecessary, as they call dosoftints().
2005-01-01 10:39:30 +00:00
simonb 0ce7001382 Provide assembly versions of the clock timing calculation loops that
aren't effected by changes in compiler optimisation.

Fixes PR port-mips/26959 from Izumi Tsutsui
2005-01-01 09:48:39 +00:00
simonb 98ffe3f03f Don't specify the object format to pick the right endianness - the
linker already knows if it is big- or little-endian.
2005-01-01 07:00:50 +00:00
tsutsui 91c61919b2 - Make some local functions static.
- Remove unused prototype declarations.
2005-01-01 04:54:29 +00:00
tsutsui b2a044cc20 Remove (void *) casts added to NULL. 2005-01-01 04:00:25 +00:00
simonb 4dab1db639 Use "NULL" instead of "(something-or-other *)0". 2005-01-01 03:25:46 +00:00
simonb 60e6b50deb Spell "available" correctly. 2005-01-01 03:24:43 +00:00
rumble bf88067210 Do not report unexpected interrupts when not debugging. These
seem to occur fairly often under normal operation with HPC1.5.
Also, do not return if the interrupt is unexpected, but see if
there is anything to handle regardless, which appears to always
be the case with HPC1.5.
2004-12-31 22:32:34 +00:00
christos faeb57b2dd Define builtin va start differently for lint, so that it does not produce
a warning.
2004-12-31 17:28:38 +00:00
joff 5a55b5cff3 Enable INET6 by default, bump SYMTAB_SPACE 2004-12-31 12:14:22 +00:00
he b8908d5fed Make this compile again after the introduction of usb_dma_reserve;
need to include <dev/usb/usb_mem.h> now to pick up it's definition.
2004-12-31 11:06:53 +00:00
rumble 801f527111 Prepend HPC3 macros universally with "HPC3_" to distinctly recognise
the corresponding revision and maintain consistency with HPC1.

No functional change intended.
2004-12-30 23:18:09 +00:00
joff 05aeaeff39 Always expose struct sigcontext instead of just #ifdef COMPAT_16. 2004-12-30 20:38:37 +00:00
christos 2819137180 change the definition of va_start for lint. 2004-12-30 18:08:20 +00:00
christos d8e127cb21 - don't try to to lint the va_arg() macros, instead replace them.
- replace the va_start() macro for lint
2004-12-30 16:22:27 +00:00
is 63672cded0 Hardware pointers must be volatile.
Patch by Pawel Chwalowski via PR 28810, from a similar patch by Michael
Hitch to ite_cl.c.
2004-12-30 10:07:51 +00:00
tsutsui 23bf17808a Protect accesses to PTE/TLB registers with
_cpu_exception_suspend()/_cpu_exception_resume() pair.

Should fix spontaneous reboot problem on heavy load reported by
Christian Groessler on port-dreamcast.
2004-12-30 09:48:30 +00:00
rumble 3de38c1738 Replace the hpc0 base address with the definition from
hpc/hpcregs.h.
2004-12-30 02:41:03 +00:00
rumble 4aa50cac2f Remove a few HPC1 register definitions for ones that don't exist.
Also, HPC1_ENET_INTDELAYVAL isn't a magic number. It turns the
interrupt delay off (by being the timer trigger bit), so name it
more appropriately.
2004-12-30 02:35:41 +00:00
rumble 57329acafa Wrap seeq and hpc register reads and writes in macros for
readability. While here, engage in some KNF and 80-column policing.
No functional changes intended.
2004-12-30 02:26:20 +00:00
rumble d4734bb3d4 Fix the HPC1 transmit logic, which was previously very broken.
HPC1 does not mark transmitted descriptors like HPC3. We must
query the HPC1 chip to determine what it expects the next
descriptor to be, reclaim used ones, and restart if necessary. Each
revision's corresponding logic now lives in its own
sq_txring_hpc{1,3} function.

HPC1's transmit interrupt conditions also differ from HPC3, so
remove the INTR bits from descriptors when tagging new packets on
to the end of the chain in order to avoid unwanted interrupts.

Also, be extra careful when restarting the transmit ring. Since
transmit interrupts seem to be relatively slow on HPC1, sq_start
may be called while the DMA engine is quiescent, and before a
transmit interrupt is asserted. We cannot behave like HPC3, which
begins transmission from the first packet pulled from IFQ if the
DMA engine is quiescent as this would skip enqueued packets. It
appears that sq_start is never called before HPC3 asserts an
interrupt, which restarts the transmit queue at the appropriate
place. However, this often happens with HPC1 and we cannot assume
that if DMA is inactive in sq_start, then all previously queued
packets have fled the coop.
XXX Is there a similar race possible with HPC3?

HPC3 logic should remain functionally unchanged, and HPC1 should
finally work properly.
2004-12-29 06:57:52 +00:00
joff 5beb7d303e improve intr handling behavior in light of the fact that there is no transmit completion irqs on epcom 2004-12-29 06:31:32 +00:00
rumble 5cf01464f1 HPC1 seems to benefit from larger rings. This should be especially
true on the transmit side, which appears to be significantly slower at
interrupting than HPC3.

XXX I used to be able to occasionally wedge the chip with
SQ_NTXDESC == 32, but have not yet been able to reproduce that
behaviour this evening with a larger value.
2004-12-29 06:28:14 +00:00
joff 193578fd49 Bump UPAGES back down to 8KB now that real issue was found with ep93xx intr handling 2004-12-29 04:47:44 +00:00
joff 54fe88f7fd Fix the potential recursion processing soft interrupts that was eating
all the stack.
2004-12-29 04:46:13 +00:00
rumble e837411407 Remove the static sq_trace array and make it per-device as
multiple seeq interfaces may exist. While here, add a few trace
actions, move the related macros into sqvar.h, and enhance the
sq_trace_dump output a bit.
2004-12-29 02:11:31 +00:00
joff 3a8922c4d8 descend into TS7200_flash_0x60660000 2004-12-28 16:19:41 +00:00
jmc a6be320e8b Make sure all objects strip out the .eh_frame section and force libsa/etc to
also do this for their objects. Otherwise this creates bootblocks that
are too large w. binutils 2.15
2004-12-28 07:50:00 +00:00
joff 60b9b5a6ef do things the todr(9) way 2004-12-27 02:46:22 +00:00
joff 3f09dcaa18 Add tsrtc to TS-7200 config 2004-12-27 02:44:38 +00:00
joff bb0dbb71f1 Clean up autoconf stuff 2004-12-27 02:42:49 +00:00
joff cff4f0088d Add support for TS-5620 daughter card RTC 2004-12-27 02:41:54 +00:00
joff 0ac1f404ba support watchdog timer on TS-7200 CPLD 2004-12-26 22:02:10 +00:00
yamt 3954031773 enable debug code in pmap_emulate_reference. ok'ed by Jason Thorpe. 2004-12-25 06:35:30 +00:00
christos 2c2559cb73 PR/28773: Takahiro Kambe: Support for newer cpu's in enhanced speedstep 2004-12-24 17:37:43 +00:00
joff b6d96c3c3d Pad .sdata section to a 4-byte boundary so that the .image section
is always aligned.  This makes md_root_loadaddr always 4 byte aligned.
Without this, may get an un-aligned access trap before we even print
anything on the console which was a pain in the neck to debug since so
early in the bootstrap the CPU usually just halts on exceptions.
2004-12-24 16:17:27 +00:00
shige d2306c8cf3 Add functions:
- com_opb_cnattach
	- com_opb_device_register
2004-12-24 14:55:50 +00:00
joff 881290e4de add netbsd-wd0, netbsd-sd0, netbsd-epe0 configurations 2004-12-24 10:53:34 +00:00
joff eadf291885 On-chip EP93xx UART support 2004-12-24 10:34:27 +00:00
joff a1ed993cf1 generic TS-7200 gzboot support 2004-12-24 10:33:54 +00:00
joff 04fb7eeb00 support for gzimg's in TS-7200 Redboot on-board flash 2004-12-24 10:32:40 +00:00
joff 23fe936a38 bump default U-area size from 8KB to 64KB, 8KB is too little to even successfully boot a tsarm SBC 2004-12-23 04:39:41 +00:00
joff e8d2af9dd0 Need these files present for ISA support 2004-12-23 04:36:18 +00:00
joff 419237bbb9 generic kernel configuration for TS-7200 SBC's 2004-12-23 04:35:01 +00:00