flat assembler
Message board for the users of flat assembler.
Index
> Main > when CPU fires an exception, |
Author |
|
Teehee 24 Feb 2011, 11:13
its like it crashes or CPU never crash?
_________________ Sorry if bad english. |
|||
24 Feb 2011, 11:13 |
|
edfed 24 Feb 2011, 11:47
exceptions are the internal CPU IRQs. exactlly as a peripheral IRQ calls an interrupt vector, the exceptions does the same.
and of course, the handler should exist (at least a IRET), otherwise the CPU crashes. exception handling depend on the feature you want to do... expand a segment? load a page? adjust bound? do nothing? |
|||
24 Feb 2011, 11:47 |
|
b1528932 24 Feb 2011, 14:24
ok, lets say there is int 3 instruction.
cpu fires vector 3. Vector 3 has offset > cs limit in idt. Double fault is fired. Double fault also has offset > limit. CPU enters triple fault. What happens now? How its restarted? Its just an internal reset function that flush registers and cache or there is an acpi function involved? |
|||
24 Feb 2011, 14:24 |
|
bogdanontanu 24 Feb 2011, 19:58
The CPU will restart from zero by hardware,
Reset hardware lines will be activated to inform the chipset and other buses of this event. Unfortunately some devices will not recognize this situation correctly and will loose states and configurations. Anyway you will have to restart from zero with CPU in real mode, BIOS tests, detection of all devices, reinitialization, reloading the OS.. from scratch... very slow. |
|||
24 Feb 2011, 19:58 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.