- Main Page
- Data Structures
- Files
- Directories

- Search for |

- File List
- Globals

# idt.h

Go to the documentation of this file.

    00001 /*****************************************************************************************
    00002  Copyright (c) 2002-2004 The UbixOS Project
    00003  All rights reserved.
    00004
    00005  Redistribution and use in source and binary forms, with or without modification, are
    00006  permitted provided that the following conditions are met:
    00007
    00008  Redistributions of source code must retain the above copyright notice, this list of
    00009  conditions, the following disclaimer and the list of authors.  Redistributions in binary
    00010  form must reproduce the above copyright notice, this list of conditions, the following
    00011  disclaimer and the list of authors in the documentation and/or other materials provided
    00012  with the distribution. Neither the name of the UbixOS Project nor the names of its
    00013  contributors may be used to endorse or promote products derived from this software
    00014  without specific prior written permission.
    00015
    00016  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
    00017  EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    00018  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
    00019  THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    00020  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
    00021  OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    00022  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
    00023  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    00024  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    00025
    00026  $Id: idt_8h-source.html 88 2016-01-12 00:11:29Z reddawg $
    00027
    00028 *****************************************************************************************/
    00029
    00030 #ifndef _IDT_H
    00031 #define _IDT_H
    00032
    00033 #include <ubixos/types.h>
    00034 #include <sys/gdt.h>
    00035
    00036 #define EFLAG_TF         0x100
    00037 #define EFLAG_IF         0x200
    00038 #define EFLAG_IOPL3      0x3000
    00039 #define EFLAG_VM         0x20000
    00040
    00041 int idt_init();
    00042 void setVector(void *handler, unsigned char interrupt, unsigned short controlMajor);
    00043 void setTaskVector(uInt8 interrupt,uInt16 controlMajor,uInt8 selector);
    00044 void intNull();
    00045
    00046 void _int0();
    00047 void _int1();
    00048 void _int2();
    00049 void _int3();
    00050 void _int4();
    00051 void _int5();
    00052 void _int6();
    00053 void _int7();
    00054 void _int8();
    00055 void _int9();
    00056 void _int10();
    00057 void _int11();
    00058 void _int12();
    00059 void _int13();
    00060 void timerInt();
    00061
    00062 #endif
    00063
    00064 /***
    00065  $Log: idt_8h-source.html,v $
    00065  Revision 1.7  2006/12/15 17:47:05  reddawg
    00065  Updates
    00065
    00066  Revision 1.1.1.1  2006/06/01 12:46:15  reddawg
    00067  ubix2
    00068
    00069  Revision 1.2  2005/10/12 00:13:37  reddawg
    00070  Removed
    00071
    00072  Revision 1.1.1.1  2005/09/26 17:23:52  reddawg
    00073  no message
    00074
    00075  Revision 1.5  2004/09/07 21:54:38  reddawg
    00076  ok reverted back to old scheduling for now....
    00077
    00078  Revision 1.3  2004/07/09 13:16:41  reddawg
    00079  idt: idtInit to idt_init
    00080  Adjusted Startup Routines
    00081
    00082  Revision 1.2  2004/05/21 15:12:17  reddawg
    00083  Cleaned up
    00084
    00085
    00086  END
    00087  ***/