Changeset 10ae124c in rtems


Ignore:
Timestamp:
Apr 5, 2004, 6:12:14 AM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
411b065
Parents:
7220366a
Message:

2004-04-05 Ralf Corsepius <ralf_corsepius@…>

  • configure.ac: Add AC_CHECK_SIZEOF([CPU_CONTEXT]..). Add SIZEOF_CPU_CONTEXT to cpuopts.h. Add RTEMS_PROG_CCAS.
  • acinclude.m4: Use unquoted "here" document to propagate $3 to cpuopts.tmp.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r7220366a r10ae124c  
     12004-04-05      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * configure.ac: Add AC_CHECK_SIZEOF([CPU_CONTEXT]..).
     4        Add SIZEOF_CPU_CONTEXT to cpuopts.h.
     5        Add RTEMS_PROG_CCAS.
     6        * acinclude.m4: Use unquoted "here" document to propagate $3 to
     7        cpuopts.tmp.
     8
    192004-04-02      Ralf Corsepius <ralf_corsepius@rtems.org>
    210
  • cpukit/acinclude.m4

    r7220366a r10ae124c  
    44[
    55  if $2; then
    6 cat >>cpuopts.tmp <<\_ACEOF
     6cat >>cpuopts.tmp <<_ACEOF
    77
    88/* $4 */
  • cpukit/configure.ac

    r7220366a r10ae124c  
    3333
    3434RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
     35RTEMS_PROG_CCAS
    3536RTEMS_CANONICALIZE_TOOLS
    3637AM_PROG_CC_C_O
     
    9091AC_CHECK_FUNCS([isascii fileno])
    9192
     93AS_IF([test x"${RTEMS_CPU}" = x"unix"],[
     94## The code fragment below had been used in tools/cpu/unix/gensize.c.
     95## FIXME:
     96## * The pad very likely is not necessary.
     97AC_CHECK_SIZEOF([CPU_CONTEXT],[],[
     98#include <stdio.h>
     99#include <setjmp.h>
     100
     101typedef struct {
     102  jmp_buf     regs;
     103  int         isr_level;
     104  int         pad[4]; /* just in case */
     105} CPU_CONTEXT;
     106])
     107])
     108
    92109cat >>cpuopts.tmp <<\_ACEOF
    93110/* target cpu dependent options file */
     
    146163  ["]_RTEMS_VERSION["],
    147164  [RTEMS version string])
     165
     166RTEMS_CPUOPT([SIZEOF_CPU_CONTEXT],
     167  [test x"$RTEMS_CPU" = x"unix"],
     168  [$ac_cv_sizeof_CPU_CONTEXT],
     169  [The size of a 'CPU_CONTEXT', as computed by sizeof])
    148170
    149171cat >>cpuopts.tmp <<\_ACEOF
Note: See TracChangeset for help on using the changeset viewer.