historical/m0-applesillicon.git/xnu-qemu-arm64-5.1.0/roms/SLOF/lib/libnet/libnet.code
2024-01-16 11:20:27 -06:00

16 lines
290 B
Text

#include <netapps.h>
PRIM(NET_X2d_LOAD)
int alen = TOS.n; POP;
char *arg = TOS.a; POP;
long maxlen = TOS.n; POP;
void *loadaddr = TOS.a;
TOS.n = netload(loadaddr, maxlen, arg, alen);
MIRP
PRIM(NET_X2d_PING)
int alen = TOS.n; POP;
char *arg = TOS.a;
TOS.n = ping(arg, alen);
MIRP