Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 30-08-2009, 04:47 PM   #1 (permalink)
Apprentice
 
Join Date: May 2007
Posts: 84
Default An interesting operating systems/ computer architecture question


Why is the interrupt vector stored in the low memory? can it be stored in high memory?

This is the question my teacher asked the very first day in operating systems class.

I studied whole day but cudnt come to a conclusion .. i think its because the high memory is used for user space.. But then the question arises why is high memory used for userspace and why is low memory for interrupt vector and o/s?
threeonethree is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 30-08-2009, 07:49 PM   #2 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,173
Default Re: An interesting operating systems/ computer architecture question

Quote:
Originally Posted by threeonethree View Post
I studied whole day but cudnt come to a conclusion .. i think its because the high memory is used for user space..
Bingo! You got it

Quote:
Originally Posted by threeonethree View Post
But then the question arises why is high memory used for userspace and why is low memory for interrupt vector and o/s?
Consider 2 machines, one with a total virtual memory of 512K and another with 256K (hypothetical scenario). Lets say the interrupt vectors are stored in the higher end - 512K. On the first machine, its fine but what on the second machine? The IVs don't exist! Isn't that a problem??? A flaw???

This was true during the olden days of 8-bit and 16-bit processors. These guys looked into the future and said, surely the memory addressing capacity will increase so lets make sure that the IVs are stored in a safe place which is future proof and hence the tradition. Most of the IVs and pointers are stored on the lower end of the address space. This is also the reason why the system space (or the kernel space) is at the start of the address space.
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."

http://phoenix-ani.blogspot.com
infra_red_dude is online now  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Charan
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 03:10 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2