Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/src/linux-headers-5.15.0-152-generic/arch/arm/tools/ |
Upload File : |
#!/bin/sh # SPDX-License-Identifier: GPL-2.0 in="$1" out="$2" align=1 fileguard=_ASM_ARM_`basename "$out" | sed \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` grep -E "^[0-9A-Fa-fXx]+[[:space:]]+" "$in" | sort -n | tail -n1 | ( echo "#ifndef ${fileguard} #define ${fileguard} 1 /* * This needs to be greater than __NR_last_syscall+1 in order to account * for the padding in the syscall table. */ " while read nr abi name entry; do nr=$(($nr + 1)) while [ "$(($nr / (256 * $align) ))" -gt 0 ]; do align=$(( $align * 4 )) done nr=$(( ($nr + $align - 1) & ~($align - 1) )) echo "/* aligned to $align */" echo "#define __NR_syscalls $nr" done echo "" echo "#endif /* ${fileguard} */" ) > "$out"