summaryrefslogtreecommitdiffhomepage
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-01-16 02:32:54 +0000
committermidipix <writeonce@midipix.org>2017-01-16 01:52:23 -0500
commitcd4191db5ebcb3ca96c5d5eb4336eddd895445bf (patch)
treec4dd168fbb5ef6536671a6ff9c65599b925449a0 /project
parentdf4a224d9c3615b3b160432855b5862d2dc69157 (diff)
downloadntapi-cd4191db5ebcb3ca96c5d5eb4336eddd895445bf.tar.bz2
ntapi-cd4191db5ebcb3ca96c5d5eb4336eddd895445bf.tar.xz
daemon initialization: establish SEH frames for the daemon and internal thread.
Diffstat (limited to 'project')
-rw-r--r--project/arch.mk9
-rw-r--r--project/common.mk1
-rw-r--r--project/tree.mk1
3 files changed, 11 insertions, 0 deletions
diff --git a/project/arch.mk b/project/arch.mk
index 458db3e..7040e88 100644
--- a/project/arch.mk
+++ b/project/arch.mk
@@ -12,6 +12,15 @@ src/process/%.lo: $(SOURCE_DIR)/src/process/$(ARCH)/%.s $(ALL_HEADERS) host.tag
src/process/%.o: $(SOURCE_DIR)/src/process/$(ARCH)/%.s $(ALL_HEADERS) host.tag tree.tag
$(CC) -c -o $@ $<
+# seh
+src/seh/%.lo: $(SOURCE_DIR)/src/seh/$(ARCH)/%.s $(ALL_HEADERS) host.tag tree.tag
+ $(CC) -c -o $@ $< $(CFLAGS_SHARED)
+
+src/seh/%.o: $(SOURCE_DIR)/src/seh/$(ARCH)/%.s $(ALL_HEADERS) host.tag tree.tag
+ $(CC) -c -o $@ $< $(CFLAGS_STATIC)
+
shared-objs-asm: src/process/tt_fork_v1.lo
+shared-objs-asm: src/seh/ntapi_tt_seh_frame.lo
static-objs-asm: src/process/tt_fork_v1.o
+static-objs-asm: src/seh/ntapi_tt_seh_frame.o
diff --git a/project/common.mk b/project/common.mk
index c0e9070..ef8b350 100644
--- a/project/common.mk
+++ b/project/common.mk
@@ -47,6 +47,7 @@ COMMON_SRCS = \
src/pty/ntapi_pty_ioctl.c \
src/pty/ntapi_pty_query.c \
src/pty/ntapi_pty_set.c \
+ src/seh/ntapi_tt_seh_frame.c \
src/section/ntapi_tt_get_section_name.c \
src/socket/ntapi_sc_accept.c \
src/socket/ntapi_sc_bind_v1.c \
diff --git a/project/tree.mk b/project/tree.mk
index baabe2d..9d44b3e 100644
--- a/project/tree.mk
+++ b/project/tree.mk
@@ -14,6 +14,7 @@ tree.tag:
mkdir -p src/process
mkdir -p src/pty
mkdir -p src/section
+ mkdir -p src/seh
mkdir -p src/socket
mkdir -p src/string
mkdir -p src/sync