Ignore:
Timestamp:
Nov 19, 2004, 4:44:55 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
f10a999
Parents:
0ee9cc1
Message:

2004-11-19 Ralf Corsepius <ralf_corsepius@…>

  • startup/m68k-stub.c: Use (defined(mc68020) && !defined(mcpu32)) instead of defined(mc68020) to reflect GCC-3.4's expectations.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c

    r0ee9cc1 r46ce08d  
    213213static ExceptionHook oldExceptionHook;
    214214
    215 #if defined(__mc68020__)
     215#if (defined(__mc68020__) && !defined(__mcpu32__))
    216216/* the size of the exception stack on the 68020 varies with the type of
    217217 * exception.  The following table is the number of WORDS used
     
    315315");
    316316
    317 #if defined(__mc68020__) || defined(__mc68332__)
     317#if (defined(__mc68020__) && !defined(__mcpu32__)) || defined(__mc68332__)
    318318asm("\n\
    319319        movew   %sp@(2),%d0\n\
     
    333333              movew   %sp@+,%d0\n\
    334334");
    335 #if defined (__mc68000__) && !defined(__mc68020__)
     335#if defined (__mc68000__) && !(defined(__mc68020__) && !defined(__mcpu32__))
    336336asm("\n\
    337337        lea     %sp@(4),%sp");       /* pull off 68000 return address */
     
    343343extern void _catchException(void);
    344344
    345 #if defined(__mc68020__) || defined(__mc68332__)
     345#if (defined(__mc68020__) && !defined(__mcpu32__)) || defined(__mc68332__)
    346346/* This function is called when a 68020 exception occurs.  It saves
    347347 * all the cpu and fpcp regs in the _registers array, creates a frame on a
     
    552552  }
    553553
    554 #if defined(__mc68000__) && !defined(__mc68020__)
     554#if defined(__mc68000__) && !(defined(__mc68020__) && !defined(__mcpu32__))
    555555  /* a 68000 cannot use the internal info pushed onto a bus error
    556556   * or address error frame when doing an RTE so don't put this info
Note: See TracChangeset for help on using the changeset viewer.