xref: /freebsd/sys/riscv/include/md_var.h (revision d3916eace506b8ab23537223f5c92924636a1c41)
18d7e7a98SRuslan Bukin /*-
28d7e7a98SRuslan Bukin  * Copyright (c) 1995 Bruce D. Evans.
38d7e7a98SRuslan Bukin  * All rights reserved.
48d7e7a98SRuslan Bukin  *
58d7e7a98SRuslan Bukin  * Redistribution and use in source and binary forms, with or without
68d7e7a98SRuslan Bukin  * modification, are permitted provided that the following conditions
78d7e7a98SRuslan Bukin  * are met:
88d7e7a98SRuslan Bukin  * 1. Redistributions of source code must retain the above copyright
98d7e7a98SRuslan Bukin  *    notice, this list of conditions and the following disclaimer.
108d7e7a98SRuslan Bukin  * 2. Redistributions in binary form must reproduce the above copyright
118d7e7a98SRuslan Bukin  *    notice, this list of conditions and the following disclaimer in the
128d7e7a98SRuslan Bukin  *    documentation and/or other materials provided with the distribution.
138d7e7a98SRuslan Bukin  * 3. Neither the name of the author nor the names of contributors
148d7e7a98SRuslan Bukin  *    may be used to endorse or promote products derived from this software
158d7e7a98SRuslan Bukin  *    without specific prior written permission.
168d7e7a98SRuslan Bukin  *
178d7e7a98SRuslan Bukin  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
188d7e7a98SRuslan Bukin  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
198d7e7a98SRuslan Bukin  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
208d7e7a98SRuslan Bukin  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
218d7e7a98SRuslan Bukin  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
228d7e7a98SRuslan Bukin  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
238d7e7a98SRuslan Bukin  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
248d7e7a98SRuslan Bukin  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
258d7e7a98SRuslan Bukin  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
268d7e7a98SRuslan Bukin  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
278d7e7a98SRuslan Bukin  * SUCH DAMAGE.
288d7e7a98SRuslan Bukin  *
298d7e7a98SRuslan Bukin  *	from: FreeBSD: src/sys/i386/include/md_var.h,v 1.40 2001/07/12
308d7e7a98SRuslan Bukin  */
318d7e7a98SRuslan Bukin 
328d7e7a98SRuslan Bukin #ifndef	_MACHINE_MD_VAR_H_
338d7e7a98SRuslan Bukin #define	_MACHINE_MD_VAR_H_
348d7e7a98SRuslan Bukin 
358d7e7a98SRuslan Bukin extern long Maxmem;
368d7e7a98SRuslan Bukin extern char sigcode[];
378d7e7a98SRuslan Bukin extern int szsigcode;
38ffedb98bSMitchell Horne extern u_long elf_hwcap;
390a0f40c7SMitchell Horne extern register_t mvendorid;
400a0f40c7SMitchell Horne extern register_t marchid;
410a0f40c7SMitchell Horne extern register_t mimpid;
427245ffd1SMitchell Horne extern u_int mmu_caps;
438d7e7a98SRuslan Bukin 
448bebb786SMitchell Horne /* Supervisor-mode extension support */
45*d3916eacSRuslan Bukin extern bool has_hyp;
468bebb786SMitchell Horne extern bool has_sstc;
478bebb786SMitchell Horne extern bool has_sscofpmf;
48b7312c3dSMitchell Horne extern bool has_svpbmt;
498bebb786SMitchell Horne 
508d7e7a98SRuslan Bukin struct dumperinfo;
511adebe3cSMitchell Horne struct minidumpstate;
528d7e7a98SRuslan Bukin 
531adebe3cSMitchell Horne int cpu_minidumpsys(struct dumperinfo *, const struct minidumpstate *);
548d7e7a98SRuslan Bukin 
558d7e7a98SRuslan Bukin #endif /* !_MACHINE_MD_VAR_H_ */
56