Interrupts in user mode

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Locked
User avatar
BMW
Member
Member
Posts: 286
Joined: Mon Nov 05, 2012 8:31 pm
Location: New Zealand

Interrupts in user mode

Post by BMW »

Sorry if this is a dumb or RTFM question, but I have already tried to RTFM (Intel Manual and OSDev wiki) with no luck.

When an interrupt is called from user mode, what CS does the processor use?
Currently developing Lithium OS (LiOS).

Recursive paging saves lives.
"I want to change the world, but they won't give me the source code."
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Interrupts in user mode

Post by Combuster »

I don't buy a claim to RTFM, then posting a vague question with no accurate answer possible and demonstrating absolutely no knowledge on what said reading actually taught you.

In other words: go do your homework, and read things properly and thoroughly for a change, because the complete answer is contained in one section of the manual:

Hint: INT n/INTO/INT 3—Call to Interrupt Procedure. INSTRUCTION SET REFERENCE, A-M Vol. 2A 3-401
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
iansjack
Member
Member
Posts: 4711
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Interrupts in user mode

Post by iansjack »

Whatever the Gate descriptor tells it to. The descriptor contains a far pointer.
Locked