⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 init.c

📁 freedos32的源代码
💻 C
字号:
/* DPMI Driver for FD32: driver initialization * by Luca Abeni *  * This is free software; see GPL.txt */#include <ll/i386/hw-func.h>#include <ll/i386/string.h>#include <ll/i386/error.h>#include "kernel.h"extern void chandler(DWORD intnum, struct registers r);extern int use_lfn;/*void DPMI_init(DWORD cs, char *cmdline) */void DPMI_init(struct process_info *p){  int done = 0;  char *c, *cmdline;  cmdline = args_get(p);  use_lfn = 1;    if (cmdline != NULL) {    message("DPMI Init: command line = %s\n", cmdline);    /* Parse the command line */    c = cmdline;    while (!done) {      if (*c == 0) {        done = 1;      } else {        if ((*c =='-') && (*(c + 1) == '-')) {          if (strcmp(c + 2, "nolfn") == 0) {	    use_lfn = 0;	    message("LFN disabled\n");	  }        }        c++;      }    }  }  l1_int_bind(0x21, chandler);  l1_int_bind(0x31, chandler);  message("DPMI installed.\n");}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -