From 296178913c5dfbc2b35842fc16ed680ef51fd402 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 5 Apr 2015 17:05:57 -0400 Subject: nt32: initial commit of core port files. signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information. --- src/thread/nt32/syscall_cp.s | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/thread/nt32/syscall_cp.s (limited to 'src/thread/nt32/syscall_cp.s') diff --git a/src/thread/nt32/syscall_cp.s b/src/thread/nt32/syscall_cp.s new file mode 100644 index 0000000..c52731f --- /dev/null +++ b/src/thread/nt32/syscall_cp.s @@ -0,0 +1,15 @@ +.text +.globl ___syscall_cp_asm +.globl ___cp_begin +.globl ___cp_end + +___syscall_cp_asm: +___cp_begin: + mov (%ecx), %ecx /* check content of ptr */ + test %ecx, %ecx + jnz ___cancel /* thread is pending cancellation */ + + jmp ___syscall + +___cp_end: + ret -- cgit v1.2.3