2 * x86-64 signal handling routines
4 * Copyright 1999, 2005 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 #include "wine/port.h"
35 #ifdef HAVE_SYS_PARAM_H
36 # include <sys/param.h>
38 #ifdef HAVE_SYS_SIGNAL_H
39 # include <sys/signal.h>
42 #define NONAMELESSUNION
45 #include "wine/library.h"
46 #include "wine/exception.h"
47 #include "ntdll_misc.h"
48 #include "wine/debug.h"
50 WINE_DEFAULT_DEBUG_CHANNEL(seh
);
53 /***********************************************************************
54 * signal context platform-specific definitions
58 #include <asm/prctl.h>
59 extern int arch_prctl(int func
, void *ptr
);
61 typedef struct ucontext SIGCONTEXT
;
63 # define HANDLER_DEF(name) void name( int __signal, struct siginfo *__siginfo, SIGCONTEXT *__context )
64 # define HANDLER_CONTEXT (__context)
66 #define RAX_sig(context) ((context)->uc_mcontext.gregs[REG_RAX])
67 #define RBX_sig(context) ((context)->uc_mcontext.gregs[REG_RBX])
68 #define RCX_sig(context) ((context)->uc_mcontext.gregs[REG_RCX])
69 #define RDX_sig(context) ((context)->uc_mcontext.gregs[REG_RDX])
70 #define RSI_sig(context) ((context)->uc_mcontext.gregs[REG_RSI])
71 #define RDI_sig(context) ((context)->uc_mcontext.gregs[REG_RDI])
72 #define RBP_sig(context) ((context)->uc_mcontext.gregs[REG_RBP])
73 #define R8_sig(context) ((context)->uc_mcontext.gregs[REG_R8])
74 #define R9_sig(context) ((context)->uc_mcontext.gregs[REG_R9])
75 #define R10_sig(context) ((context)->uc_mcontext.gregs[REG_R10])
76 #define R11_sig(context) ((context)->uc_mcontext.gregs[REG_R11])
77 #define R12_sig(context) ((context)->uc_mcontext.gregs[REG_R12])
78 #define R13_sig(context) ((context)->uc_mcontext.gregs[REG_R13])
79 #define R14_sig(context) ((context)->uc_mcontext.gregs[REG_R14])
80 #define R15_sig(context) ((context)->uc_mcontext.gregs[REG_R15])
82 #define CS_sig(context) (*((WORD *)&(context)->uc_mcontext.gregs[REG_CSGSFS] + 0))
83 #define GS_sig(context) (*((WORD *)&(context)->uc_mcontext.gregs[REG_CSGSFS] + 1))
84 #define FS_sig(context) (*((WORD *)&(context)->uc_mcontext.gregs[REG_CSGSFS] + 2))
86 #define RSP_sig(context) ((context)->uc_mcontext.gregs[REG_RSP])
87 #define RIP_sig(context) ((context)->uc_mcontext.gregs[REG_RIP])
88 #define EFL_sig(context) ((context)->uc_mcontext.gregs[REG_EFL])
89 #define TRAP_sig(context) ((context)->uc_mcontext.gregs[REG_TRAPNO])
90 #define ERROR_sig(context) ((context)->uc_mcontext.gregs[REG_ERR])
92 #define FPU_sig(context) ((XMM_SAVE_AREA32 *)((context)->uc_mcontext.fpregs))
94 #define FAULT_CODE (__siginfo->si_code)
95 #define FAULT_ADDRESS (__siginfo->si_addr)
99 #if defined(__NetBSD__)
100 # include <sys/ucontext.h>
101 # include <sys/types.h>
104 typedef ucontext_t SIGCONTEXT
;
106 #define RAX_sig(context) ((context)->uc_mcontext.__gregs[_REG_RAX])
107 #define RBX_sig(context) ((context)->uc_mcontext.__gregs[_REG_RBX])
108 #define RCX_sig(context) ((context)->uc_mcontext.__gregs[_REG_RCX])
109 #define RDX_sig(context) ((context)->uc_mcontext.__gregs[_REG_RDX])
110 #define RSI_sig(context) ((context)->uc_mcontext.__gregs[_REG_RSI])
111 #define RDI_sig(context) ((context)->uc_mcontext.__gregs[_REG_RDI])
112 #define RBP_sig(context) ((context)->uc_mcontext.__gregs[_REG_RBP])
113 #define R8_sig(context) ((context)->uc_mcontext.__gregs[_REG_R8])
114 #define R9_sig(context) ((context)->uc_mcontext.__gregs[_REG_R9])
115 #define R10_sig(context) ((context)->uc_mcontext.__gregs[_REG_R10])
116 #define R11_sig(context) ((context)->uc_mcontext.__gregs[_REG_R11])
117 #define R12_sig(context) ((context)->uc_mcontext.__gregs[_REG_R12])
118 #define R13_sig(context) ((context)->uc_mcontext.__gregs[_REG_R13])
119 #define R14_sig(context) ((context)->uc_mcontext.__gregs[_REG_R14])
120 #define R15_sig(context) ((context)->uc_mcontext.__gregs[_REG_R15])
122 #define CS_sig(context) ((context)->uc_mcontext.__gregs[_REG_CS])
123 #define DS_sig(context) ((context)->uc_mcontext.__gregs[_REG_DS])
124 #define ES_sig(context) ((context)->uc_mcontext.__gregs[_REG_ES])
125 #define FS_sig(context) ((context)->uc_mcontext.__gregs[_REG_FS])
126 #define GS_sig(context) ((context)->uc_mcontext.__gregs[_REG_GS])
127 #define SS_sig(context) ((context)->uc_mcontext.__gregs[_REG_SS])
129 #define EFL_sig(context) ((context)->uc_mcontext.__gregs[_REG_RFL])
131 #define RIP_sig(context) (*((unsigned long*)&(context)->uc_mcontext.__gregs[_REG_RIP]))
132 #define RSP_sig(context) (*((unsigned long*)&(context)->uc_mcontext.__gregs[_REG_URSP]))
134 #define TRAP_sig(context) ((context)->uc_mcontext.__gregs[_REG_TRAPNO])
135 #define ERROR_sig(context) ((context)->uc_mcontext.__gregs[_REG_ERR])
137 #define FAULT_CODE (__siginfo->si_code)
138 #define FAULT_ADDRESS (__siginfo->si_addr)
140 #define HANDLER_DEF(name) void name( int __signal, siginfo_t *__siginfo, SIGCONTEXT *__context )
141 #define HANDLER_CONTEXT (__context)
143 #define FPU_sig(context) ((XMM_SAVE_AREA32 *)((context)->uc_mcontext.__fpregs))
144 #endif /* __NetBSD__ */
148 TRAP_x86_UNKNOWN
= -1, /* Unknown fault (TRAP_sig not defined) */
149 TRAP_x86_DIVIDE
= 0, /* Division by zero exception */
150 TRAP_x86_TRCTRAP
= 1, /* Single-step exception */
151 TRAP_x86_NMI
= 2, /* NMI interrupt */
152 TRAP_x86_BPTFLT
= 3, /* Breakpoint exception */
153 TRAP_x86_OFLOW
= 4, /* Overflow exception */
154 TRAP_x86_BOUND
= 5, /* Bound range exception */
155 TRAP_x86_PRIVINFLT
= 6, /* Invalid opcode exception */
156 TRAP_x86_DNA
= 7, /* Device not available exception */
157 TRAP_x86_DOUBLEFLT
= 8, /* Double fault exception */
158 TRAP_x86_FPOPFLT
= 9, /* Coprocessor segment overrun */
159 TRAP_x86_TSSFLT
= 10, /* Invalid TSS exception */
160 TRAP_x86_SEGNPFLT
= 11, /* Segment not present exception */
161 TRAP_x86_STKFLT
= 12, /* Stack fault */
162 TRAP_x86_PROTFLT
= 13, /* General protection fault */
163 TRAP_x86_PAGEFLT
= 14, /* Page fault */
164 TRAP_x86_ARITHTRAP
= 16, /* Floating point exception */
165 TRAP_x86_ALIGNFLT
= 17, /* Alignment check exception */
166 TRAP_x86_MCHK
= 18, /* Machine check exception */
167 TRAP_x86_CACHEFLT
= 19 /* Cache flush exception */
170 typedef int (*wine_signal_handler
)(unsigned int sig
);
172 static wine_signal_handler handlers
[256];
174 /***********************************************************************
177 static inline int dispatch_signal(unsigned int sig
)
179 if (handlers
[sig
] == NULL
) return 0;
180 return handlers
[sig
](sig
);
183 /***********************************************************************
186 * Set the register values from a sigcontext.
188 static void save_context( CONTEXT
*context
, const SIGCONTEXT
*sigcontext
)
190 context
->Rax
= RAX_sig(sigcontext
);
191 context
->Rcx
= RCX_sig(sigcontext
);
192 context
->Rdx
= RDX_sig(sigcontext
);
193 context
->Rbx
= RBX_sig(sigcontext
);
194 context
->Rsp
= RSP_sig(sigcontext
);
195 context
->Rbp
= RBP_sig(sigcontext
);
196 context
->Rsi
= RSI_sig(sigcontext
);
197 context
->Rdi
= RDI_sig(sigcontext
);
198 context
->R8
= R8_sig(sigcontext
);
199 context
->R9
= R9_sig(sigcontext
);
200 context
->R10
= R10_sig(sigcontext
);
201 context
->R11
= R11_sig(sigcontext
);
202 context
->R12
= R12_sig(sigcontext
);
203 context
->R13
= R13_sig(sigcontext
);
204 context
->R14
= R14_sig(sigcontext
);
205 context
->R15
= R15_sig(sigcontext
);
206 context
->Rip
= RIP_sig(sigcontext
);
207 context
->SegCs
= CS_sig(sigcontext
);
208 context
->SegFs
= FS_sig(sigcontext
);
209 context
->SegGs
= GS_sig(sigcontext
);
210 context
->EFlags
= EFL_sig(sigcontext
);
211 context
->SegDs
= 0; /* FIXME */
212 context
->SegEs
= 0; /* FIXME */
213 context
->SegSs
= 0; /* FIXME */
214 context
->MxCsr
= 0; /* FIXME */
215 if (FPU_sig(sigcontext
)) context
->u
.FltSave
= *FPU_sig(sigcontext
);
219 /***********************************************************************
222 * Build a sigcontext from the register values.
224 static void restore_context( const CONTEXT
*context
, SIGCONTEXT
*sigcontext
)
226 RAX_sig(sigcontext
) = context
->Rax
;
227 RCX_sig(sigcontext
) = context
->Rcx
;
228 RDX_sig(sigcontext
) = context
->Rdx
;
229 RBX_sig(sigcontext
) = context
->Rbx
;
230 RSP_sig(sigcontext
) = context
->Rsp
;
231 RBP_sig(sigcontext
) = context
->Rbp
;
232 RSI_sig(sigcontext
) = context
->Rsi
;
233 RDI_sig(sigcontext
) = context
->Rdi
;
234 R8_sig(sigcontext
) = context
->R8
;
235 R9_sig(sigcontext
) = context
->R9
;
236 R10_sig(sigcontext
) = context
->R10
;
237 R11_sig(sigcontext
) = context
->R11
;
238 R12_sig(sigcontext
) = context
->R12
;
239 R13_sig(sigcontext
) = context
->R13
;
240 R14_sig(sigcontext
) = context
->R14
;
241 R15_sig(sigcontext
) = context
->R15
;
242 RIP_sig(sigcontext
) = context
->Rip
;
243 CS_sig(sigcontext
) = context
->SegCs
;
244 FS_sig(sigcontext
) = context
->SegFs
;
245 GS_sig(sigcontext
) = context
->SegGs
;
246 EFL_sig(sigcontext
) = context
->EFlags
;
247 if (FPU_sig(sigcontext
)) *FPU_sig(sigcontext
) = context
->u
.FltSave
;
251 /***********************************************************************
252 * RtlCaptureContext (NTDLL.@)
254 void WINAPI
__regs_RtlCaptureContext( CONTEXT
*context
, CONTEXT
*regs
)
258 DEFINE_REGS_ENTRYPOINT( RtlCaptureContext
, 1 )
261 /***********************************************************************
264 * Set the new CPU context.
266 void set_cpu_context( const CONTEXT
*context
)
268 FIXME("not implemented\n");
272 /***********************************************************************
275 * Copy a register context according to the flags.
277 void copy_context( CONTEXT
*to
, const CONTEXT
*from
, DWORD flags
)
279 flags
&= ~CONTEXT_AMD64
; /* get rid of CPU id */
280 if (flags
& CONTEXT_CONTROL
)
285 to
->SegCs
= from
->SegCs
;
286 to
->SegSs
= from
->SegSs
;
287 to
->EFlags
= from
->EFlags
;
288 to
->MxCsr
= from
->MxCsr
;
290 if (flags
& CONTEXT_INTEGER
)
307 if (flags
& CONTEXT_SEGMENTS
)
309 to
->SegDs
= from
->SegDs
;
310 to
->SegEs
= from
->SegEs
;
311 to
->SegFs
= from
->SegFs
;
312 to
->SegGs
= from
->SegGs
;
314 if (flags
& CONTEXT_FLOATING_POINT
)
316 to
->u
.FltSave
= from
->u
.FltSave
;
318 if (flags
& CONTEXT_DEBUG_REGISTERS
)
330 /**********************************************************************
333 * Handler for SIGSEGV and related errors.
335 static HANDLER_DEF(segv_handler
)
337 EXCEPTION_RECORD rec
;
340 save_context( &context
, HANDLER_CONTEXT
);
342 rec
.ExceptionRecord
= NULL
;
343 rec
.ExceptionFlags
= EXCEPTION_CONTINUABLE
;
344 rec
.ExceptionAddress
= (LPVOID
)context
.Rip
;
345 rec
.NumberParameters
= 0;
347 switch(TRAP_sig(HANDLER_CONTEXT
))
349 case TRAP_x86_OFLOW
: /* Overflow exception */
350 rec
.ExceptionCode
= EXCEPTION_INT_OVERFLOW
;
352 case TRAP_x86_BOUND
: /* Bound range exception */
353 rec
.ExceptionCode
= EXCEPTION_ARRAY_BOUNDS_EXCEEDED
;
355 case TRAP_x86_PRIVINFLT
: /* Invalid opcode exception */
356 rec
.ExceptionCode
= EXCEPTION_ILLEGAL_INSTRUCTION
;
358 case TRAP_x86_STKFLT
: /* Stack fault */
359 rec
.ExceptionCode
= EXCEPTION_STACK_OVERFLOW
;
361 case TRAP_x86_SEGNPFLT
: /* Segment not present exception */
362 case TRAP_x86_PROTFLT
: /* General protection fault */
363 case TRAP_x86_UNKNOWN
: /* Unknown fault code */
364 rec
.ExceptionCode
= ERROR_sig(HANDLER_CONTEXT
) ? EXCEPTION_ACCESS_VIOLATION
365 : EXCEPTION_PRIV_INSTRUCTION
;
367 case TRAP_x86_PAGEFLT
: /* Page fault */
368 rec
.ExceptionCode
= EXCEPTION_ACCESS_VIOLATION
;
370 rec
.NumberParameters
= 2;
371 rec
.ExceptionInformation
[0] = (ERROR_sig(HANDLER_CONTEXT
) & 2) != 0;
372 rec
.ExceptionInformation
[1] = (ULONG_PTR
)FAULT_ADDRESS
;
373 if (!(rec
.ExceptionCode
= virtual_handle_fault( FAULT_ADDRESS
, rec
.ExceptionInformation
[0] )))
377 case TRAP_x86_ALIGNFLT
: /* Alignment check exception */
378 rec
.ExceptionCode
= EXCEPTION_DATATYPE_MISALIGNMENT
;
381 ERR( "Got unexpected trap %ld\n", TRAP_sig(HANDLER_CONTEXT
) );
383 case TRAP_x86_NMI
: /* NMI interrupt */
384 case TRAP_x86_DNA
: /* Device not available exception */
385 case TRAP_x86_DOUBLEFLT
: /* Double fault exception */
386 case TRAP_x86_TSSFLT
: /* Invalid TSS exception */
387 case TRAP_x86_MCHK
: /* Machine check exception */
388 case TRAP_x86_CACHEFLT
: /* Cache flush exception */
389 rec
.ExceptionCode
= EXCEPTION_ILLEGAL_INSTRUCTION
;
393 __regs_RtlRaiseException( &rec
, &context
);
395 restore_context( &context
, HANDLER_CONTEXT
);
398 /**********************************************************************
401 * Handler for SIGTRAP.
403 static HANDLER_DEF(trap_handler
)
405 EXCEPTION_RECORD rec
;
408 save_context( &context
, HANDLER_CONTEXT
);
409 rec
.ExceptionFlags
= EXCEPTION_CONTINUABLE
;
410 rec
.ExceptionRecord
= NULL
;
411 rec
.ExceptionAddress
= (LPVOID
)context
.Rip
;
412 rec
.NumberParameters
= 0;
416 case TRAP_TRACE
: /* Single-step exception */
417 rec
.ExceptionCode
= EXCEPTION_SINGLE_STEP
;
418 EFL_sig(HANDLER_CONTEXT
) &= ~0x100; /* clear single-step flag */
420 case TRAP_BRKPT
: /* Breakpoint exception */
421 rec
.ExceptionAddress
= (char *)rec
.ExceptionAddress
- 1; /* back up over the int3 instruction */
424 rec
.ExceptionCode
= EXCEPTION_BREAKPOINT
;
428 __regs_RtlRaiseException( &rec
, &context
);
429 restore_context( &context
, HANDLER_CONTEXT
);
432 /**********************************************************************
435 * Handler for SIGFPE.
437 static HANDLER_DEF(fpe_handler
)
439 EXCEPTION_RECORD rec
;
442 save_context( &context
, HANDLER_CONTEXT
);
443 rec
.ExceptionFlags
= EXCEPTION_CONTINUABLE
;
444 rec
.ExceptionRecord
= NULL
;
445 rec
.ExceptionAddress
= (LPVOID
)context
.Rip
;
446 rec
.NumberParameters
= 0;
451 rec
.ExceptionCode
= EXCEPTION_ARRAY_BOUNDS_EXCEEDED
;
454 rec
.ExceptionCode
= EXCEPTION_INT_DIVIDE_BY_ZERO
;
457 rec
.ExceptionCode
= EXCEPTION_INT_OVERFLOW
;
460 rec
.ExceptionCode
= EXCEPTION_FLT_DIVIDE_BY_ZERO
;
463 rec
.ExceptionCode
= EXCEPTION_FLT_OVERFLOW
;
466 rec
.ExceptionCode
= EXCEPTION_FLT_UNDERFLOW
;
469 rec
.ExceptionCode
= EXCEPTION_FLT_INEXACT_RESULT
;
473 rec
.ExceptionCode
= EXCEPTION_FLT_INVALID_OPERATION
;
477 __regs_RtlRaiseException( &rec
, &context
);
478 restore_context( &context
, HANDLER_CONTEXT
);
481 /**********************************************************************
484 * Handler for SIGINT.
486 static HANDLER_DEF(int_handler
)
488 if (!dispatch_signal(SIGINT
))
490 EXCEPTION_RECORD rec
;
493 save_context( &context
, HANDLER_CONTEXT
);
494 rec
.ExceptionCode
= CONTROL_C_EXIT
;
495 rec
.ExceptionFlags
= EXCEPTION_CONTINUABLE
;
496 rec
.ExceptionRecord
= NULL
;
497 rec
.ExceptionAddress
= (LPVOID
)context
.Rip
;
498 rec
.NumberParameters
= 0;
499 __regs_RtlRaiseException( &rec
, &context
);
500 restore_context( &context
, HANDLER_CONTEXT
);
505 /**********************************************************************
508 * Handler for SIGABRT.
510 static HANDLER_DEF(abrt_handler
)
512 EXCEPTION_RECORD rec
;
515 save_context( &context
, HANDLER_CONTEXT
);
516 rec
.ExceptionCode
= EXCEPTION_WINE_ASSERTION
;
517 rec
.ExceptionFlags
= EH_NONCONTINUABLE
;
518 rec
.ExceptionRecord
= NULL
;
519 rec
.ExceptionAddress
= (LPVOID
)context
.Rip
;
520 rec
.NumberParameters
= 0;
521 __regs_RtlRaiseException( &rec
, &context
); /* Should never return.. */
522 restore_context( &context
, HANDLER_CONTEXT
);
526 /**********************************************************************
529 * Handler for SIGQUIT.
531 static HANDLER_DEF(quit_handler
)
537 /**********************************************************************
540 * Handler for SIGUSR1, used to signal a thread that it got suspended.
542 static HANDLER_DEF(usr1_handler
)
546 save_context( &context
, HANDLER_CONTEXT
);
547 wait_suspend( &context
);
548 restore_context( &context
, HANDLER_CONTEXT
);
552 /**********************************************************************
553 * get_signal_stack_total_size
555 * Retrieve the size to allocate for the signal stack, including the TEB at the bottom.
556 * Must be a power of two.
558 size_t get_signal_stack_total_size(void)
560 assert( sizeof(TEB
) <= 2*getpagesize() );
561 return 2*getpagesize(); /* this is just for the TEB, we don't need a signal stack */
565 /***********************************************************************
568 * Set a signal handler
570 static int set_handler( int sig
, void (*func
)() )
572 struct sigaction sig_act
;
574 sig_act
.sa_sigaction
= func
;
575 sig_act
.sa_mask
= server_block_set
;
576 sig_act
.sa_flags
= SA_RESTART
| SA_SIGINFO
| SA_ONSTACK
;
577 return sigaction( sig
, &sig_act
, NULL
);
581 /***********************************************************************
582 * __wine_set_signal_handler (NTDLL.@)
584 int CDECL
__wine_set_signal_handler(unsigned int sig
, wine_signal_handler wsh
)
586 if (sig
> sizeof(handlers
) / sizeof(handlers
[0])) return -1;
587 if (handlers
[sig
] != NULL
) return -2;
593 /**********************************************************************
596 void signal_init_thread( TEB
*teb
)
599 arch_prctl( ARCH_SET_GS
, teb
);
601 # error Please define setting %gs for your architecture
605 /**********************************************************************
606 * signal_init_process
608 void signal_init_process(void)
610 if (set_handler( SIGINT
, (void (*)())int_handler
) == -1) goto error
;
611 if (set_handler( SIGFPE
, (void (*)())fpe_handler
) == -1) goto error
;
612 if (set_handler( SIGSEGV
, (void (*)())segv_handler
) == -1) goto error
;
613 if (set_handler( SIGILL
, (void (*)())segv_handler
) == -1) goto error
;
614 if (set_handler( SIGABRT
, (void (*)())abrt_handler
) == -1) goto error
;
615 if (set_handler( SIGQUIT
, (void (*)())quit_handler
) == -1) goto error
;
616 if (set_handler( SIGUSR1
, (void (*)())usr1_handler
) == -1) goto error
;
618 if (set_handler( SIGBUS
, (void (*)())segv_handler
) == -1) goto error
;
621 if (set_handler( SIGTRAP
, (void (*)())trap_handler
) == -1) goto error
;
631 /**********************************************************************
632 * RtlLookupFunctionEntry (NTDLL.@)
634 PRUNTIME_FUNCTION WINAPI
RtlLookupFunctionEntry( ULONG64 pc
, ULONG64
*base
,
635 UNWIND_HISTORY_TABLE
*table
)
642 /**********************************************************************
643 * RtlVirtualUnwind (NTDLL.@)
645 PVOID WINAPI
RtlVirtualUnwind ( ULONG type
, ULONG64 base
, ULONG64 pc
,
646 RUNTIME_FUNCTION
*function
, CONTEXT
*context
,
647 PVOID
*data
, ULONG64
*frame
,
648 KNONVOLATILE_CONTEXT_POINTERS
*ctx_ptr
)
655 /**********************************************************************
656 * __wine_enter_vm86 (NTDLL.@)
658 void __wine_enter_vm86( CONTEXT
*context
)
660 MESSAGE("vm86 mode not supported on this platform\n");
663 /**********************************************************************
664 * DbgBreakPoint (NTDLL.@)
666 __ASM_GLOBAL_FUNC( DbgBreakPoint
, "int $3; ret")
668 /**********************************************************************
669 * DbgUserBreakPoint (NTDLL.@)
671 __ASM_GLOBAL_FUNC( DbgUserBreakPoint
, "int $3; ret")
673 #endif /* __x86_64__ */