niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » FreeBSD
Software interrupts
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
Jamie
*nix forums beginner


Joined: 09 Apr 2005
Posts: 15

PostPosted: Fri Jul 21, 2006 6:45 am    Post subject: Software interrupts Reply with quote

I am having some trouble with understanding software interrupts verses
system calls in the freebsd kernel.


As I understand it, making a system call actually causes a hardware
trap because you are calling 0x80.

But I got the impression that software traps did not occur in hardware.
Rather, that there was an array of signals for a process that is checked
when the process is leaving kernel mode, and if the "flag" is set, then
some code is executed before returning to the user mode for the process.


But according to a book I'm studying "Design and Implementation of the
FreeBSD Operating System", there is a function called trap() that is
called whenever there is a hardware trap or a software initiated trap
other than system calls (p53).

This seems to say that there is a context switch when there is a
software interrupt, the hardware saves states, and the registers are all
saved, etc, even for a software interrupt such as requests for network
processing.


Is that correct?

- Jamie





The Moon is Waning Crescent (16% of Full)
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 2:06 pm | All times are GMT
navigation Forum index » *nix » BSD » FreeBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Problem w/ Yast2, can't install new software or update Emmanuel Durand Suse 0 Thu Jul 20, 2006 5:50 am
No new posts 2 Perl Software Engineers needed for great contract in NYC jessica.dwyer@scfoster.co Perl 2 Wed Jul 19, 2006 4:41 pm
No new posts Please suggest a video capture software thisissantanu@gmail.com Debian 2 Wed Jul 19, 2006 11:10 am
No new posts Solaris 8 install image and software v1 and v3 images BertieBigBollox@gmail.com Solaris 2 Tue Jul 18, 2006 2:07 pm
No new posts Software RAID1 = HD light always on? x0054 hardware 3 Tue Jul 18, 2006 7:12 am

MPAA | Xbox Mod Chip | Personal Loans | Mobile Phone | Property Search
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1034s ][ Queries: 16 (0.0388s) ][ GZIP on - Debug on ]