include/global.h

Code:
  1. /*  
  2.     By Marcus Xing  
  3.     include/global.h  
  4.     包含全局变量的声明  
  5. */  
  6.   
  7. /*  
  8.     forward include:  
  9.     type.h  
  10.     const.h  
  11.     protect.h  
  12.     proc.h  
  13.     console.h  
  14.     tty.h  
  15. */  
  16.   
  17. #ifndef _GLOBAL_H_   
  18. #define _GLOBAL_H_   
  19.        
  20.     extern  u8              GDT_Ptr[6];             /* GDTR的6字节填充值 */  
  21.     extern  Descriptor      GDT[GDT_SIZE];          /* GDT的结构数组,有GDT_SIZE个Descriptor */  
  22.     extern  u8              IDT_Ptr[6];             /* IDTR的6字节填充值 */  
  23.     extern  Gate            IDT[IDT_SIZE];          /* IDT的结构数组,有IDT_SIZE个Gate */  
  24.     extern  u32             d_Disp_Pos;             /* 显示位置 */  
  25.     extern  TSS             tss;                    /* TSS,低特权级的段跳转到高特权级的段使用 */  
  26.     extern  PCB             PCB_Table[MAX_PROC];    /* PCB表 */  
  27.     extern  PCB*            p_Next_PCB;             /* 指向下一个运行的进程的PCB */  
  28.     extern  int             d_Flag_Reenter;         /* 判断是否中断重入 */  
  29.     extern  u32             d_Cur_Proc_Num;         /* 当前进程的个数 */  
  30.        
  31.     /* 各个进程的堆栈空间 */  
  32.     extern  u8              All_Proc_Stack_Space[ALL_PROC_STACK_SPACE];   
  33.        
  34.     /* 进程的与众不同的部分的表 */  
  35.     extern  Proc_Unique Proc_Unique_Table[MAX_PROC];   
  36.        
  37.     /* 记录是否是系统进程的表 */  
  38.     extern  int Is_System_Proc[MAX_PROC];   
  39.        
  40.     /* 外中断处理程序的表,共16个 */  
  41.     extern  IRQ_Handler IRQ_Handler_Table[IRQ_NUM];   
  42.        
  43.     /* 系统调用处理函数表,共3个 */  
  44.     extern  System_Call_Handler System_Call_Handler_Table[SYSTEM_CALL_HANDLER_NUM];   
  45.        
  46.     /* Ticks,沒发生一次时钟中断,自增1,无论是否重入 */  
  47.     extern  int d_Ticks;   
  48.        
  49.     /* TTY表 */  
  50.     extern  TTY TTY_Table[TTY_NUM];   
  51.        
  52.     /* Console表 */  
  53.     extern  Console Console_Table[TTY_NUM];   
  54.        
  55.     extern  int Current_Console;                     /* 当前的控制台 */  
  56.        
  57. #endif   

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值