1*350ffdd5SRobert Mustacchi /* 2*350ffdd5SRobert Mustacchi * This file and its contents are supplied under the terms of the 3*350ffdd5SRobert Mustacchi * Common Development and Distribution License ("CDDL"), version 1.0. 4*350ffdd5SRobert Mustacchi * You may only use this file in accordance with the terms of version 5*350ffdd5SRobert Mustacchi * 1.0 of the CDDL. 6*350ffdd5SRobert Mustacchi * 7*350ffdd5SRobert Mustacchi * A full copy of the text of the CDDL should have accompanied this 8*350ffdd5SRobert Mustacchi * source. A copy of the CDDL is also available via the Internet at 9*350ffdd5SRobert Mustacchi * http://www.illumos.org/license/CDDL. 10*350ffdd5SRobert Mustacchi */ 11*350ffdd5SRobert Mustacchi 12*350ffdd5SRobert Mustacchi /* 13*350ffdd5SRobert Mustacchi * Copyright 2020 Oxide Computer Company 14*350ffdd5SRobert Mustacchi */ 15*350ffdd5SRobert Mustacchi 16*350ffdd5SRobert Mustacchi #include <sys/types.h> 17*350ffdd5SRobert Mustacchi #include <sys/syscall.h> 18*350ffdd5SRobert Mustacchi 19*350ffdd5SRobert Mustacchi void upanic(const void * buf,size_t len)20*350ffdd5SRobert Mustacchiupanic(const void *buf, size_t len) 21*350ffdd5SRobert Mustacchi { 22*350ffdd5SRobert Mustacchi (void) syscall(SYS_upanic, buf, len); 23*350ffdd5SRobert Mustacchi } 24