From e2d795597310f976af211f9bac2466dbf89b50c8 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 9 Apr 1997 14:05:50 +0000 Subject: Added ka9q tcpip stack and network driver for the gen68360. This effort was done based on the 3.6.0 release and had to be autoconf'ed locally. It is turned on is the bsp enables it and it is not explicitly disabled via the configure option --disable-tcpip. As many warnings as possible were removed locally after the code was merged. Only the gen68360 and mvme136 bsps were compiled this way. The ka9q port and network driver were submitted by Eric Norum (eric@skatter.USask.Ca). The network demo programs are not included in the tree at this point. --- c/src/lib/libbsp/m68k/gen68360/start/start360.s | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'c/src/lib/libbsp/m68k/gen68360/start') diff --git a/c/src/lib/libbsp/m68k/gen68360/start/start360.s b/c/src/lib/libbsp/m68k/gen68360/start/start360.s index 89ab98a806..77c4ff3115 100644 --- a/c/src/lib/libbsp/m68k/gen68360/start/start360.s +++ b/c/src/lib/libbsp/m68k/gen68360/start/start360.s @@ -56,7 +56,7 @@ Entry: .long uhoh | 21: .long uhoh | 22: .long uhoh | 23: - .long uhoh | 24: Spurious interrupt + .long spurious_interrupt | 24: Spurious interrupt .long uhoh | 25: Level 1 interrupt autovector .long uhoh | 26: Level 2 interrupt autovector .long uhoh | 27: Level 3 interrupt autovector @@ -297,6 +297,13 @@ uhoh: nop | Leave spot for breakpoint stop #0x2700 | Stop with interrupts disabled bra.s uhoh | Stuck forever +/* + * Log, but otherwise ignore, spurious interrupts + */ +spurious_interrupt: + addql #1,SYM(_M68kSpuriousInterruptCount) + rte + /* * Place the low-order 3 octets of the board's ethernet address at * a `well-known' fixed location relative to the beginning of ROM. @@ -307,7 +314,7 @@ uhoh: nop | Leave spot for breakpoint /* * Initial PC */ - .global start + .global start start: /* * Step 2: Stay in Supervisor Mode @@ -386,6 +393,8 @@ ZEROLOOPTEST: | Should this just force a reset? mainDone: nop | Leave spot for breakpoint + movew #1,a7 | Force a double bus error + movel d0,a7@- | This should cause a RESET stop #0x2700 | Stop with interrupts disabled bra.s mainDone | Stuck forever @@ -398,9 +407,14 @@ SYM (_StackSize): .long StackSize END_CODE -BEGIN_BSS +BEGIN_DATA_DCL .align 2 PUBLIC (environ) SYM (environ): .long 0 + PUBLIC (_M68kSpuriousInterruptCount) +SYM (_M68kSpuriousInterruptCount): + .long 0 +END_DATA_DCL + END -- cgit v1.2.3