Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martyn Welch
linux
Commits
a76f9fe1
Commit
a76f9fe1
authored
19 years ago
by
Maciej W. Rozycki
Committed by
Ralf Baechle
19 years ago
Browse files
Options
Downloads
Patches
Plain Diff
GCC 4.0.0 broke `attribute(("alias"))' -- resort to an assembly variant.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
3bd4c902
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/asm-mips/dec/prom.h
+15
-13
15 additions, 13 deletions
include/asm-mips/dec/prom.h
with
15 additions
and
13 deletions
include/asm-mips/dec/prom.h
+
15
−
13
View file @
a76f9fe1
...
...
@@ -111,19 +111,21 @@ extern int (*__pmax_close)(int);
* On MIPS64 we have to call PROM functions via a helper
* dispatcher to accomodate ABI incompatibilities.
*/
#define __DEC_PROM_O32 __attribute__((alias("call_o32")))
int
_rex_bootinit
(
int
(
*
)(
void
))
__DEC_PROM_O32
;
int
_rex_bootread
(
int
(
*
)(
void
))
__DEC_PROM_O32
;
int
_rex_getbitmap
(
int
(
*
)(
memmap
*
),
memmap
*
)
__DEC_PROM_O32
;
unsigned
long
*
_rex_slot_address
(
unsigned
long
*
(
*
)(
int
),
int
)
__DEC_PROM_O32
;
void
*
_rex_gettcinfo
(
void
*
(
*
)(
void
))
__DEC_PROM_O32
;
int
_rex_getsysid
(
int
(
*
)(
void
))
__DEC_PROM_O32
;
void
_rex_clear_cache
(
void
(
*
)(
void
))
__DEC_PROM_O32
;
int
_prom_getchar
(
int
(
*
)(
void
))
__DEC_PROM_O32
;
char
*
_prom_getenv
(
char
*
(
*
)(
char
*
),
char
*
)
__DEC_PROM_O32
;
int
_prom_printf
(
int
(
*
)(
char
*
,
...),
char
*
,
...)
__DEC_PROM_O32
;
#define __DEC_PROM_O32(fun, arg) fun arg __asm__(#fun); \
__asm__(#fun " = call_o32")
int
__DEC_PROM_O32
(
_rex_bootinit
,
(
int
(
*
)(
void
)));
int
__DEC_PROM_O32
(
_rex_bootread
,
(
int
(
*
)(
void
)));
int
__DEC_PROM_O32
(
_rex_getbitmap
,
(
int
(
*
)(
memmap
*
),
memmap
*
));
unsigned
long
*
__DEC_PROM_O32
(
_rex_slot_address
,
(
unsigned
long
*
(
*
)(
int
),
int
));
void
*
__DEC_PROM_O32
(
_rex_gettcinfo
,
(
void
*
(
*
)(
void
)));
int
__DEC_PROM_O32
(
_rex_getsysid
,
(
int
(
*
)(
void
)));
void
__DEC_PROM_O32
(
_rex_clear_cache
,
(
void
(
*
)(
void
)));
int
__DEC_PROM_O32
(
_prom_getchar
,
(
int
(
*
)(
void
)));
char
*
__DEC_PROM_O32
(
_prom_getenv
,
(
char
*
(
*
)(
char
*
),
char
*
));
int
__DEC_PROM_O32
(
_prom_printf
,
(
int
(
*
)(
char
*
,
...),
char
*
,
...));
#define rex_bootinit() _rex_bootinit(__rex_bootinit)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment