(START_MACHDEP): Add missing backslashes.

(CALL_WITH_SP): Cast FN to long int.
This commit is contained in:
Roland McGrath 1994-12-09 05:47:43 +00:00
parent 8b0538623b
commit 60bbd54df8

View File

@ -21,16 +21,16 @@ Cambridge, MA 02139, USA. */
#define LOSE asm volatile ("call_pal 0") /* halt */
#define START_MACHDEP \
asm ("_start: mov $30, $16\n" /* Put initial SP in a0. */
" br $27, 1f\n" /* Load GP from PC. */
"1: ldgp $29, 0($27)\n"
asm ("_start: mov $30, $16\n" /* Put initial SP in a0. */ \
" br $27, 1f\n" /* Load GP from PC. */ \
"1: ldgp $29, 0($27)\n" \
" jmp $26, _start0"); /* Jump to _start0; don't return. */
#define START_ARGS char **sparg
#define SNARF_ARGS(argc, argv, envp) \
(envp = &(argv = &sparg[1])[(argc = *(int *) sparg) + 1])
#define CALL_WITH_SP(fn, sp) \
({ register long int __fn = fn, __sp = (long int) sp; \
({ register long int __fn = (long int) fn, __sp = (long int) sp; \
asm volatile ("mov %0,$30; jmp $31, %1; ldgp $29, 0(%1)" \
: : "r" (__sp), "r" (__fn)); })