亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gdt.h

?? 一個迷你操作系統gazos的源碼
?? H
字號:
/* * gdt.h:   symbols and macros for building descriptors and descriptor tables * * (C) 1998 Ramon van Handel, the Alliance Operating System Team * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */#ifndef __GDT_H#define __GDT_H/* * The desc_table, stnd_desc and gate_desc macros piece together a descriptor * table. * * Example usage: * *  desc_table(GDT, 2) { *     stnd_desc(0, 0, 0), *     stnd_desc(0, 0xfffff, (D_CODE + D_READ + D_BIG + D_BIG_LIM)) *  }; * * gate_desc(offset, selector, control)   ;For gate descriptors * stnd_desc(base, limit, control)	  ;For all other descriptors * *  base    is the full 32 bit base address of the segment *  limit   is one less than the segment length in 1 or 4K byte units *  control the sum of all the "D_" equates which apply (for call gates, you *          also add the "parameter dword count" to flags). * * desc_table(symbol, size)               ;Start a descriptor table * *  symbol  is the C symbol that is used for this descriptor table *  size    is the amount of descriptors defined in this table * * The descriptor table can be accessed in the code through the symbol [symbol], * which is defined as an array of DT_entry unions.  Every DT_entry union can * contain either a normal descriptor, gate descriptor, or some other value * which is 64 bits in size (this could be used to store custom info in the * dummy descriptor of the GDT, for instance.) * * The dummy value can be inserted like this: * *  desc_table(GDT, 2) { *     {dummy: 0x1234567890123456}, *     ... *  }; *//* *  Each descriptor should have exactly one of next 8 codes to define the *  type of descriptor */#define D_LDT   0x200   /* LDT segment        */#define D_TASK  0x500   /* Task gate          */#define D_TSS   0x900   /* TSS                */#define D_CALL  0x0C00  /* 386 call gate      */#define D_INT   0x0E00  /* 386 interrupt gate */#define D_TRAP  0x0F00  /* 386 trap gate      */#define D_DATA  0x1000  /* Data segment       */#define D_CODE  0x1800  /* Code segment       *//* *  Descriptors may include the following as appropriate: */#define D_DPL3         0x6000   /* DPL3 or mask for DPL                    */#define D_DPL2         0x4000   /* DPL2 or mask for DPL                    */#define D_DPL1         0x2000   /* DPL1 or mask for DPL                    */#define D_PRESENT      0x8000   /* Present                                 */#define D_NOT_PRESENT  0x8000   /* Not Present                             */                                /* Note, the PRESENT bit is set by default */                                /* Include NOT_PRESENT to turn it off      */                                /* Do not specify D_PRESENT                *//* *  Segment descriptors (not gates) may include: */#define D_ACC      0x100  /* Accessed (Data or Code)          */#define D_WRITE    0x200  /* Writable (Data segments only)    */#define D_READ     0x200  /* Readable (Code segments only)    */#define D_BUSY     0x200  /* Busy (TSS only)                  */#define D_EXDOWN   0x400  /* Expand down (Data segments only) */#define D_CONFORM  0x400  /* Conforming (Code segments only)  */#define D_BIG      0x40	  /* Default to 32 bit mode           */#define D_BIG_LIM  0x80	  /* Limit is in 4K units             *//* *  Now we define the structures for descriptors and gates: */struct x86_desc {   unsigned short limit_low;     /* limit 0..15    */   unsigned short base_low;      /* base  0..15    */   unsigned char base_med;       /* base  16..23   */   unsigned char access;         /* access byte    */   unsigned int limit_high:4;    /* limit 16..19   */   unsigned int granularity:4;   /* granularity    */   unsigned char base_high;      /* base 24..31    */} __attribute__ ((packed));struct x86_gate {   unsigned short offset_low;   /* offset 0..15    */   unsigned short selector;     /* selector        */	   unsigned short access;       /* access flags    */   unsigned short offset_high;  /* offset 16..31   */} __attribute__ ((packed));/* *  Descriptor tables are basically arrays of either standard or gate *  descriptors;  The exception is the first descriptor, which is a *  'dummy' and can be filled with anything without crashing the machine. * *  We define the union DT_entry as a general type of entry in a descriptor *  table;  It can contain a normal descriptor, a gate descriptor, or any *  64-bit number (for defining the dummy entries, if neccessary.) */union DT_entry {   struct x86_desc desc;     /* Normal descriptor */   struct x86_gate gate;     /* Gate descriptor   */   unsigned long long dummy; /* Any other info    */};/* * Now we perform the macro magic of the day. */#define desc_table(name,length) union DT_entry name[length] = #define stnd_desc(base, limit, control) {desc: {(limit & 0xffff), (base & 0xffff), ((base >> 16) & 0xff), \                                               ((control+D_PRESENT) >> 8), (limit >> 16), \                                               ((control & 0xff) >> 4), (base >> 24)}}#define gate_desc(offset, selector, control) {gate: {(offset & 0xffff), selector, \                                                     (control+D_PRESENT), (offset >> 16) }}/* These are bound to look a bit cryptic, so I'll just show what the result * would look like: * * desc_table(GDT, 3) { *    stnd_desc(base, limit, control), *    stnd_desc(base, limit, control), *    gate_desc(offset, selector, control) * }; * * ... would produce something looking like:  * * union DT_entry GDT[3] = { *    {desc: {limit_low, base_low, base_med, access, limit_high, granularity, base_high}}, *    {desc: {limit_low, base_low, base_med, access, limit_high, granularity, base_high}}, *    {gate: {offset_low, selector, word_count, access, offset_high}} * };  * * The values are conveted using a bit of cryptic, but straightforward magic. */#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国内外成人在线| 琪琪久久久久日韩精品| 在线观看国产日韩| 亚洲图片一区二区| 91精品国产综合久久福利| 日韩精品午夜视频| 欧美成人激情免费网| 韩国av一区二区三区四区| 久久久久久电影| 成人毛片老司机大片| 综合分类小说区另类春色亚洲小说欧美| www.欧美色图| 亚洲永久精品国产| 91精品国产91热久久久做人人| 麻豆成人久久精品二区三区红| 欧美一区二区免费观在线| 看电视剧不卡顿的网站| 国产亚洲一本大道中文在线| 成人成人成人在线视频| 亚洲午夜久久久| 精品国产乱码久久久久久牛牛| 成人午夜电影久久影院| 亚洲综合视频网| 日韩精品一区二| 成人av在线资源网站| 午夜精品久久久| 欧美电视剧免费全集观看| 国产91精品久久久久久久网曝门| 亚洲已满18点击进入久久| 欧美一区二区三区小说| 大白屁股一区二区视频| 天天做天天摸天天爽国产一区 | 欧美日韩一级大片网址| 久久精品国产一区二区三 | 成人精品视频一区二区三区尤物| 亚洲一区免费视频| 久久久久久久性| 日韩国产一二三区| 国产999精品久久久久久绿帽| 久久综合色天天久久综合图片| 中文字幕 久热精品 视频在线 | 欧美自拍丝袜亚洲| 亚洲国产精品嫩草影院| 成人一级片网址| 欧美一级日韩免费不卡| 精品粉嫩超白一线天av| 国产天堂亚洲国产碰碰| 一区二区三区高清在线| 国产精品婷婷午夜在线观看| 伊人一区二区三区| 蜜臀久久99精品久久久久久9| 午夜不卡av免费| 国产一区在线观看视频| 久久精品av麻豆的观看方式| 成人h动漫精品| 欧美视频精品在线| 久久久久久电影| 国产午夜亚洲精品午夜鲁丝片 | 国产一区二区精品久久91| 精品一区二区av| 色偷偷一区二区三区| 97精品电影院| 日韩欧美一区在线观看| 欧美一二三区在线观看| 亚洲精品日韩综合观看成人91| 亚洲欧洲国产日韩| 夜夜夜精品看看| 国产精品一区二区三区乱码| 成人国产亚洲欧美成人综合网 | 欧美男男青年gay1069videost| 欧美日本视频在线| 成人免费在线播放视频| 亚洲色图视频免费播放| 国产精品原创巨作av| 成人美女视频在线观看| 日韩欧美区一区二| 2024国产精品| 日韩成人一级片| 久久99精品久久久久| 国产成人综合视频| 欧美一区二区三区思思人| 久久综合一区二区| 天天色 色综合| 一本色道久久综合亚洲aⅴ蜜桃| 国产一区二区不卡| 久久国产精品露脸对白| 婷婷国产v国产偷v亚洲高清| 亚洲综合999| 亚洲你懂的在线视频| 国产精品欧美一级免费| wwww国产精品欧美| 精品国产91久久久久久久妲己| 91精品婷婷国产综合久久性色| 在线亚洲一区观看| 97久久超碰精品国产| 成人av第一页| 成人小视频在线| 国产老妇另类xxxxx| 欧美xxxxxxxx| 经典三级视频一区| 久久女同性恋中文字幕| 另类成人小视频在线| 精品国产一二三区| 精品一区二区在线观看| 91 com成人网| 日本视频中文字幕一区二区三区| 4438x亚洲最大成人网| 亚洲永久精品国产| 欧美精品久久久久久久久老牛影院| 亚洲国产成人tv| 91精品国产免费久久综合| 另类欧美日韩国产在线| 欧美成人aa大片| 精品在线一区二区| 亚洲美女偷拍久久| 欧美视频一区在线| 国产福利一区在线| 久久精品国产亚洲高清剧情介绍 | 亚洲尤物视频在线| 亚洲精品一区二区三区福利| 欧美一区二区黄| 日本一区二区免费在线| 欧美一区二区三区在线| 日韩一本二本av| 精品入口麻豆88视频| 国产网红主播福利一区二区| 国产精品视频一二三| 自拍偷自拍亚洲精品播放| 亚洲人成精品久久久久久 | 麻豆一区二区三| 国产精品无遮挡| 欧美日韩在线播| 国产精品1区二区.| 日欧美一区二区| 国产欧美日韩三区| 欧美在线一二三| 国产乱码精品一区二区三区五月婷| 国产精品私人自拍| 欧美丰满少妇xxxbbb| 99国产精品久久久久| 国产精品自拍毛片| 色综合久久66| 久久精品夜夜夜夜久久| 久久免费电影网| 中文字幕一区二区三区不卡在线| 一区二区三区色| 秋霞午夜av一区二区三区| 国产精品自在在线| 91小宝寻花一区二区三区| 欧美日韩情趣电影| 久久久九九九九| 亚洲黄色免费网站| 麻豆国产精品一区二区三区 | 国产盗摄一区二区| 色www精品视频在线观看| 日韩一区二区三区精品视频| 国产日韩欧美a| 亚洲国产精品久久久久婷婷884 | 国产福利一区在线观看| 91免费版在线看| 欧美一区二区视频免费观看| 中文字幕乱码久久午夜不卡 | 亚洲综合一区在线| 精品一区二区三区欧美| 99久久国产综合精品麻豆| 91精品国产一区二区人妖| 日本一区二区三区四区| 亚洲超碰97人人做人人爱| 国产一区二区按摩在线观看| 在线视频国产一区| 2020国产精品| 亚洲成人动漫一区| 成人午夜电影小说| 91精品国产色综合久久不卡电影 | 成人免费毛片aaaaa**| 欧美日本视频在线| 国产精品成人一区二区三区夜夜夜| 亚洲国产日产av| 国产成a人亚洲精品| 欧美喷水一区二区| 久久精品夜夜夜夜久久| zzijzzij亚洲日本少妇熟睡| 欧美精品久久99久久在免费线| 欧美日韩成人综合| 中文字幕欧美激情| 手机精品视频在线观看| 91啪亚洲精品| 国产午夜亚洲精品羞羞网站| 午夜精品福利一区二区三区蜜桃| 国产精品一区不卡| 日韩一级二级三级| 亚洲综合自拍偷拍| 国产精品一二三四五| 99精品热视频| 久久亚洲一区二区三区四区| 天天色图综合网| 欧美亚洲精品一区| 国产精品久久久久精k8| 国产一区二区在线观看视频| 欧美日韩国产成人在线免费|