From fa325e9b42b0bdfb48857d1958d9fb7ceac55151 Mon Sep 17 00:00:00 2001 From: Dan Cross Date: Fri, 10 Jan 2020 14:44:21 +0000 Subject: Trivial changes: whitespace and modes. Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross --- src/libmach/mach386.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/libmach/mach386.c') diff --git a/src/libmach/mach386.c b/src/libmach/mach386.c index 336cec35..10925630 100644 --- a/src/libmach/mach386.c +++ b/src/libmach/mach386.c @@ -128,10 +128,10 @@ Mach mach386 = }; /* - * The wrapper code around Linux system calls + * The wrapper code around Linux system calls * saves AX on the stack before calling some calls - * (at least, __libc_nanosleep), when running in - * threaded programs. + * (at least, __libc_nanosleep), when running in + * threaded programs. */ static void syscallhack(Map *map, Regs *regs, int *spoff) @@ -146,7 +146,7 @@ syscallhack(Map *map, Regs *regs, int *spoff) return; if(i386das(map, pc+2, 0, buf, sizeof buf) != 3 || strcmp(buf, "XCHGL\tAX,0(SP)") != 0) return; - *spoff += 4; + *spoff += 4; } int @@ -1968,14 +1968,14 @@ plocal(Instr *ip) Symbol s; char *name; Loc l, li; - + l.type = LOFFSET; l.offset = ip->disp; if(ip->base == SP) l.reg = "SP"; else l.reg = "BP"; - + li.type = LADDR; li.addr = ip->addr; if(findsym(li, CTEXT, &s) < 0) @@ -1989,7 +1989,7 @@ plocal(Instr *ip) if(name==nil && findlsym(&s, l, &s) >= 0) name = s.name; - + if(name) bprint(ip, "%s+", name); -- cgit v1.2.3