mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
Disable interrupts while in the debugstub.
This commit is contained in:
parent
5f44ec8ac1
commit
e0d3f0debc
2 changed files with 13 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
; Generated at 7-3-2015 19:18:42
|
||||
; Generated at 20-7-2015 14:42:43
|
||||
|
||||
|
||||
|
||||
|
|
@ -6,6 +6,9 @@
|
|||
|
||||
DebugStub_TracerEntry:
|
||||
|
||||
cli
|
||||
|
||||
|
||||
Pushad
|
||||
Mov [DebugStub_PushAllPtr], ESP
|
||||
Mov [DebugStub_CallerEBP], EBP
|
||||
|
|
@ -33,6 +36,8 @@ Call DebugStub_Executing
|
|||
|
||||
Popad
|
||||
|
||||
sti
|
||||
|
||||
DebugStub_TracerEntry_Exit:
|
||||
IRet
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,10 @@ Interrupt TracerEntry {
|
|||
// This code is temporarily disabled as IRQs are not enabled right now.
|
||||
// LockOrExit
|
||||
|
||||
// First, disable interrupts, so debugging is much more stable
|
||||
! cli
|
||||
|
||||
|
||||
+All
|
||||
// Save current ESP so we can look at the results of PushAll later
|
||||
.PushAllPtr = ESP
|
||||
|
|
@ -57,6 +61,9 @@ EAX = EBX
|
|||
|
||||
-All
|
||||
|
||||
// restore interupts
|
||||
! sti
|
||||
|
||||
// Temp disabled, see comment on LockOrExit above
|
||||
// Unlock
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue