mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-01 07:42:18 +00:00
84ba5b15ac
* Enhance GPIO addon for Noctua Fans for the Qortector upcoming case. This will put PWM signal to real-time. * Fixed RDP not letting a user login if not logged out on Cinnamon release (reported by Crowetic) * Update i2c sensor db * Fixed DRM broadcast over HDMI 2+ * Ease up DHCP security only to prevent Brooklyn blocking routers. * Add possibility to add extra memory for Cinnamon Desktop Release * Fix error message of Software Render mode on Cinnamon Desktop * Add proper offset for HD screens for pixel array *Fixed HDMI jitter for videocore4 GPU * Enable all radios (including Bluetooth)
33 lines
575 B
Bash
33 lines
575 B
Bash
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
in="$1"
|
|
out="$2"
|
|
my_abis=`echo "($3)" | tr ',' '|'`
|
|
my_abi="$4"
|
|
offset="$5"
|
|
|
|
emit() {
|
|
t_nxt="$1"
|
|
t_nr="$2"
|
|
t_entry="$3"
|
|
|
|
while [ $t_nxt -lt $t_nr ]; do
|
|
printf "__SYSCALL(%s, sys_ni_syscall, )\n" "${t_nxt}"
|
|
t_nxt=$((t_nxt+1))
|
|
done
|
|
printf "__SYSCALL(%s, %s, )\n" "${t_nxt}" "${t_entry}"
|
|
}
|
|
|
|
grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
|
|
nxt=0
|
|
if [ -z "$offset" ]; then
|
|
offset=0
|
|
fi
|
|
|
|
while read nr abi name entry ; do
|
|
emit $((nxt+offset)) $((nr+offset)) $entry
|
|
nxt=$((nr+1))
|
|
done
|
|
) > "$out"
|