diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-06-06 12:38:42 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-06-06 12:38:42 -0700 |
commit | 6389a53252be6f3eaf8248ee6d58dff88697aad0 (patch) | |
tree | 6fc64e26c4ff906e42fd7b87de33d6d575826871 /memdisk/memdisk.h | |
parent | 6ecbbad5bfee20dddccdbe0629125c7b6ca41211 (diff) | |
download | syslinux-6389a53252be6f3eaf8248ee6d58dff88697aad0.tar.gz |
MEMDISK: Use aligning memcpy/memset, compile with -mregparm=3syslinux-3.70-pre14
Use the aligning memcpy/memset from libcom32. Switch memdisk to
compiling with -mregparm=3, except for the interfaces to assembly.
Diffstat (limited to 'memdisk/memdisk.h')
-rw-r--r-- | memdisk/memdisk.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/memdisk/memdisk.h b/memdisk/memdisk.h index ad650e54..bb2057de 100644 --- a/memdisk/memdisk.h +++ b/memdisk/memdisk.h @@ -25,8 +25,10 @@ /* The real-mode segment */ #define LOW_SEG 0x0800 +#define __cdecl __attribute__((cdecl,regparm(0))) + typedef void (*syscall_t)(uint8_t, com32sys_t *, com32sys_t *); -extern syscall_t syscall; +extern __cdecl syscall_t syscall; extern void *sys_bounce; /* What to call when we're dead */ |