Skip to contentSkip to conversation

mdb: add minimal mdb.h file for arch stuff

PATCH In review [email protected] 1 participant 1 message Aug 5, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 21/26 mdb: add minimal mdb.h file for arch stuff

Centralized external definitions into include files and corrected the file to conform to Linux coding practices. fixed word wrap problems with patches.

add just a minimal mdb.h file for arch code that calls the mdb core.

include/linux/mdb.h +49 -0
@@ -0,0 +1,49 @@
+
+/***************************************************************************
+*
+*   Copyright (c) 1997, 2008 Jeff V. Merkey  All Rights Reserved.
+*   1058 East 50 South
+*   Lindon, Utah  84042
+*   [email protected]
+*
+*   This program is free software; you can redistribute it and/or modify it
+*   under the terms of the GNU General Public License as published by the
+*   Free Software Foundation, version 2, or any later version.
+*
+*   This program is distributed in the hope that it will be useful, but
+*   WITHOUT ANY WARRANTY; without even the implied warranty of
+*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+*   General Public License for more details.
+*
+*   You are free to modify and re-distribute this program in accordance
+*   with the terms specified in the GNU Public License.  The copyright
+*   contained in this code is required to be present in any derivative
+*   works and you are required to provide the source code for this
+*   program as part of any commercial or non-commercial distribution.
+*   You are required to respect the rights of the Copyright holders
+*   named within this code.
+*
+*   [email protected] is the official maintainer of
+*   this code.  You are encouraged to report any bugs, problems, fixes,
+*   suggestions, and comments about this software to [email protected]
+*   or [email protected].  New releases, patches, bug fixes, and
+*   technical documentation can be found at www.kernel.org.  I will
+*   periodically post new releases of this software to www.kernel.org
+*   that contain bug fixes and enhanced capabilities.
+*
+*
+*   AUTHOR   :  Jeff V. Merkey
+*   DESCRIP  :  Merkey's NetWare Debugger
+*
+***************************************************************************/
+
+#define DEBUGGER_EXCEPTION        1
+#define NMI_EXCEPTION             2
+#define BREAKPOINT_EXCEPTION      3
+#define KEYBOARD_ENTRY           19
+#define SOFTWARE_EXCEPTION       22
+
+extern atomic_t inmdb;
+extern unsigned char *mdb_oops;
+extern int mdb(int reason, int error, struct pt_regs *regs);
+