1*056b029cSFrançois Tigeot /* 2*056b029cSFrançois Tigeot * Copyright (c) 2020 François Tigeot <ftigeot@wolfpond.org> 3*056b029cSFrançois Tigeot * All rights reserved. 4*056b029cSFrançois Tigeot * 5*056b029cSFrançois Tigeot * Redistribution and use in source and binary forms, with or without 6*056b029cSFrançois Tigeot * modification, are permitted provided that the following conditions 7*056b029cSFrançois Tigeot * are met: 8*056b029cSFrançois Tigeot * 1. Redistributions of source code must retain the above copyright 9*056b029cSFrançois Tigeot * notice unmodified, this list of conditions, and the following 10*056b029cSFrançois Tigeot * disclaimer. 11*056b029cSFrançois Tigeot * 2. Redistributions in binary form must reproduce the above copyright 12*056b029cSFrançois Tigeot * notice, this list of conditions and the following disclaimer in the 13*056b029cSFrançois Tigeot * documentation and/or other materials provided with the distribution. 14*056b029cSFrançois Tigeot * 15*056b029cSFrançois Tigeot * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16*056b029cSFrançois Tigeot * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17*056b029cSFrançois Tigeot * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18*056b029cSFrançois Tigeot * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19*056b029cSFrançois Tigeot * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20*056b029cSFrançois Tigeot * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21*056b029cSFrançois Tigeot * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22*056b029cSFrançois Tigeot * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23*056b029cSFrançois Tigeot * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24*056b029cSFrançois Tigeot * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25*056b029cSFrançois Tigeot */ 26*056b029cSFrançois Tigeot 27*056b029cSFrançois Tigeot #ifndef _LINUX_KGDB_H_ 28*056b029cSFrançois Tigeot #define _LINUX_KGDB_H_ 29*056b029cSFrançois Tigeot 30*056b029cSFrançois Tigeot #include <linux/linkage.h> 31*056b029cSFrançois Tigeot #include <linux/init.h> 32*056b029cSFrançois Tigeot #include <linux/atomic.h> 33*056b029cSFrançois Tigeot 34*056b029cSFrançois Tigeot #include <ddb/ddb.h> 35*056b029cSFrançois Tigeot 36*056b029cSFrançois Tigeot #include "opt_ddb.h" 37*056b029cSFrançois Tigeot 38*056b029cSFrançois Tigeot #ifdef DDB 39*056b029cSFrançois Tigeot #define in_dbg_master() db_active 40*056b029cSFrançois Tigeot #else 41*056b029cSFrançois Tigeot #define in_dbg_master() 0 42*056b029cSFrançois Tigeot #endif 43*056b029cSFrançois Tigeot 44*056b029cSFrançois Tigeot #endif /* _LINUX_KGDB_H_ */ 45