summaryrefslogtreecommitdiff
path: root/com32/include/com32.h
diff options
context:
space:
mode:
authorhpa <hpa>2005-08-09 00:56:02 +0000
committerhpa <hpa>2005-08-09 00:56:02 +0000
commit65d8125e084eda0d29b6ea4a1f20a5a91c51a5e5 (patch)
treeff4c7f0911b3b8f3b24e988cb03d27490805a288 /com32/include/com32.h
parentaa6dd9789db77992917534a074f89089c91ae1f0 (diff)
downloadsyslinux-65d8125e084eda0d29b6ea4a1f20a5a91c51a5e5.tar.gz
Out-of-line __intcall and __farcall; better detection mechanism for CM#2
Diffstat (limited to 'com32/include/com32.h')
-rw-r--r--com32/include/com32.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/com32/include/com32.h b/com32/include/com32.h
index 91799f6b..29656e47 100644
--- a/com32/include/com32.h
+++ b/com32/include/com32.h
@@ -77,20 +77,11 @@ extern struct com32_sys_args {
} __com32;
/*
- * System call macros
+ * System call wrapper functions
*/
-static inline void
-__intcall(uint8_t __i, const com32sys_t *__sr, com32sys_t *__dr)
-{
- __com32.cs_intcall(__i, __sr, __dr);
-}
-
-static inline void
-__farcall(uint16_t __es, uint16_t __eo,
- const com32sys_t *__sr, com32sys_t *__dr)
-{
- __com32.cs_farcall((__es << 16) + __eo, __sr, __dr);
-}
+void __intcall(uint8_t __i, const com32sys_t *__sr, com32sys_t *__dr);
+void __farcall(uint16_t __es, uint16_t __eo,
+ const com32sys_t *__sr, com32sys_t *__dr);
/*
* These functions convert between linear pointers in the range