Commit be128fb2 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: remove sys32.S

parent 2549eb55
......@@ -7,7 +7,7 @@ extra-y := head.o
obj-y := setup.o entry.o traps.o irq.o idle.o \
time.o process.o signal.o syscalls.o misc.o ptrace.o \
align.o semaphore.o bitops.o stab.o htab.o pacaData.o \
udbg.o binfmt_elf32.o sys_ppc32.o sys32.o ioctl32.o \
udbg.o binfmt_elf32.o sys_ppc32.o ioctl32.o \
ptrace32.o signal32.o pmc.o rtc.o init_task.o \
lmb.o pci.o pci_dn.o pci_dma.o
......
/*
* sys32.S: I-cache tricks for 32-bit compatibility layer simple
* conversions.
*
* Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
* Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz)
* Copyright (C) 2000 Ken Aaker (kdaaker@rchland.vnet.ibm.com)
* For PPC ABI convention is parms in Regs 3-10.
* The router in entry.S clears the high 32 bits in the first
* 4 arguments (R3-R6).
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
#include <asm/ppc_asm.h>
#include <asm/errno.h>
#include <asm/processor.h>
.text
_GLOBAL(ppc32_lseek)
extsw r4,r4 /* sign extend off_t offset parm */
b .sys_lseek
......@@ -2318,6 +2318,14 @@ long sys32_nice(u32 increment)
return sys_nice((int)increment);
}
extern off_t sys_lseek(unsigned int fd, off_t offset, unsigned int origin);
off_t ppc32_lseek(unsigned int fd, u32 offset, unsigned int origin)
{
/* sign extend n */
return sys_lseek(fd, (int)offset, origin);
}
/*
* This is just a version for 32-bit applications which does
* not force O_LARGEFILE on.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment