summaryrefslogtreecommitdiff
path: root/core/rllpack.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-15 10:43:25 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-15 10:43:25 -0700
commitcce8e82b71703b3a9da351839175553e101c61d9 (patch)
tree487b15346524731bd20310243499bbf9fca5552d /core/rllpack.c
parent3f2c5c69f6ad7968818c9cee8c337e4200587caf (diff)
downloadsyslinux-cce8e82b71703b3a9da351839175553e101c61d9.tar.gz
core: add pm_call convenience macro
Add a pm_call convenience macro, instead of using stub routines everywhere. Stubs would still make sense if we have a routine which gets invoked from a lot of places, though, since the pm_call expands to 9 bytes as opposed to 3 bytes per call site plus a 10-byte stub. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/rllpack.c')
-rw-r--r--core/rllpack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/rllpack.c b/core/rllpack.c
index fa504c75..26613916 100644
--- a/core/rllpack.c
+++ b/core/rllpack.c
@@ -31,7 +31,7 @@
#include <stddef.h>
#include <string.h>
-void pm_rllpack(com32sys_t *regs)
+void rllpack(com32sys_t *regs)
{
uint8_t *i = (uint8_t *)(regs->esi.l);
uint8_t *o = (uint8_t *)(regs->edi.l);
@@ -77,7 +77,7 @@ void pm_rllpack(com32sys_t *regs)
regs->edi.l = (size_t)o;
}
-void pm_rllunpack(com32sys_t *regs)
+void rllunpack(com32sys_t *regs)
{
uint8_t *i = (uint8_t *)regs->esi.l;
uint8_t *o = (uint8_t *)regs->edi.l;