Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8296493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:01:56+00:00 2026-06-08T15:01:56+00:00

I’m trying to work out the control flow of an interrupt, specifically a page

  • 0

I’m trying to work out the control flow of an interrupt, specifically a page fault, on an x86 CPU. Here’s what I can figure out so far:

  1. IDT is populated with service routine addresses.
  2. Interrupt occurs.
  3. CPU saves EFLAGS, CS and EIP to stack.
  4. EIP is set to ISR address fetched from IDT, i.e. mov eip, [idtr+interruptNum*4]
  5. Interrupt routine executes.
  6. Interrupt routine completes with an iret instruction.

Now, let’s say the interrupt is actually a page fault relating to a NIC buffer. Would the ISR use out to tell the DMA controller to issue a copy from the system memory to the device (or vice versa), or am I way off base here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T15:01:58+00:00Added an answer on June 8, 2026 at 3:01 pm

    I believe you’re misunderstanding the way memory-mapped I/O works.

    When a device uses memory-mapped I/O, it is assigned a physical address range. The northbridge and/or southbridge as appropriate is configured so that when the CPU performs memory operations within that address range, the operations are directed to the device rather than to RAM. There is no copy of the same address space in RAM, and DMA is not involved.

    So that the device driver can access the memory-mapped I/O, the operating system will map a virtual address range to the relevant physical address range. Typically, for performance reasons, this will be a global mapping (i.e., the same mapping in every process) with access restricted to kernel mode. Since this virtual address space is always mapped, no page faults occur.

    If the device uses DMA rather than memory-mapped I/O, things are a bit different. The device driver will typically have reserved a block of non-pageable memory for the operation, so again, no page faults are involved. This memory does not even have to be mapped into the virtual address space in order to perform a DMA operation, because the DMA controller works with physical rather than virtual addresses. (Of course there will have to be a virtual address space mapping at some stage so that the memory block can be read/written by the device driver.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Basically, what I'm trying to create is a page of div tags, each has
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
Specifically, suppose I start with the string string =hello \'i am \' me And
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.