aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiu Aleaxander <Aleaxander@gmail.com>2009-07-25 14:26:00 +0800
committerLiu Aleaxander <Aleaxander@gmail.com>2009-07-25 14:26:00 +0800
commit4664dcd779d3eea322d0198690097c238815f818 (patch)
tree6db5f67f2581138a08b335162bf8320f4e3a1752
parent8cf560ee07bd14235304c6e8eea360ab9461df19 (diff)
downloadpxelinux-4664dcd779d3eea322d0198690097c238815f818.tar.gz
pxelinux-4664dcd779d3eea322d0198690097c238815f818.tar.xz
pxelinux-4664dcd779d3eea322d0198690097c238815f818.zip
Core:PXELINUX: add debug file
Implements a debug function in that file; it can be called with the type 'pm_call debug' from assemble file to do what called 'debug'. Well, you can also add 'extern asm_function or asm_variables' in the file, then you can find the function or varibale memory address in the pxelinux.map file.
-rw-r--r--core/debug.c7
-rw-r--r--core/extern.inc3
2 files changed, 10 insertions, 0 deletions
diff --git a/core/debug.c b/core/debug.c
new file mode 100644
index 00000000..346fa3f6
--- /dev/null
+++ b/core/debug.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+
+void debug(void)
+{
+ printf("go there?\n");
+}
diff --git a/core/extern.inc b/core/extern.inc
index 641b27e4..3cb41f81 100644
--- a/core/extern.inc
+++ b/core/extern.inc
@@ -15,4 +15,7 @@
; pxe.c
extern parse_dotquad
+ ; debug.c
+ extern debug
+
%endif ; EXTERN_INC