#!/bin/sh in="$1" arch="$2" syscall_macro() { nr="$1" name="$2" echo " [$nr] = \"$name\"," } emit() { nr="$1" entry="$2" syscall_macro "$nr" "$entry" } echo "static const char *syscalltbl_${arch}[] = {" sorted_table=$(mktemp /tmp/syscalltbl.XXXXXX) grep '^[0-9]' "$in" | sort -n > $sorted_table max_nr=0 while read nr abi name entry compat; do if [ $nr -ge 512 ] ; then # discard compat sycalls break fi emit "$nr" "$name" max_nr=$nr done < $sorted_table rm -f $sorted_table echo "};" echo "#define SYSCALLTBL_${arch}_MAX_ID ${max_nr}" cgit logo index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-03-23 21:08:56 +0000
committerRalf Baechle <ralf@linux-mips.org>2011-03-25 18:45:16 +0100
commit9fcecaf02dbde08337323bcca7917ec0baad0cc2 (patch)
treebba34c8f6a43e22b813f0a981a47ce6e08789201
parentfe92a238263991c81e0910e0b2f56ed969ec160d (diff)
MIPS: LASAt: Convert to new irq_chip functions
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> To: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/2184/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat