source: trunk/src/win32k/include/asmutils.h@ 21916

Last change on this file since 21916 was 21916, checked in by dmik, 14 years ago

Merge branch gcc-kmk to trunk.

File size: 1.1 KB
Line 
1/* $Id: asmutils.h,v 1.4 2000-01-24 18:18:59 bird Exp $
2 *
3 * Assembly utilities.
4 *
5 * Copyright (c) 1998-1999 knut st. osmundsen
6 *
7 * Project Odin Software License can be found in LICENSE.TXT
8 *
9 */
10#ifndef _asmutils_h_
11#define _asmutils_h_
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17extern unsigned short _System GetCS(void);
18extern unsigned short _System GetDS(void);
19extern unsigned short _System GetES(void);
20extern unsigned short _System GetFS(void);
21extern unsigned short _System GetGS(void);
22extern unsigned short _System GetSS(void);
23
24extern void _System DisableInterrupts(void); /* uniprocessor only */
25extern void _System EnableInterrupts(void); /* uniprocessor only */
26
27#if 0
28 //extern void _System Int3(void);
29 extern int _System Int3(void);
30#else
31#ifdef __GNUC__
32 #define _Inline static inline
33 #define __interrupt(n) ({ __asm__ __volatile__ ("int" #n "\n\tnop"); })
34#else
35 #include <builtin.h>
36#endif
37 #define Int3() __interrupt(3)
38#endif
39
40//Negative offsets don't work yet?
41extern void __stdcall memmov(void *p, signed int off, unsigned int len);
42
43#ifdef __cplusplus
44}
45#endif
46#endif
47
Note: See TracBrowser for help on using the repository browser.