2020-07-25 23:50:03 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
2020-08-23 13:52:37 +00:00
< meta name = "generator" content = "Doxygen 1.8.19" / >
2020-07-25 23:50:03 +00:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > MyOS Kernel: kernel/cpu/i386/isr.c File Reference< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "resize.js" > < / script >
< script type = "text/javascript" src = "navtreedata.js" > < / script >
< script type = "text/javascript" src = "navtree.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td id = "projectalign" style = "padding-left: 0.5em;" >
< div id = "projectname" > MyOS Kernel
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2020-08-23 13:52:37 +00:00
<!-- Generated by Doxygen 1.8.19 -->
2020-07-25 23:50:03 +00:00
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
< / script >
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */< / script >
< div id = "main-nav" > < / div >
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('isr_8c.html',''); initResizable(); });
/* @license-end */
< / script >
< div id = "doc-content" >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div class = "header" >
< div class = "summary" >
< a href = "#func-members" > Functions< / a > |
< a href = "#var-members" > Variables< / a > < / div >
< div class = "headertitle" >
< div class = "title" > isr.c File Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< div class = "textblock" > < code > #include " ../../kernel.h" < / code > < br / >
< code > #include " < a class = "el" href = "tasking_8h_source.html" > ../../tasking.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "vga__err_8h_source.html" > ../../vga_err.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "address__spaces_8h_source.html" > ../../address_spaces.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "halt_8h_source.html" > ../halt.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "isr_8h_source.html" > ../isr.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "paging_8h_source.html" > ../paging.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "serial_8h_source.html" > ../serial.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "gdt_8h_source.html" > gdt.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "idt_8h_source.html" > idt.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "i386_2isr_8h_source.html" > isr.h< / a > " < / code > < br / >
< code > #include " interrupt.h" < / code > < br / >
< code > #include < cpu/ports.h> < / code > < br / >
< code > #include < stdint.h> < / code > < br / >
< code > #include < string.h> < / code > < br / >
< code > #include < sys/syscalls.h> < / code > < br / >
< code > #include < sys/types.h> < / code > < br / >
< / div > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "func-members" > < / a >
Functions< / h2 > < / td > < / tr >
< tr class = "memitem:a2127468804d6c8a288db9388f8f5d684" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "isr_8c.html#a2127468804d6c8a288db9388f8f5d684" > irq_handler< / a > (< a class = "el" href = "structregisters__t.html" > registers_t< / a > *r)< / td > < / tr >
< tr class = "separator:a2127468804d6c8a288db9388f8f5d684" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aed0ecf87a0ed3270ce0e9c68cd01a946" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "isr_8c.html#aed0ecf87a0ed3270ce0e9c68cd01a946" > isr_install< / a > ()< / td > < / tr >
< tr class = "separator:aed0ecf87a0ed3270ce0e9c68cd01a946" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aadec5105d6190a106710e70e76b7c5b6" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "isr_8c.html#aadec5105d6190a106710e70e76b7c5b6" > isr_handler< / a > (< a class = "el" href = "structregisters__t.html" > registers_t< / a > *r)< / td > < / tr >
< tr class = "separator:aadec5105d6190a106710e70e76b7c5b6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:add073e14261bb5f977abc321d03f809b" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "isr_8c.html#add073e14261bb5f977abc321d03f809b" > isr_register_handler< / a > (int n, < a class = "el" href = "isr_8h.html#a2ae93e6d11fda68bd746e046e2411a90" > isr_t< / a > handler)< / td > < / tr >
< tr class = "separator:add073e14261bb5f977abc321d03f809b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "var-members" > < / a >
Variables< / h2 > < / td > < / tr >
< tr class = "memitem:a484241268f0a389560492a2ace986fed" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a484241268f0a389560492a2ace986fed" > < / a >
static < a class = "el" href = "isr_8h.html#a2ae93e6d11fda68bd746e046e2411a90" > isr_t< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "isr_8c.html#a484241268f0a389560492a2ace986fed" > irq_handlers< / a > [16]< / td > < / tr >
< tr class = "memdesc:a484241268f0a389560492a2ace986fed" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Handlers for the PIC interrupts. < br / > < / td > < / tr >
< tr class = "separator:a484241268f0a389560492a2ace986fed" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a79c9f7d90e19dbcd570e013274d75bc1" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a79c9f7d90e19dbcd570e013274d75bc1" > < / a >
static char *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "isr_8c.html#a79c9f7d90e19dbcd570e013274d75bc1" > exception_messages< / a > []< / td > < / tr >
< tr class = "memdesc:a79c9f7d90e19dbcd570e013274d75bc1" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > List of messages for each exception. < br / > < / td > < / tr >
< tr class = "separator:a79c9f7d90e19dbcd570e013274d75bc1" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< h2 class = "groupheader" > Function Documentation< / h2 >
< a id = "a2127468804d6c8a288db9388f8f5d684" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a2127468804d6c8a288db9388f8f5d684" > ◆ < / a > < / span > irq_handler()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void irq_handler < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "structregisters__t.html" > registers_t< / a > *  < / td >
< td class = "paramname" > < em > r< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Handler for PIC interrupts < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > r< / td > < td > The saved state of the CPU < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< a id = "aadec5105d6190a106710e70e76b7c5b6" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aadec5105d6190a106710e70e76b7c5b6" > ◆ < / a > < / span > isr_handler()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void isr_handler < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "structregisters__t.html" > registers_t< / a > *  < / td >
< td class = "paramname" > < em > r< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Handler for non-PIC interrupts < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > r< / td > < td > The saved state of the CPU < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< a id = "aed0ecf87a0ed3270ce0e9c68cd01a946" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aed0ecf87a0ed3270ce0e9c68cd01a946" > ◆ < / a > < / span > isr_install()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void isr_install < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Install the interrupt handlers into the IDT. < / p >
< / div >
< / div >
< a id = "add073e14261bb5f977abc321d03f809b" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#add073e14261bb5f977abc321d03f809b" > ◆ < / a > < / span > isr_register_handler()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void isr_register_handler < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > n< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "isr_8h.html#a2ae93e6d11fda68bd746e046e2411a90" > isr_t< / a >   < / td >
< td class = "paramname" > < em > handler< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Register an IRQ handler < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > n< / td > < td > the IRQ to register a handler for < / td > < / tr >
< tr > < td class = "paramname" > handler< / td > < td > the handler to register < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
< li class = "navelem" > < a class = "el" href = "dir_dc43877d82dd332f9fb2071fcca799d6.html" > kernel< / a > < / li > < li class = "navelem" > < a class = "el" href = "dir_de6efc35b99b831d558bda0d93c38d37.html" > cpu< / a > < / li > < li class = "navelem" > < a class = "el" href = "dir_4f1b1f9de0a2e79802f54c784fb69b12.html" > i386< / a > < / li > < li class = "navelem" > < a class = "el" href = "isr_8c.html" > isr.c< / a > < / li >
2020-08-23 13:52:37 +00:00
< li class = "footer" > Generated by < a href = "http://www.doxygen.org/index.html" > < img class = "footer" src = "doxygen.svg" width = "104" height = "31" alt = "doxygen" / > < / a > 1.8.19 < / li >
2020-07-25 23:50:03 +00:00
< / ul >
< / div >
< / body >
< / html >