dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / mdb / i86pc / modules / unix / unix_sup.s
blob24e32db4b2c52bcf87a92387698a8ada39833b64
1 /*
2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
5 * 1.0 of the CDDL.
7 * A full copy of the text of the CDDL should have accompanied this
8 * source. A copy of the CDDL is also available via the Internet at
9 * http://www.illumos.org/license/CDDL.
13 * Copyright 2015 Joyent, Inc.
16 .file "unix_sup.s"
19 * Support routines for the unix kmdb module
22 #include <sys/asm_linkage.h>
25 #if defined(__amd64)
26 ENTRY(kmdb_unix_getcr0)
27 movq %cr0, %rax
28 ret
29 SET_SIZE(kmdb_unix_getcr0)
31 ENTRY(kmdb_unix_getcr4)
32 movq %cr4, %rax
33 ret
34 SET_SIZE(kmdb_unix_getcr4)
36 #elif defined (__i386)
37 ENTRY(kmdb_unix_getcr0)
38 movl %cr0, %eax
39 ret
40 SET_SIZE(kmdb_unix_getcr0)
42 ENTRY(kmdb_unix_getcr4)
43 movl %cr4, %eax
44 ret
45 SET_SIZE(kmdb_unix_getcr4)
47 #endif /* __i386 */