aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2024-03-22 11:33:41 +0100
committerHelge Deller <deller@gmx.de>2024-04-02 14:22:45 +0200
commitfe15f9300e42096d84506e654b2a7aea93430a6c (patch)
tree05f7589d596c3fefd6d764ab03ff2c5855eb485b
parent8a5461ea94197077630ef1add4574984ea626a6c (diff)
downloadseabios-hppa-fe15f9300e42096d84506e654b2a7aea93430a6c.zip
seabios-hppa-fe15f9300e42096d84506e654b2a7aea93430a6c.tar.gz
seabios-hppa-fe15f9300e42096d84506e654b2a7aea93430a6c.tar.bz2
parisc: Drop FUNC_MANY_ARGS parameter
This parameter was intended to make sure that the compiler saves registers on the stack and prevents possible register corruption. But this isn't needed and doesn't help, so just remove it. Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--src/parisc/parisc.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c
index 4317460..1a0c97e 100644
--- a/src/parisc/parisc.c
+++ b/src/parisc/parisc.c
@@ -1118,12 +1118,7 @@ void iodc_log_call(unsigned int *arg, const char *func)
}
}
-#define FUNC_MANY_ARGS , \
- int a0, int a1, int a2, int a3, int a4, int a5, int a6, \
- int a7, int a8, int a9, int a10, int a11, int a12
-
-
-int __VISIBLE parisc_iodc_ENTRY_IO(unsigned int *arg FUNC_MANY_ARGS)
+int __VISIBLE parisc_iodc_ENTRY_IO(unsigned int *arg)
{
unsigned long hpa = COMPAT_VAL(ARG0);
unsigned long option = ARG1;
@@ -1238,7 +1233,7 @@ int __VISIBLE parisc_iodc_ENTRY_IO(unsigned int *arg FUNC_MANY_ARGS)
}
-int __VISIBLE parisc_iodc_ENTRY_INIT(unsigned int *arg FUNC_MANY_ARGS)
+int __VISIBLE parisc_iodc_ENTRY_INIT(unsigned int *arg)
{
unsigned long hpa = COMPAT_VAL(ARG0);
unsigned long option = ARG1;
@@ -1282,20 +1277,20 @@ int __VISIBLE parisc_iodc_ENTRY_INIT(unsigned int *arg FUNC_MANY_ARGS)
return PDC_BAD_OPTION;
}
-int __VISIBLE parisc_iodc_ENTRY_SPA(unsigned int *arg FUNC_MANY_ARGS)
+int __VISIBLE parisc_iodc_ENTRY_SPA(unsigned int *arg)
{
iodc_log_call(arg, __FUNCTION__);
return PDC_BAD_OPTION;
}
-int __VISIBLE parisc_iodc_ENTRY_CONFIG(unsigned int *arg FUNC_MANY_ARGS)
+int __VISIBLE parisc_iodc_ENTRY_CONFIG(unsigned int *arg)
{
iodc_log_call(arg, __FUNCTION__);
// BUG_ON(1);
return PDC_BAD_OPTION;
}
-int __VISIBLE parisc_iodc_ENTRY_TEST(unsigned int *arg FUNC_MANY_ARGS)
+int __VISIBLE parisc_iodc_ENTRY_TEST(unsigned int *arg)
{
unsigned long hpa = COMPAT_VAL(ARG0);
unsigned long option = ARG1;
@@ -1325,7 +1320,7 @@ int __VISIBLE parisc_iodc_ENTRY_TEST(unsigned int *arg FUNC_MANY_ARGS)
return PDC_BAD_OPTION;
}
-int __VISIBLE parisc_iodc_ENTRY_TLB(unsigned int *arg FUNC_MANY_ARGS)
+int __VISIBLE parisc_iodc_ENTRY_TLB(unsigned int *arg)
{
unsigned long option = ARG1;
unsigned int *result = (unsigned int *)ARG4;
@@ -2369,7 +2364,7 @@ static int pdc_pat_mem(unsigned long *arg)
}
-int __VISIBLE parisc_pdc_entry(unsigned long *arg FUNC_MANY_ARGS)
+int __VISIBLE parisc_pdc_entry(unsigned long *arg)
{
unsigned long proc = ARG0;
unsigned long option = ARG1;