Changeset f27f3fd in mainline
- Timestamp:
- 2014-08-27T23:27:15Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dd8b6a8
- Parents:
- da904f7 (diff), 8d427a3 (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. - Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
rda904f7 rf27f3fd 66 66 SIZEOK_MAP = generic/src/debug/sizeok_map.o 67 67 68 .PHONY: all clean 68 .PHONY: all clean autogen_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: 73 clean: autogen_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 369 373 LFLAGS_LTO := $(addprefix -Xlinker ,$(LFLAGS)) 370 374 … … 397 401 $(LINK): $(LINK).in $(DEPEND) 398 402 $(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 >$@ 399 408 400 409 %.o: %.S $(DEPEND) … … 441 450 $(GENMAP) $(MAP_PREV) $(DUMP) $@ 442 451 443 $(DEPEND): $(COMMON_HEADER_ARCH) 452 $(DEPEND): $(COMMON_HEADER_ARCH) $(ARCH_AUTOGENS_H) 444 453 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > $@ 2> /dev/null 445 454 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@ … … 447 456 $(COMMON_HEADER_ARCH): $(COMMON_HEADER) 448 457 ln -sfn ../../../../$< $@ 458 459 autogen_clean: 460 -rm $(ARCH_AUTOGENS_H) $(ARCH_AUTOGENS_PROBE_C) $(ARCH_AUTOGENS_PROBE_S) -
kernel/arch/ia32/Makefile.inc
rda904f7 rf27f3fd 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.ag 110 -
kernel/arch/ia32/include/arch/istate.h
rda904f7 rf27f3fd 38 38 #include <trace.h> 39 39 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; 40 #ifdef KERNEL 41 #include <arch/istate_struct.h> 42 #else 43 #include <libarch/istate_struct.h> 44 #endif /* KERNEL */ 69 45 70 46 #define RPL_USER 3 -
kernel/arch/ia32/src/asm.S
rda904f7 rf27f3fd 34 34 #include <arch/cpu.h> 35 35 #include <arch/mm/page.h> 36 #include <arch/istate_struct.h> 36 37 37 38 .text … … 136 137 ret 137 138 138 #define ISTATE_OFFSET_EDX 0139 #define ISTATE_OFFSET_ECX 4140 #define ISTATE_OFFSET_EBX 8141 #define ISTATE_OFFSET_ESI 12142 #define ISTATE_OFFSET_EDI 16143 #define ISTATE_OFFSET_EBP 20144 #define ISTATE_OFFSET_EAX 24145 #define ISTATE_OFFSET_EBP_FRAME 28146 #define ISTATE_OFFSET_EIP_FRAME 32147 #define ISTATE_OFFSET_GS 36148 #define ISTATE_OFFSET_FS 40149 #define ISTATE_OFFSET_ES 44150 #define ISTATE_OFFSET_DS 48151 #define ISTATE_OFFSET_ERROR_WORD 52152 #define ISTATE_OFFSET_EIP 56153 #define ISTATE_OFFSET_CS 60154 #define ISTATE_OFFSET_EFLAGS 64155 #define ISTATE_OFFSET_ESP 68156 #define ISTATE_OFFSET_SS 72157 158 139 /* 159 140 * Size of the istate structure without the hardware-saved part 160 141 * and without the error word. 161 142 */ 162 #define ISTATE_SOFT_SIZE 52143 #define ISTATE_SOFT_SIZE ISTATE_SIZE - (6 * 4) 163 144 164 145 /* -
tools/autotool.py
rda904f7 rf27f3fd 834 834 sandbox_leave(owd) 835 835 836 common['AUTOGEN'] = "%s/autogen.py" % os.path.dirname(os.path.abspath(sys.argv[0])) 837 836 838 create_makefile(MAKEFILE, common) 837 839 create_header(HEADER, maps)
Note:
See TracChangeset
for help on using the changeset viewer.