Ignore:
Timestamp:
2014-09-12T13:22:33Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b20126
Parents:
8db09e4 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/amd64/include/libarch/fibril_context.ag

    r8db09e4 r15d0046  
    1 #
    2 # Copyright (c) 2011 Jiri Zarevucky
     1# Copyright (c) 2014 Jakub Jermar
    32# All rights reserved.
    43#
     
    2726#
    2827
    29 USPACE_PREFIX = ../../../..
    30 MIPDIR = ../../mip
    31 MDIR = ../../arch/$(PLATFORM)
    32 OSDIR = ../../os/helenos
    33 EXTRA_CFLAGS = -I$(MIPDIR) -I$(MDIR) -I$(OSDIR) -I. -w
    34 DEFS = -Dmach_$(PLATFORM) -D__helenos__ -DPCC_DEBUG -DGCC_COMPAT -Dfree=free
    35 LIBS = $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a
    36 BINARY = ccom
     28{
     29        name : context,
    3730
    38 PRE_DEPEND = cgram.c scan.c external.c external.h common.c compat.c
    39 EXTRA_CLEAN = cgram.c cgram.h scan.c external.c external.h common.c compat.c \
    40         $(MIPDIR)/*.o $(MDIR)/*.o
     31        includes : [
     32                {
     33                        include : <sys/types.h>
     34                }
     35        ],
    4136
    42 POSIX_COMPAT = y
     37        members : [
     38                #
     39                # We include only registers that must be preserved
     40                # during function call.
     41                #
    4342
    44 # FIXME: external.{c,h} must be generated for each target system
     43                {
     44                        name : sp,
     45                        type : uint64_t
     46                },
     47                {
     48                        name : pc,
     49                        type : uint64_t
     50                },
    4551
    46 SOURCES = \
    47         external.c \
    48         $(MDIR)/local.c \
    49         $(MDIR)/local2.c \
    50         $(MDIR)/code.c \
    51         $(MDIR)/order.c \
    52         $(MDIR)/table.c \
    53         $(MIPDIR)/match.c \
    54         $(MIPDIR)/reader.c \
    55         $(MIPDIR)/optim2.c \
    56         $(MIPDIR)/regs.c \
    57         common.c \
    58         compat.c \
    59         cgram.c \
    60         scan.c \
    61         builtins.c \
    62         gcc_compat.c \
    63         init.c \
    64         inline.c \
    65         main.c \
    66         optim.c \
    67         pftn.c \
    68         softfloat.c \
    69         stabs.c \
    70         symtabs.c \
    71         trees.c
     52                {
     53                        name : rbx,
     54                        type : uint64_t
     55                },
     56                {
     57                        name : rbp,
     58                        type : uint64_t
     59                },
    7260
    73 include $(USPACE_PREFIX)/Makefile.common
     61                {
     62                        name : r12,
     63                        type : uint64_t
     64                },
     65                {
     66                        name : r13,
     67                        type : uint64_t
     68                },
     69                {
     70                        name : r14,
     71                        type : uint64_t
     72                },
     73                {
     74                        name : r15,
     75                        type : uint64_t
     76                },
    7477
    75 cgram.c: cgram.y
    76         $(YACC) $(YFLAGS) -d $<
    77         mv y.tab.c cgram.c
    78         mv y.tab.h cgram.h
    79 
    80 scan.c: scan.l cgram.c
    81         $(LEX) $(LFLAGS) $<
    82         mv lex.yy.c scan.c
    83 
    84 compat.c: $(MIPDIR)/compat.c
    85         ln -s -f $^ $@
    86 
    87 common.c: $(MIPDIR)/common.c
    88         ln -s -f $^ $@
    89 
    90 external.c: arch/$(PLATFORM)/external.c
    91         ln -s -f $^ $@
    92 
    93 external.h: arch/$(PLATFORM)/external.h
    94         ln -s -f $^ $@
    95 
     78                {
     79                        name : tls,
     80                        type : uint64_t
     81                }
     82        ]
     83}
Note: See TracChangeset for help on using the changeset viewer.