Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > Re: How to debu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 25 Topic 1039 of 1118
Post > Topic >>

Re: How to debug inside the BIOS and/or interrupt?

by "Rod Pemberton" <spamtrap@[EMAIL PROTECTED] > Jul 5, 2007 at 06:33 PM

"Jim Leonard" <spamtrap@[EMAIL PROTECTED]
> wrote in message
news:1183651460.770925.288960@[EMAIL PROTECTED]
> On Jul 5, 1:17 am, "Rod Pemberton"  <spamt...@[EMAIL PROTECTED]
> wrote:
> > Is the *entire* IRQ 2 routine wrapped in CLI/STI also?
>
> No, it's not.  Should it be?  The interrupt handler is called by a
> hardware interrupt, and I was under the impression that, on entry to
> an interrupt handler, processor interrupts are disabled as if CLI were
> called.  At the end of my handler is an EOI (to tell the PIC the
> hardware interrupt has been serviced), and then IRET, which I thought
> set the interrupt flag again.  Am I misunderstanding something?
>

No.

Sorry, my mistake.  I should have asked if interrupts were disabled (IF
cleared) for the entire routine.  I wrapper my IRQ routines with CLI/STI
because they go through a trap gate.  This shouldn't affect you.  I was
considering that interrupts might be enabled for part of the IRQ routine,
and that it might be a problem.

Anyway, Ben thinks it might work better with interrupts enabled.  It's
worth
a shot.  I usually try all combinations anyway.  :-)  Helps to learn new
stuff - even if painful...

The problem I experienced with my personal OS was corruption of static or
shared data.  Since my IRQ routines were becoming quite large, I enabled
interrupts for non-critical ****tions of the routines.  I wanted to find
out
if the OS became more responsive or less so.  It seemed to be slightly
more
responsive.  So, I left it.  Unfortunately, there was one pointer which
absolutely needed to remain unchanged until each IRQ routine exited.  Of
course, allowing interrupts meant that the pointer was overwritten with a
new value with every interrupt.  Since the data pointed to at that time
was
non-critical, it appeared that things were working properly, but it
wasn't.


Rod Pemberton
 




 25 Posts in Topic:
How to debug inside the BIOS and/or interrupt?
Jim Leonard <spamtrap  2007-07-05 02:45:50 
Re: How to debug inside the BIOS and/or interrupt?
"Rod Pemberton"  2007-07-05 02:17:27 
Re: How to debug inside the BIOS and/or interrupt?
"Benjamin David Lunt  2007-07-05 15:28:00 
Re: How to debug inside the BIOS and/or interrupt?
NoSpam@[EMAIL PROTECTED]   2007-07-05 12:15:06 
Re: How to debug inside the BIOS and/or interrupt?
HubbleBubble <spamtra  2007-07-05 02:21:48 
Re: How to debug inside the BIOS and/or interrupt?
hartnegg <spamtrap@[EM  2007-07-05 08:11:22 
Re: How to debug inside the BIOS and/or interrupt?
Jim Leonard <spamtrap  2007-07-05 09:04:20 
Re: How to debug inside the BIOS and/or interrupt?
"Rod Pemberton"  2007-07-05 18:33:55 
Re: How to debug inside the BIOS and/or interrupt?
"Wolfgang Kern"  2007-07-06 17:40:44 
Re: How to debug inside the BIOS and/or interrupt?
Jim Leonard <spamtrap  2007-07-05 09:13:45 
Re: How to debug inside the BIOS and/or interrupt?
Jim Leonard <spamtrap  2007-07-05 10:07:22 
Re: How to debug inside the BIOS and/or interrupt?
"Rod Pemberton"  2007-07-05 18:32:16 
Re: How to debug inside the BIOS and/or interrupt?
"Markus.Humm"   2007-07-10 19:37:06 
Re: How to debug inside the BIOS and/or interrupt?
"Jason Burgon"   2007-07-05 22:55:04 
Re: How to debug inside the BIOS and/or interrupt?
Jim Leonard <spamtrap  2007-07-05 10:12:12 
Re: How to debug inside the BIOS and/or interrupt?
Jim Leonard <spamtrap  2007-07-05 14:49:30 
Re: How to debug inside the BIOS and/or interrupt?
Jim Leonard <spamtrap  2007-07-06 02:15:15 
Re: How to debug inside the BIOS and/or interrupt?
Jim Leonard <spamtrap  2007-07-06 03:38:11 
Re: How to debug inside the BIOS and/or interrupt?
NoSpam@[EMAIL PROTECTED]   2007-07-06 12:18:48 
Re: How to debug inside the BIOS and/or interrupt?
ArarghMail707NOSPAM <s  2007-07-06 15:31:57 
Re: How to debug inside the BIOS and/or interrupt?
Jim Leonard <spamtrap  2007-07-06 08:57:39 
Re: How to debug inside the BIOS and/or interrupt?
Jim Leonard <spamtrap  2007-07-06 09:39:13 
Re: How to debug inside the BIOS and/or interrupt?
Jim Leonard <spamtrap  2007-07-11 09:01:39 
Re: How to debug inside the BIOS and/or interrupt?
NoSpam@[EMAIL PROTECTED]   2007-07-12 11:46:55 
Re: How to debug inside the BIOS and/or interrupt?
"Jason Burgon"   2007-07-12 18:28:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 0:09:18 CDT 2008.