Skip to content

Instantly share code, notes, and snippets.

diff --git a/Makefile b/Makefile
index 95c7c17..ae88370 100644
--- a/Makefile
+++ b/Makefile
@@ -18,8 +18,8 @@
#
# Conquer news mailing list: conquer-news-request@bu-cs.bu.edu.
#
-MAKE = /usr/bin/make
-CC = /usr/bin/gcc
.It Va SU_CMD
Command used to elevate privilege to configure and install a port. The unprivileged user must have write access to
.Va WRKDIRPREFIX
and
.VA DISTDIR
. The default is
.Ql /usr/bin/su root -c
[wuhan-sk 4:02] ~> /compat/linux/bin/ls >/dev/null
[wuhan-sk 4:02] ~> sudo -i
Password:
root@wuhan-sk:~ # /compat/linux/bin/ls >/dev/null
root@wuhan-sk:~ # ll /compat/linux/dev/null
ls: /compat/linux/dev/null: No such file or directory
root@wuhan-sk:~ #
#### REQUIRED CONFIGURATION ####
# Full path to backend executable (required, no default)
BACKEND="/usr/lib/arm-linux-gnueabihf/sshg-fw-nft-sets"
# Shell command that provides logs on standard output. (optional, no default)
# Example 1: ssh and sendmail from systemd journal:
LOGREADER="LANG=C /bin/journalctl -afb -p info -n1 -o cat SYSLOG_FACILITY=4 SYSLOG_FACILITY=10"
#### OPTIONS ####
# Block attackers when their cumulative attack score exceeds THRESHOLD.
interface em0 {
send ia-pd 0;
};
id-assoc pd 0 {
prefix-interface bridge0 {
sla-id 0;
sla-len 8;
};
};
sysctl_tree = SYSCTL_ADD_NODE(&sc->sysctl_ctx,
SYSCTL_STATIC_CHILDREN(_hw_usb_ugsio), OID_AUTO,
unitstr, CTLFLAG_RD, 0, "UGSIO");
if (sysctl_tree == NULL)
goto error;
SYSCTL_ADD_PROC(&sc->sysctl_ctx, SYSCTL_CHILDREN(sysctl_tree),
OID_AUTO, "serialnum", CTLTYPE_STRING | CTLFLAG_RW,
dev, 0, &ugsio_sysctl_sn, "A", "serial number");
SYSCTL_NODE(_hw_usb, OID_AUTO, ugsio, CTLFLAG_RW, 0, "UGSIO");
SYSCTL_INT(_hw_usb_ugsio, OID_AUTO, debug, CTLFLAG_RW,
&ugsio_debug, 0, "Debug level");
static unsigned long ugsio_udxfsz = UGSIO_UDXFSZ;
TUNABLE_ULONG("hw.usb.ugsio.udxfsz", &ugsio_udxfsz);
SYSCTL_ULONG(_hw_usb_ugsio, OID_AUTO, udxfsz, CTLFLAG_RW,
&ugsio_udxfsz, 0, "UD transfers size");
static unsigned int ugsio_ud_nbuf = UGSIO_UD_NBUF;
SYSCTL_UINT(_hw_usb_ugsio, OID_AUTO, udnbuf, CTLFLAG_RW,
// std and main are not available for bare metal software
#![no_std]
#![no_main]
//extern crate panic_halt;
extern crate panic_semihosting;
extern crate stm32f1xx_hal;
extern crate cortex_m_semihosting;
md_processchar(struct MDBus *md, uint8_t flags, uint16_t c) {
...
54 if ((unsigned long)c & 0x100ULL == 0) {
010008: 938B 0000 TST.W 0x0000(R11)
01000c: 2402 JEQ (0x0012)
01000e: B31E BIT.W #1,R14
010010: 207E JNE (0x010e)
void
satincr_u8(uint8_t *x) {
if (*x == 255)
return;
*x++;
}