On 21:03 Fri 01 Jan , ros-arm-bringup(a)svn.reactos.org wrote:
Author: ros-arm-bringup
Date: Fri Jan 1 22:03:22 2010
New Revision: 44861
Modified: trunk/reactos/ntoskrnl/include/internal/i386/asmmacro.S
@@ -87,18 +87,47 @@
//
// @name UNHANDLED_PATH
//
-// This macro TODO
+// This macro prints out that the current code path is not expected yet
//
// @param None
//
// @remark None.
//
-.macro UNHANDLED_PATH
+.macro UNHANDLED_PATH Reason
+
+ /* Push reason */
+ push offset 1f
+
/* Get EIP */
call $+5
/* Print debug message */
push offset _UnhandledMsg
+ call _DbgPrint
+ add esp, 12
+
+ /* Loop indefinitely */
+ jmp $
+
+1:
+ .asciz \Reason
I think, this should be:
.asciz "\Reason"
I don't know why, but this line (both variants) doesn't compile for me
with RosBE 1.4.2 (Linux):
ntoskrnl/ke/i386/trap.s: Assembler messages:
ntoskrnl/ke/i386/trap.s:290: Error: junk at end of line, first unrecognized character is
`o'
ntoskrnl/ke/i386/trap.s:290: Error: junk at end of line, first unrecognized character is
`j'
ntoskrnl/ke/i386/trap.s:290: Error: junk at end of line, first unrecognized character is
`o'
ntoskrnl/ke/i386/trap.s:425: Error: junk at end of line, first unrecognized character is
`j'
ntoskrnl/ke/i386/trap.s:425: Error: junk at end of line, first unrecognized character is
`j'
ntoskrnl/ke/i386/trap.s:425: Error: junk at end of line, first unrecognized character is
`j'
ntoskrnl/ke/i386/trap.s:439: Error: junk at end of line, first unrecognized character is
`j'
ntoskrnl/ke/i386/trap.s:439: Error: junk at end of line, first unrecognized character is
`j'
ntoskrnl/ke/i386/trap.s:439: Error: junk at end of line, first unrecognized character is
`j'
ntoskrnl/ke/i386/trap.s:467: Error: junk at end of line, first unrecognized character is
`A'
ntoskrnl/ke/i386/trap.s:1677: Error: junk at end of line, first unrecognized character is
`R'
ntoskrnl/ke/i386/trap.s:1677: Error: junk at end of line, first unrecognized character is
`j'
ntoskrnl/ke/i386/trap.s:1677: Error: junk at end of line, first unrecognized character is
`R'
ntoskrnl/ke/i386/trap.s:2415: Error: junk at end of line, first unrecognized character is
`c'
ntoskrnl/ke/i386/trap.s:2594: Error: junk at end of line, first unrecognized character is
`m'
make: *** [obj-i386/ntoskrnl/ke/i386/trap_ntoskrnl.o] Error 1
--
Alexander Potashev