remove assembler interface to xprintf()

This commit is contained in:
Markus Fröschle
2016-11-07 10:55:00 +00:00
parent e67057c21e
commit 0ed03ee328
8 changed files with 965 additions and 996 deletions

View File

@@ -22,8 +22,8 @@
* Author: mfro
*/
#ifndef UTIL_H_
#define UTIL_H_
#ifndef _UTIL_H_
#define _UTIL_H_
#include <bas_types.h>
@@ -118,10 +118,10 @@ __extension__ \
#define regsafe_call(addr) \
__extension__ \
({__asm__ volatile ("lea -60(sp),sp\n\t" \
"movem.l d0-d7/a0-a6,(sp)"); \
"movem.l d0-d7/a0-a6,(sp)"); \
((void (*) (void)) addr)(); \
__asm__ volatile ("movem.l (sp),d0-d7/a0-a6\n\t" \
"lea 60(sp),sp"); \
"lea 60(sp),sp"); \
})