16fc729afSOlivier Houchard /*- 251369649SPedro F. Giffuni * SPDX-License-Identifier: BSD-3-Clause 351369649SPedro F. Giffuni * 46fc729afSOlivier Houchard * Copyright (c) 1995 Bruce D. Evans. 56fc729afSOlivier Houchard * All rights reserved. 66fc729afSOlivier Houchard * 76fc729afSOlivier Houchard * Redistribution and use in source and binary forms, with or without 86fc729afSOlivier Houchard * modification, are permitted provided that the following conditions 96fc729afSOlivier Houchard * are met: 106fc729afSOlivier Houchard * 1. Redistributions of source code must retain the above copyright 116fc729afSOlivier Houchard * notice, this list of conditions and the following disclaimer. 126fc729afSOlivier Houchard * 2. Redistributions in binary form must reproduce the above copyright 136fc729afSOlivier Houchard * notice, this list of conditions and the following disclaimer in the 146fc729afSOlivier Houchard * documentation and/or other materials provided with the distribution. 156fc729afSOlivier Houchard * 3. Neither the name of the author nor the names of contributors 166fc729afSOlivier Houchard * may be used to endorse or promote products derived from this software 176fc729afSOlivier Houchard * without specific prior written permission. 186fc729afSOlivier Houchard * 196fc729afSOlivier Houchard * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 206fc729afSOlivier Houchard * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 216fc729afSOlivier Houchard * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 226fc729afSOlivier Houchard * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 236fc729afSOlivier Houchard * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 246fc729afSOlivier Houchard * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 256fc729afSOlivier Houchard * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 266fc729afSOlivier Houchard * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 276fc729afSOlivier Houchard * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 286fc729afSOlivier Houchard * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 296fc729afSOlivier Houchard * SUCH DAMAGE. 306fc729afSOlivier Houchard * 316fc729afSOlivier Houchard * from: FreeBSD: src/sys/i386/include/md_var.h,v 1.40 2001/07/12 326fc729afSOlivier Houchard */ 336fc729afSOlivier Houchard 346fc729afSOlivier Houchard #ifndef _MACHINE_MD_VAR_H_ 356fc729afSOlivier Houchard #define _MACHINE_MD_VAR_H_ 366fc729afSOlivier Houchard 378436f7feSIan Lepore extern long Maxmem; 38f04d49adSOlivier Houchard extern char sigcode[]; 39f04d49adSOlivier Houchard extern int szsigcode; 4019e1bd01SJohn Baldwin extern u_long elf_hwcap; 410cbf724eSMichal Meloun extern u_long elf_hwcap2; 4249439183SMitchell Horne extern vm_paddr_t arm_physmem_kernaddr; 43f04d49adSOlivier Houchard 4498c53ad3SRui Paulo enum cpu_class { 4598c53ad3SRui Paulo CPU_CLASS_NONE, 46cf1a573fSOleksandr Tymoshenko CPU_CLASS_CORTEXA, 47543c9e95SGanbold Tsagaankhuu CPU_CLASS_KRAIT, 4898c53ad3SRui Paulo CPU_CLASS_ARM11J, 4998c53ad3SRui Paulo CPU_CLASS_MARVELL 5098c53ad3SRui Paulo }; 5198c53ad3SRui Paulo extern enum cpu_class cpu_class; 5298c53ad3SRui Paulo 538e321b79SRafal Jaworowski struct dumperinfo; 54*1adebe3cSMitchell Horne struct minidumpstate; 55*1adebe3cSMitchell Horne int cpu_minidumpsys(struct dumperinfo *, const struct minidumpstate *); 5647010239SOlivier Houchard 57c890751dSKonstantin Belousov extern uint32_t initial_fpscr; 58c890751dSKonstantin Belousov 596fc729afSOlivier Houchard #endif /* !_MACHINE_MD_VAR_H_ */ 60