<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/csky/kernel/syscall.c, branch master</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=master</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2024-06-25T13:57:38Z</updated>
<entry>
<title>syscalls: mmap(): use unsigned offset type consistently</title>
<updated>2024-06-25T13:57:38Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2024-06-04T12:20:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=295f10061af024099440b46602bcc47364551db7'/>
<id>urn:sha1:295f10061af024099440b46602bcc47364551db7</id>
<content type='text'>
Most architectures that implement the old-style mmap() with byte offset
use 'unsigned long' as the type for that offset, but microblaze and
riscv have the off_t type that is shared with userspace, matching the
prototype in include/asm-generic/syscalls.h.

Make this consistent by using an unsigned argument everywhere. This
changes the behavior slightly, as the argument is shifted to a page
number, and an user input with the top bit set would result in a
negative page offset rather than a large one as we use elsewhere.

For riscv, the 32-bit sys_mmap2() definition actually used a custom
type that is different from the global declaration, but this was
missed due to an incorrect type check.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
<entry>
<title>csky: System Call</title>
<updated>2018-10-25T15:36:19Z</updated>
<author>
<name>Guo Ren</name>
</author>
<published>2018-09-05T06:25:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4859bfca11c7d63d55175bcd85a75d6cee4b7184'/>
<id>urn:sha1:4859bfca11c7d63d55175bcd85a75d6cee4b7184</id>
<content type='text'>
This patch adds files related to syscall.

Signed-off-by: Guo Ren &lt;ren_guo@c-sky.com&gt;
Reviewed-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
</feed>
