source: branches/gcc-kmk/src/kernel32/asmutil.h@ 21783

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

Use underscores for symbols defined in .asm as they are cdecl.

IBM VAC seemed to detect they are ASM and not use underscores
when referencing them from C.

File size: 923 bytes
Line 
1/* $Id: asmutil.h,v 1.2 2003-03-27 14:13:10 sandervl Exp $ */
2
3/*
4 * Misc assembly functions for OS/2
5 * Copyright 1998-2000 Sander van Leeuwen
6 *
7 * Project Odin Software License can be found in LICENSE.TXT
8 */
9#ifndef __ASMUTIL_H__
10#define __ASMUTIL_H__
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16ULONG CDECL getEAX();
17ULONG CDECL getEBX();
18ULONG CDECL getESP();
19USHORT CDECL getSS();
20USHORT CDECL getDS();
21USHORT CDECL getCS();
22USHORT CDECL getSS();
23USHORT CDECL getES();
24USHORT CDECL getFS();
25USHORT CDECL getGS();
26
27void CDECL Mul32x32to64(PVOID result, DWORD op1, DWORD op2);
28void CDECL Sub64(LARGE_INTEGER *a, LARGE_INTEGER *b, LARGE_INTEGER *result);
29void CDECL Add64(LARGE_INTEGER *a, LARGE_INTEGER *b, LARGE_INTEGER *result);
30
31
32void CDECL set_bit(int bitnr, void *addr);
33void CDECL clear_bit(int bitnr, void *addr);
34int CDECL test_bit(int bitnr, void *addr);
35
36#ifdef __cplusplus
37}
38#endif
39
40#endif //__ASMUTIL_H__
Note: See TracBrowser for help on using the repository browser.