Search found 4 matches

by bwahn
Fri Feb 03, 2006 3:20 am
Forum: Support
Topic: I have a question about Interrupt handler.
Replies: 1
Views: 3018

I have a question about Interrupt handler.

In "reactos/ntoskrnl/ke/i386/irq.c", There are the interrupt code : #define BUILD_COMMON_INTERRUPT_HANDLER() \ __asm__( \ "_KiCommonInterrupt:\n\t" \ "cld\n\t" \ "pushl %ds\n\t" \ "pushl %es\n\t" \ "pushl %fs\n\t" \ "pushl %gs\n\t" \ "movl $0xceafbeef,%eax\n\t" \ "pushl %eax\n\t" \ "movl $" STR(KERN...
by bwahn
Wed Feb 01, 2006 12:30 am
Forum: General Discussion and Feedback
Topic: About #define BUILD_COMMON_INTERRUPT_HANDLER() ?
Replies: 3
Views: 2178

0xceafbeef ?

above code, (\ntoskrnl\ke\i386\irqhand.s) line is ( "movl $0xceafbeef,%eax" ) what means? don't say that called just mov? It moves the 32 bit (movl) value specified by the hexadecimal constant $0xceafbeef to the eax processor register. It is AT&T syntax with <OPC> <source>,<destination> It also mus...
by bwahn
Tue Jan 31, 2006 2:03 pm
Forum: General Discussion and Feedback
Topic: About #define BUILD_COMMON_INTERRUPT_HANDLER() ?
Replies: 3
Views: 2178

About #define BUILD_COMMON_INTERRUPT_HANDLER() ?

.global _irq_handler_0 _irq_handler_0: cld pusha pushl %ds pushl %es pushl %fs pushl %gs movl $0xceafbeef,%eax pushl %eax movw $KERNEL_DS,%ax movw %ax,%ds movw %ax,%es movw %ax,%gs movl $PCR_SELECTOR, %eax movl %eax, %fs pushl %esp pushl $(IRQ_BASE + 0) call _KiInterruptDispatch popl %eax popl %eax ...
by bwahn
Thu Dec 08, 2005 2:00 pm
Forum: General Discussion and Feedback
Topic: About keyboard interrupt handler routine?
Replies: 0
Views: 3642

About keyboard interrupt handler routine?

I am working on Keyboard Driver for substitution PNPi8042 driver At first, focusing on Windows 2000 or above. It's WinNT device driver. it's not WDM I have refereced _MpsIpiInterrupt Interrupt Handler in Reactos. we have build a test driver, which is a keyboard interrupt driver. we don't use IoConne...