From 350ffdd54baf880f440ddf9697666e283894ded1 Mon Sep 17 00:00:00 2001 From: Robert Mustacchi Date: Thu, 22 Oct 2020 15:56:51 -0700 Subject: 13273 want upanic(2) Reviewed by: C Fraire Reviewed by: Andy Fiddaman Approved by: Gordon Ross --- usr/src/lib/libc/port/sys/upanic.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 usr/src/lib/libc/port/sys/upanic.c (limited to 'usr/src/lib/libc/port/sys/upanic.c') diff --git a/usr/src/lib/libc/port/sys/upanic.c b/usr/src/lib/libc/port/sys/upanic.c new file mode 100644 index 0000000000..2edfe4c4ff --- /dev/null +++ b/usr/src/lib/libc/port/sys/upanic.c @@ -0,0 +1,23 @@ +/* + * This file and its contents are supplied under the terms of the + * Common Development and Distribution License ("CDDL"), version 1.0. + * You may only use this file in accordance with the terms of version + * 1.0 of the CDDL. + * + * A full copy of the text of the CDDL should have accompanied this + * source. A copy of the CDDL is also available via the Internet at + * http://www.illumos.org/license/CDDL. + */ + +/* + * Copyright 2020 Oxide Computer Company + */ + +#include +#include + +void +upanic(const void *buf, size_t len) +{ + (void) syscall(SYS_upanic, buf, len); +} -- cgit v1.2.3