Re: LSS and MOV SS
- From: Tim Roberts <spamtrap@xxxxxxxxxx>
- Date: Tue, 21 Mar 2006 06:48:35 GMT
"Mark Whitlock" <spamtrap@xxxxxxxxxx> wrote:
Spamt ,
Don't you use cli to stop interrupts before the
move and sti to restart them afterwards ?
It's not necessary. The MOV SS,xx instruction automatically disables
interrupts for one instruction, to allow SP and SS to be loaded atomically.
Try using debug to single step through a MOV SS/MOV SP pair; it doesn't
stop in between them.
What the original poster asked about is a slightly different situation, in
which the code (perhaps intentionally) does something stupid and causes an
exception in the first instruction. As he says, this will usually cause a
triple fault which halts the CPU, regardless of whether interrupts are
disabled or not.
--
- Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.
- Follow-Ups:
- Re: LSS and MOV SS
- From: spamtrap
- Re: LSS and MOV SS
- References:
- LSS and MOV SS
- From: spamtrap
- Re: LSS and MOV SS
- From: Mark Whitlock
- LSS and MOV SS
- Prev by Date: Re: 2-dimensional DW array access without MULs?
- Next by Date: Re: LSS and MOV SS
- Previous by thread: Re: LSS and MOV SS
- Next by thread: Re: LSS and MOV SS
- Index(es):
Relevant Pages
|