Changes in / [f27f3fd:da904f7] in mainline
- Files:
-
- 3 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
rf27f3fd rda904f7 66 66 SIZEOK_MAP = generic/src/debug/sizeok_map.o 67 67 68 .PHONY: all clean autogen_clean68 .PHONY: all clean 69 69 70 70 all: $(VERSION_DEF) $(COMMON_MAKEFILE) $(COMMON_HEADER) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(BIN) $(DISASM) 71 71 -[ -f $(DEPEND) ] && cp -a $(DEPEND) $(DEPEND_PREV) 72 72 73 clean: autogen_clean73 clean: 74 74 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 \{\} \; 76 76 77 77 ## Common compiler flags … … 367 367 GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES))) 368 368 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 373 369 LFLAGS_LTO := $(addprefix -Xlinker ,$(LFLAGS)) 374 370 … … 401 397 $(LINK): $(LINK).in $(DEPEND) 402 398 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@ 403 404 %.h: %.ag405 $(AUTOGEN) probe $< >$<.probe.c406 $(GCC) $(DEFS) $(GCC_CFLAGS) -S -o $<.probe.s $<.probe.c407 $(AUTOGEN) generate $< <$<.probe.s >$@408 399 409 400 %.o: %.S $(DEPEND) … … 450 441 $(GENMAP) $(MAP_PREV) $(DUMP) $@ 451 442 452 $(DEPEND): $(COMMON_HEADER_ARCH) $(ARCH_AUTOGENS_H)443 $(DEPEND): $(COMMON_HEADER_ARCH) 453 444 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > $@ 2> /dev/null 454 445 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@ … … 456 447 $(COMMON_HEADER_ARCH): $(COMMON_HEADER) 457 448 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 105 105 arch/$(KARCH)/src/fpu_context.c \ 106 106 arch/$(KARCH)/src/syscall.c 107 108 ARCH_AUTOGENS_AG = \109 arch/$(KARCH)/include/arch/istate_struct.ag110 -
kernel/arch/ia32/include/arch/istate.h
rf27f3fd rda904f7 38 38 #include <trace.h> 39 39 40 #ifdef KERNEL 41 #include <arch/istate_struct.h> 42 #else 43 #include <libarch/istate_struct.h> 44 #endif /* KERNEL */ 40 typedef 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; 45 69 46 70 #define RPL_USER 3 -
kernel/arch/ia32/src/asm.S
rf27f3fd rda904f7 34 34 #include <arch/cpu.h> 35 35 #include <arch/mm/page.h> 36 #include <arch/istate_struct.h>37 36 38 37 .text … … 137 136 ret 138 137 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 139 158 /* 140 159 * Size of the istate structure without the hardware-saved part 141 160 * and without the error word. 142 161 */ 143 #define ISTATE_SOFT_SIZE ISTATE_SIZE - (6 * 4)162 #define ISTATE_SOFT_SIZE 52 144 163 145 164 /* -
tools/autotool.py
rf27f3fd rda904f7 834 834 sandbox_leave(owd) 835 835 836 common['AUTOGEN'] = "%s/autogen.py" % os.path.dirname(os.path.abspath(sys.argv[0]))837 838 836 create_makefile(MAKEFILE, common) 839 837 create_header(HEADER, maps)
Note:
See TracChangeset
for help on using the changeset viewer.