2002-04-17 Joel Sherrill <joel@OARcorp.com>
* sparc/cygmon-salib.c, sparc/erc32-stub.c: Don't use multi-line strings.
This commit is contained in:
parent
7eb5439840
commit
99ad0c63ae
@ -1,3 +1,8 @@
|
|||||||
|
2002-04-17 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* sparc/cygmon-salib.c, sparc/erc32-stub.c: Don't use multi-line
|
||||||
|
strings.
|
||||||
|
|
||||||
2002-04-16 Jeff Johnston <jjohnstn@redhat.com>
|
2002-04-16 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
* m68k/configure.in: Change to use LIB_AC_PROG_CC instead
|
* m68k/configure.in: Change to use LIB_AC_PROG_CC instead
|
||||||
|
@ -7,9 +7,9 @@ void
|
|||||||
putTtyChar(int c)
|
putTtyChar(int c)
|
||||||
{
|
{
|
||||||
/* 2 is fork under solaris; bad juju */
|
/* 2 is fork under solaris; bad juju */
|
||||||
asm(" mov %i0,%o0
|
asm(" mov %i0,%o0 \n\
|
||||||
or %g0,2,%g1
|
or %g0,2,%g1 \n\
|
||||||
ta 8
|
ta 8 \n\
|
||||||
nop");
|
nop");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -20,8 +20,8 @@ write(int fd,char *ptr,int amt)
|
|||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
asm(" or %g0, 4, %g1
|
asm(" or %g0, 4, %g1 \n\
|
||||||
ta 8
|
ta 8 \n\
|
||||||
nop");
|
nop");
|
||||||
return amt;
|
return amt;
|
||||||
}
|
}
|
||||||
@ -33,8 +33,8 @@ read(int fd,char *ptr,int amt)
|
|||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
asm(" or %g0, 3, %g1
|
asm(" or %g0, 3, %g1 \n\
|
||||||
ta 8
|
ta 8 \n\
|
||||||
nop");
|
nop");
|
||||||
return amt;
|
return amt;
|
||||||
}
|
}
|
||||||
@ -43,19 +43,19 @@ void
|
|||||||
_exit(int code)
|
_exit(int code)
|
||||||
{
|
{
|
||||||
while(1) {
|
while(1) {
|
||||||
asm(" or %g0,1,%g1
|
asm(" or %g0,1,%g1 \n\
|
||||||
ta 8
|
ta 8 \n\
|
||||||
nop
|
nop \n\
|
||||||
ta 1
|
ta 1 \n\
|
||||||
nop");
|
nop");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
setitimer(int which, const struct itimerval *value, struct itimerval *ovalue)
|
setitimer(int which, const struct itimerval *value, struct itimerval *ovalue)
|
||||||
{
|
{
|
||||||
asm(" or %g0, 158, %g1
|
asm(" or %g0, 158, %g1 \n\
|
||||||
ta 8
|
ta 8 \n\
|
||||||
nop");
|
nop");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,8 +138,8 @@ isatty(int fd)
|
|||||||
int
|
int
|
||||||
kill (int pid, int signal)
|
kill (int pid, int signal)
|
||||||
{
|
{
|
||||||
asm ("or %g0, 37, %g1
|
asm ("or %g0, 37, %g1 \n\
|
||||||
ta 8
|
ta 8 \n\
|
||||||
nop");
|
nop");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -152,50 +152,50 @@ getpid ()
|
|||||||
int
|
int
|
||||||
getitimer (int which, struct itimerval *value)
|
getitimer (int which, struct itimerval *value)
|
||||||
{
|
{
|
||||||
asm ("or %g0, 157, %g1
|
asm ("or %g0, 157, %g1 \n\
|
||||||
ta 8
|
ta 8 \n\
|
||||||
nop");
|
nop");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
__install_signal_handler (void *func)
|
__install_signal_handler (void *func)
|
||||||
{
|
{
|
||||||
asm ("mov %o0, %o1
|
asm ("mov %o0, %o1 \n\
|
||||||
mov %g0, %o0
|
mov %g0, %o0 \n\
|
||||||
or %g0, 48, %g1
|
or %g0, 48, %g1 \n\
|
||||||
ta 8
|
ta 8 \n\
|
||||||
nop");
|
nop");
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
gettimeofday (struct timeval *tp, struct timezone *tzp)
|
gettimeofday (struct timeval *tp, struct timezone *tzp)
|
||||||
{
|
{
|
||||||
asm ("or %g0, 156, %g1
|
asm ("or %g0, 156, %g1 \n\
|
||||||
ta 8
|
ta 8 \n\
|
||||||
nop");
|
nop");
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
stime (long *seconds)
|
stime (long *seconds)
|
||||||
{
|
{
|
||||||
asm ("or %g0, 25, %g1
|
asm ("or %g0, 25, %g1 \n\
|
||||||
ta 8
|
ta 8 \n\
|
||||||
nop");
|
nop");
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
add_mapping (long vma, long pma, long size)
|
add_mapping (long vma, long pma, long size)
|
||||||
{
|
{
|
||||||
asm ("or %g0, 115, %g1
|
asm ("or %g0, 115, %g1 \n\
|
||||||
ta 8
|
ta 8 \n\
|
||||||
nop");
|
nop");
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
remove_mapping (long vma, long vma_end)
|
remove_mapping (long vma, long vma_end)
|
||||||
{
|
{
|
||||||
asm ("or %g0, 117, %g1
|
asm ("or %g0, 117, %g1 \n\
|
||||||
ta 8
|
ta 8 \n\
|
||||||
nop");
|
nop");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -211,10 +211,10 @@ __getProgramArgs (int *argv)
|
|||||||
int *res;
|
int *res;
|
||||||
|
|
||||||
/* 184 is tsolsys under solaris; bad juju */
|
/* 184 is tsolsys under solaris; bad juju */
|
||||||
asm ("mov %1, %%o0
|
asm ("mov %1, %%o0 \n\
|
||||||
or %%g0, 184, %%g1
|
or %%g0, 184, %%g1 \n\
|
||||||
ta 8
|
ta 8 \n\
|
||||||
nop
|
nop \n\
|
||||||
mov %%o0, %0" : "=r" (res) : "r" (argv): "g1");
|
mov %%o0, %0" : "=r" (res) : "r" (argv): "g1");
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@ -136,22 +136,22 @@ handle_exception (registers)
|
|||||||
DEBUG (1, "Entering handle_exception()");
|
DEBUG (1, "Entering handle_exception()");
|
||||||
|
|
||||||
/* asm("mov %g0, %wim ; nop; nop; nop"); */
|
/* asm("mov %g0, %wim ; nop; nop; nop"); */
|
||||||
asm(" save %sp, -64, %sp
|
asm(" save %sp, -64, %sp \n\
|
||||||
save %sp, -64, %sp
|
save %sp, -64, %sp \n\
|
||||||
save %sp, -64, %sp
|
save %sp, -64, %sp \n\
|
||||||
save %sp, -64, %sp
|
save %sp, -64, %sp \n\
|
||||||
save %sp, -64, %sp
|
save %sp, -64, %sp \n\
|
||||||
save %sp, -64, %sp
|
save %sp, -64, %sp \n\
|
||||||
save %sp, -64, %sp
|
save %sp, -64, %sp \n\
|
||||||
save %sp, -64, %sp
|
save %sp, -64, %sp \n\
|
||||||
restore
|
restore \n\
|
||||||
restore
|
restore \n\
|
||||||
restore
|
restore \n\
|
||||||
restore
|
restore \n\
|
||||||
restore
|
restore \n\
|
||||||
restore
|
restore \n\
|
||||||
restore
|
restore \n\
|
||||||
restore
|
restore \n\
|
||||||
");
|
");
|
||||||
|
|
||||||
if (registers[PC] == (unsigned long)breakinst) {
|
if (registers[PC] == (unsigned long)breakinst) {
|
||||||
@ -180,10 +180,10 @@ breakpoint()
|
|||||||
if (!initialized)
|
if (!initialized)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
asm(" .globl " STRINGSYM(breakinst) "
|
asm(" .globl " STRINGSYM(breakinst) " \n\
|
||||||
" STRINGSYM(breakinst) ": ta 128+1
|
" STRINGSYM(breakinst) ": ta 128+1 \n\
|
||||||
nop
|
nop \n\
|
||||||
nop
|
nop \n\
|
||||||
");
|
");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -197,9 +197,9 @@ int tt;
|
|||||||
print ("Got a bad trap #");
|
print ("Got a bad trap #");
|
||||||
outbyte (tt);
|
outbyte (tt);
|
||||||
outbyte ('\n');
|
outbyte ('\n');
|
||||||
asm("ta 0
|
asm("ta 0 \n\
|
||||||
nop
|
nop \n\
|
||||||
nop
|
nop \n\
|
||||||
");
|
");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -213,9 +213,9 @@ int tt;
|
|||||||
print ("Got a soft trap #");
|
print ("Got a soft trap #");
|
||||||
outbyte (tt);
|
outbyte (tt);
|
||||||
outbyte ('\n');
|
outbyte ('\n');
|
||||||
asm("ta 0
|
asm("ta 0 \n\
|
||||||
nop
|
nop \n\
|
||||||
nop
|
nop \n\
|
||||||
");
|
");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -239,7 +239,7 @@ flush_i_cache ()
|
|||||||
void
|
void
|
||||||
target_reset()
|
target_reset()
|
||||||
{
|
{
|
||||||
asm ("call 0
|
asm ("call 0 \n\
|
||||||
nop ");
|
nop ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user