Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4dc46775 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Wire up the fallocate syscall.

parent 293c5bd1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -566,6 +566,13 @@ asmlinkage long sys32_fadvise64_64(int fd, int __pad,
			flags);
}

asmlinkage long sys32_fallocate(int fd, int mode, unsigned offset_a2,
	unsigned offset_a3, unsigned len_a4, unsigned len_a5)
{
	return sys_fallocate(fd, mode, merge_64(offset_a2, offset_a3),
	                     merge_64(len_a4, len_a5));
}

save_static_function(sys32_clone);
static int noinline __used
_sys32_clone(nabi_no_regargs struct pt_regs regs)
+1 −0
Original line number Diff line number Diff line
@@ -662,6 +662,7 @@ einval: li v0, -EINVAL
	sys	sys_signalfd		3
	sys	sys_timerfd		4
	sys	sys_eventfd		1
	sys	sys_fallocate		6	/* 4320 */
	.endm

	/* We pre-compute the number of _instruction_ bytes needed to
+1 −0
Original line number Diff line number Diff line
@@ -477,4 +477,5 @@ sys_call_table:
	PTR	sys_signalfd
	PTR	sys_timerfd
	PTR	sys_eventfd
	PTR	sys_fallocate
	.size	sys_call_table,.-sys_call_table
+1 −0
Original line number Diff line number Diff line
@@ -403,4 +403,5 @@ EXPORT(sysn32_call_table)
	PTR	compat_sys_signalfd		/* 5280 */
	PTR	compat_sys_timerfd
	PTR	sys_eventfd
	PTR	sys_fallocate
	.size	sysn32_call_table,.-sysn32_call_table
+1 −0
Original line number Diff line number Diff line
@@ -525,4 +525,5 @@ sys_call_table:
	PTR	compat_sys_signalfd
	PTR	compat_sys_timerfd
	PTR	sys_eventfd
	PTR	sys_fallocate			/* 4320 */
	.size	sys_call_table,.-sys_call_table
Loading