aboutsummaryrefslogtreecommitdiffstats
path: root/mk/com32.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/com32.mk')
-rw-r--r--mk/com32.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk/com32.mk b/mk/com32.mk
index 89ede83e..55dc10c2 100644
--- a/mk/com32.mk
+++ b/mk/com32.mk
@@ -48,6 +48,10 @@ GCCOPT += $(call gcc_ok,-falign-jumps=0,-malign-jumps=0)
GCCOPT += $(call gcc_ok,-falign-labels=0,-malign-labels=0)
GCCOPT += $(call gcc_ok,-falign-loops=0,-malign-loops=0)
+ifndef EFI_BUILD
+GCCOPT += -mregparm=3 -DREGPARM=3
+endif
+
com32 := $(topdir)/com32
RELOCS := $(com32)/tools/relocs