xref: /freebsd/sys/i386/include/minidump.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
14503a06eSPeter Wemm /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
383ef78beSPedro F. Giffuni  *
44503a06eSPeter Wemm  * Copyright (c) 2006 Peter Wemm
54503a06eSPeter Wemm  * All rights reserved.
64503a06eSPeter Wemm  *
74503a06eSPeter Wemm  * Redistribution and use in source and binary forms, with or without
84503a06eSPeter Wemm  * modification, are permitted provided that the following conditions
94503a06eSPeter Wemm  * are met:
104503a06eSPeter Wemm  *
114503a06eSPeter Wemm  * 1. Redistributions of source code must retain the above copyright
124503a06eSPeter Wemm  *    notice, this list of conditions and the following disclaimer.
134503a06eSPeter Wemm  * 2. Redistributions in binary form must reproduce the above copyright
144503a06eSPeter Wemm  *    notice, this list of conditions and the following disclaimer in the
154503a06eSPeter Wemm  *    documentation and/or other materials provided with the distribution.
164503a06eSPeter Wemm  *
174503a06eSPeter Wemm  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
184503a06eSPeter Wemm  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
194503a06eSPeter Wemm  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
204503a06eSPeter Wemm  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
214503a06eSPeter Wemm  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
224503a06eSPeter Wemm  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
234503a06eSPeter Wemm  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
244503a06eSPeter Wemm  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
254503a06eSPeter Wemm  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
264503a06eSPeter Wemm  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
274503a06eSPeter Wemm  */
284503a06eSPeter Wemm 
294503a06eSPeter Wemm #ifndef	_MACHINE_MINIDUMP_H_
304503a06eSPeter Wemm #define	_MACHINE_MINIDUMP_H_ 1
314503a06eSPeter Wemm 
324503a06eSPeter Wemm #define	MINIDUMP_MAGIC		"minidump FreeBSD/i386"
3300e66147SD Scott Phillips #define	MINIDUMP_VERSION	2
344503a06eSPeter Wemm 
354503a06eSPeter Wemm struct minidumphdr {
364503a06eSPeter Wemm 	char magic[24];
374503a06eSPeter Wemm 	uint32_t version;
384503a06eSPeter Wemm 	uint32_t msgbufsize;
394503a06eSPeter Wemm 	uint32_t bitmapsize;
404503a06eSPeter Wemm 	uint32_t ptesize;
414503a06eSPeter Wemm 	uint32_t kernbase;
424503a06eSPeter Wemm 	uint32_t paemode;
4300e66147SD Scott Phillips 	uint32_t dumpavailsize;
444503a06eSPeter Wemm };
454503a06eSPeter Wemm 
464503a06eSPeter Wemm #endif /* _MACHINE_MINIDUMP_H_ */
47