OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Apr 24, 2024 6:13 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: I/O APIC read at address 0x0000fec00000 spans 32-boundary
PostPosted: Mon Apr 03, 2017 3:11 am 
Offline
Member
Member
User avatar

Joined: Sat Dec 31, 2016 1:43 am
Posts: 48
Location: China
I let my OS enter 64-bit mode and I mapped I/O APIC at 0xFFFFFF8000800000. However, when I try to read it in 64-bit mode, bochs shouted a message like the topic and a #PF exception occurred.
What's the problem? I guess:

The access to I/O APIC can't span a dword.
Or
The virtual address can't be beyond 4G virtual memory space.

Are those right, or are there any other causes? How to solve the problem?
Thanks for any help.


Attachments:
File comment: The screenshot.
捕获.PNG
捕获.PNG [ 47.73 KiB | Viewed 1190 times ]

_________________
Doing steadfastly, or doing nil.
Top
 Profile  
 
 Post subject: Re: I/O APIC read at address 0x0000fec00000 spans 32-boundar
PostPosted: Mon Apr 03, 2017 5:50 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5143
Js2xxx wrote:
The access to I/O APIC can't span a dword.

This is why you see an error from the IOAPIC module. The cause of the page fault is probably something else.


Top
 Profile  
 
 Post subject: Re: I/O APIC read at address 0x0000fec00000 spans 32-boundar
PostPosted: Mon Apr 03, 2017 7:27 am 
Offline
Member
Member
User avatar

Joined: Sat Dec 31, 2016 1:43 am
Posts: 48
Location: China
Octocontrabass wrote:
This is why you see an error from the IOAPIC module.

Well, you may be right. But later when I'm trying to map it at the original address, it works well.
Anyway thanks.

EDIT:Wait. I use it in my loader and it's fixed, but I use it in my kernel it fails. What's the matter...??? Maybe there's another cause. My loader is a pure binary file and my kernel is an ELF file.
EDIT:After a long check, I find that after I change the page tables, it fails. Why though I remap it anywhere, it causes the failure?

_________________
Doing steadfastly, or doing nil.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 158 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group