aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-12-09 08:19:26 +0000
committerWarner Losh <imp@FreeBSD.org>2023-01-24 21:49:18 +0000
commiteca37d33d8e5a92d942c25a40faf2e9483d66b0d (patch)
tree3facc5f1b9fd889390b826a7a16ae4076a3abe60
parent07f1bcde03be9d09360fa5b862b93134efc3ff4a (diff)
downloadsrc-eca37d33d8e5a92d942c25a40faf2e9483d66b0d.tar.gz
src-eca37d33d8e5a92d942c25a40faf2e9483d66b0d.zip
kboot: remove host_seek
host_llseek has replaced all instances of host_seek, so retire the latter. It's unused. Sponsored by: Netflix (cherry picked from commit f953785b3df142f744789ade3acbfe2a65e6de70)
-rw-r--r--stand/powerpc/kboot/host_syscall.S9
-rw-r--r--stand/powerpc/kboot/host_syscall.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/stand/powerpc/kboot/host_syscall.S b/stand/powerpc/kboot/host_syscall.S
index dc236afdeda7..a5556aa1b2dc 100644
--- a/stand/powerpc/kboot/host_syscall.S
+++ b/stand/powerpc/kboot/host_syscall.S
@@ -21,15 +21,6 @@ ENTRY(host_write)
blr
END(host_write)
-ENTRY(host_seek)
- mr %r4,%r5
- mr %r5,%r6
- mr %r6,%r7
- li %r0, 140 # SYS_llseek
- sc
- blr
-END(host_seek)
-
ENTRY(host_llseek)
li %r0, 140 # SYS_llseek
sc
diff --git a/stand/powerpc/kboot/host_syscall.h b/stand/powerpc/kboot/host_syscall.h
index 50b0725be675..60b006e5dba4 100644
--- a/stand/powerpc/kboot/host_syscall.h
+++ b/stand/powerpc/kboot/host_syscall.h
@@ -32,7 +32,6 @@
ssize_t host_read(int fd, void *buf, size_t nbyte);
ssize_t host_write(int fd, const void *buf, size_t nbyte);
-ssize_t host_seek(int fd, int64_t offset, int whence);
int host_open(const char *path, int flags, int mode);
ssize_t host_llseek(int fd, int32_t offset_high, int32_t offset_lo, uint64_t *result, int whence);
int host_close(int fd);