From f8f370b6452c12ace4a7671c66e831a727b19c4d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 16 Apr 1997 17:45:35 +0000 Subject: Update from Eric Norum. --- c/src/lib/libbsp/m68k/gen68360/start/start360.s | 10 +++++++--- 1 file changed, 7 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 77c4ff3115..bc2e8750e5 100644 --- a/c/src/lib/libbsp/m68k/gen68360/start/start360.s +++ b/c/src/lib/libbsp/m68k/gen68360/start/start360.s @@ -1,4 +1,4 @@ -/* entry.s +/* * * This file contains the entry point for the application. * The name of this entry point is compiler dependent. @@ -311,15 +311,19 @@ spurious_interrupt: .align 2 .long ETHERNET_ADDRESS | Low-order 3 octets of ethernet address + .global start /* * Initial PC */ - .global start start: /* * Step 2: Stay in Supervisor Mode - * (i.e. just do nothing for this step) */ +#if ( M68K_HAS_SEPARATE_STACKS == 1 ) + oriw #0x3000,sr | Switch to Master Stack Pointer + lea SYM(m360)+1024-64,a7 | Load stack pointer with space + | for the Interrupt Stack +#endif /* * Step 3: Write the VBR -- cgit v1.2.3