Changeset 5139d21 in rtems


Ignore:
Timestamp:
Jan 10, 2015, 7:04:06 PM (7 years ago)
Author:
Anthony Green <green@…>
Branches:
4.11, 5, master
Children:
99a1f122
Parents:
5759510
git-author:
Anthony Green <green@…> (01/10/15 19:04:06)
git-committer:
Joel Sherrill <joel.sherrill@…> (01/10/15 19:04:06)
Message:

moxiesim: Add conditional logic to handle old and new gas syntax

Location:
c/src/lib/libbsp/moxie/moxiesim
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/moxie/moxiesim/configure.ac

    r5759510 r5139d21  
    1818RTEMS_BSP_CLEANUP_OPTIONS(0, 0)
    1919
     20AC_MSG_CHECKING([for old moxie assembly syntax])
     21AC_COMPILE_IFELSE(
     22  [AC_LANG_PROGRAM(
     23    [],
     24    [asm("sub.l $r0, $r0");])],
     25  [HAVE_OLD_MOXIE_ASM=yes],
     26  [HAVE_OLD_MOXIE_ASM=no])
     27AC_MSG_RESULT([$HAVE_OLD_MOXIE_ASM])
     28if test "x$HAVE_OLD_MOXIE_ASM" = xyes; then
     29  AC_DEFINE(HAVE_OLD_MOXIE_ASM,
     30            1, [Define if you are using old moxie asm syntax (sub.l)])
     31fi
     32
    2033# Explicitly list all Makefiles here
    2134AC_CONFIG_FILES([Makefile])
  • c/src/lib/libbsp/moxie/moxiesim/start/start.S

    r5759510 r5139d21  
    1 /* Copyright (C) 2011, 2013  Anthony Green */
     1/* Copyright (C) 2011, 2013, 2014  Anthony Green */
    22
    33/* moxie start up file. */
    44
     5#include "bspopts.h"
     6
     7#if defined(HAVE_OLD_MOXIE_ASM)
     8#define sub sub.l
     9#endif
     10       
    511        .text
    612        .global _start
     
    1319        xor     $r1, $r1
    1420        ldi.l   $r2, __bss_end__
    15         sub.l   $r2, $r0
     21        sub     $r2, $r0
    1622        jsra    memset
    1723
Note: See TracChangeset for help on using the changeset viewer.