diff options
author | midipix <writeonce@midipix.org> | 2015-04-05 17:05:57 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-04-05 17:05:57 -0400 |
commit | 296178913c5dfbc2b35842fc16ed680ef51fd402 (patch) | |
tree | 6720928dbc03c3d656229d2509eda38f6eb0628b /src/thread/nt32/syscall_cp.s | |
parent | 20a5ca45ef2f5716e8f2dea42c7e8a6b3367619f (diff) | |
download | mmglue-296178913c5dfbc2b35842fc16ed680ef51fd402.tar.bz2 mmglue-296178913c5dfbc2b35842fc16ed680ef51fd402.tar.xz |
nt32: initial commit of core port files.
signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
Diffstat (limited to 'src/thread/nt32/syscall_cp.s')
-rw-r--r-- | src/thread/nt32/syscall_cp.s | 15 |
1 files changed, 15 insertions, 0 deletions
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 |