Changes in / [f27f3fd:da904f7] in mainline


Ignore:
Files:
3 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    rf27f3fd rda904f7  
    6666SIZEOK_MAP = generic/src/debug/sizeok_map.o
    6767
    68 .PHONY: all clean autogen_clean
     68.PHONY: all clean
    6969
    7070all: $(VERSION_DEF) $(COMMON_MAKEFILE) $(COMMON_HEADER) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(BIN) $(DISASM)
    7171        -[ -f $(DEPEND) ] && cp -a $(DEPEND) $(DEPEND_PREV)
    7272
    73 clean: autogen_clean
     73clean:
    7474        rm -f $(DEPEND) $(DEPEND_PREV) $(RAW) $(BIN) $(MAP) $(JOB) $(MAP_PREV) $(DISASM) $(DUMP) $(REAL_MAP).* arch/*/_link.ld arch/*/include/arch/common.h
    75         find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm '{}' \;
     75        find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \;
    7676
    7777## Common compiler flags
     
    367367GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES)))
    368368
    369 ARCH_AUTOGENS_H := $(addsuffix .h,$(basename $(ARCH_AUTOGENS_AG)))
    370 ARCH_AUTOGENS_PROBE_C := $(addsuffix .ag.probe.c,$(basename $(ARCH_AUTOGENS_AG)))
    371 ARCH_AUTOGENS_PROBE_S := $(addsuffix .ag.probe.s,$(basename $(ARCH_AUTOGENS_AG)))
    372 
    373369LFLAGS_LTO := $(addprefix -Xlinker ,$(LFLAGS))
    374370
     
    401397$(LINK): $(LINK).in $(DEPEND)
    402398        $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@
    403 
    404 %.h: %.ag
    405         $(AUTOGEN) probe $< >$<.probe.c
    406         $(GCC) $(DEFS) $(GCC_CFLAGS) -S -o $<.probe.s $<.probe.c
    407         $(AUTOGEN) generate $< <$<.probe.s >$@   
    408399
    409400%.o: %.S $(DEPEND)
     
    450441        $(GENMAP) $(MAP_PREV) $(DUMP) $@
    451442
    452 $(DEPEND): $(COMMON_HEADER_ARCH) $(ARCH_AUTOGENS_H)
     443$(DEPEND): $(COMMON_HEADER_ARCH)
    453444        makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > $@ 2> /dev/null
    454445        -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
     
    456447$(COMMON_HEADER_ARCH): $(COMMON_HEADER)
    457448        ln -sfn ../../../../$< $@
    458 
    459 autogen_clean:
    460         -rm $(ARCH_AUTOGENS_H) $(ARCH_AUTOGENS_PROBE_C) $(ARCH_AUTOGENS_PROBE_S)
  • kernel/arch/ia32/Makefile.inc

    rf27f3fd rda904f7  
    105105        arch/$(KARCH)/src/fpu_context.c \
    106106        arch/$(KARCH)/src/syscall.c
    107 
    108 ARCH_AUTOGENS_AG = \
    109         arch/$(KARCH)/include/arch/istate_struct.ag
    110 
  • kernel/arch/ia32/include/arch/istate.h

    rf27f3fd rda904f7  
    3838#include <trace.h>
    3939
    40 #ifdef KERNEL
    41 #include <arch/istate_struct.h>
    42 #else
    43 #include <libarch/istate_struct.h>
    44 #endif /* KERNEL */
     40typedef struct istate {
     41        /*
     42         * The strange order of the GPRs is given by the requirement to use the
     43         * istate structure for both regular interrupts and exceptions as well
     44         * as for syscall handlers which use this order as an optimization.
     45         */
     46        uint32_t edx;
     47        uint32_t ecx;
     48        uint32_t ebx;
     49        uint32_t esi;
     50        uint32_t edi;
     51        uint32_t ebp;
     52        uint32_t eax;
     53       
     54        uint32_t ebp_frame;  /* imitation of frame pointer linkage */
     55        uint32_t eip_frame;  /* imitation of return address linkage */
     56       
     57        uint32_t gs;
     58        uint32_t fs;
     59        uint32_t es;
     60        uint32_t ds;
     61       
     62        uint32_t error_word;  /* real or fake error word */
     63        uint32_t eip;
     64        uint32_t cs;
     65        uint32_t eflags;
     66        uint32_t esp;         /* only if istate_t is from uspace */
     67        uint32_t ss;          /* only if istate_t is from uspace */
     68} istate_t;
    4569
    4670#define RPL_USER        3
  • kernel/arch/ia32/src/asm.S

    rf27f3fd rda904f7  
    3434#include <arch/cpu.h>
    3535#include <arch/mm/page.h>
    36 #include <arch/istate_struct.h>
    3736
    3837.text
     
    137136        ret
    138137
     138#define ISTATE_OFFSET_EDX         0
     139#define ISTATE_OFFSET_ECX         4
     140#define ISTATE_OFFSET_EBX         8
     141#define ISTATE_OFFSET_ESI         12
     142#define ISTATE_OFFSET_EDI         16
     143#define ISTATE_OFFSET_EBP         20
     144#define ISTATE_OFFSET_EAX         24
     145#define ISTATE_OFFSET_EBP_FRAME   28
     146#define ISTATE_OFFSET_EIP_FRAME   32
     147#define ISTATE_OFFSET_GS          36
     148#define ISTATE_OFFSET_FS          40
     149#define ISTATE_OFFSET_ES          44
     150#define ISTATE_OFFSET_DS          48
     151#define ISTATE_OFFSET_ERROR_WORD  52
     152#define ISTATE_OFFSET_EIP         56
     153#define ISTATE_OFFSET_CS          60
     154#define ISTATE_OFFSET_EFLAGS      64
     155#define ISTATE_OFFSET_ESP         68
     156#define ISTATE_OFFSET_SS          72
     157
    139158/*
    140159 * Size of the istate structure without the hardware-saved part
    141160 * and without the error word.
    142161 */
    143 #define ISTATE_SOFT_SIZE        ISTATE_SIZE - (6 * 4)
     162#define ISTATE_SOFT_SIZE  52
    144163
    145164/*
  • tools/autotool.py

    rf27f3fd rda904f7  
    834834                sandbox_leave(owd)
    835835       
    836         common['AUTOGEN'] = "%s/autogen.py" % os.path.dirname(os.path.abspath(sys.argv[0]))
    837 
    838836        create_makefile(MAKEFILE, common)
    839837        create_header(HEADER, maps)
Note: See TracChangeset for help on using the changeset viewer.