summaryrefslogtreecommitdiff
path: root/nasmlib.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-04-17 20:23:11 +0000
committerH. Peter Anvin <hpa@zytor.com>2007-04-17 20:23:11 +0000
commit0db11e236b7820f8ec6c2fd1846b17099e4f9386 (patch)
tree99ae4d866c3a816b77bb958cef473a76d4bab494 /nasmlib.h
parentfd626d6770e5dc10b754d6029949ab15ba1e6504 (diff)
downloadnasm-0db11e236b7820f8ec6c2fd1846b17099e4f9386.tar.gz
nasm-0db11e236b7820f8ec6c2fd1846b17099e4f9386.tar.bz2
nasm-0db11e236b7820f8ec6c2fd1846b17099e4f9386.zip
Handle "LOCK as REX.R" for MOV CRx; fix warning for invalid 64-bit regs
- MOV gpr,CRx or MOV CRx,gpr can access high control registers with a LOCK prefix; handle that in both the assembler and disassembler. - Get a saner error message when trying to access high resources in non-64-bit mode.
Diffstat (limited to 'nasmlib.h')
-rw-r--r--nasmlib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/nasmlib.h b/nasmlib.h
index f6e4a3b..7dec54d 100644
--- a/nasmlib.h
+++ b/nasmlib.h
@@ -271,4 +271,6 @@ void null_debug_routine(const char *directive, const char *params);
extern struct dfmt null_debug_form;
extern struct dfmt *null_debug_arr[2];
+const char *prefix_name(int);
+
#endif