你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
xueyan
赞同来自: zzz19760225 、gugudu 、Holoo 、brep
DaDou13 - 普通用户
赞同来自: zzz19760225
zhuchen
wlxn
要回复问题请先登录或注册
6 个回复
xueyan
赞同来自: zzz19760225 、gugudu 、Holoo 、brep
https://pan.baidu.com/s/1hsNBk1Y
DaDou13 - 普通用户
赞同来自: zzz19760225
@loongson_BIOS 应该就是pmon的开发者。 @lixuefeng 我有在源码库里pmon-loongson3项目的log和内核项目的log都见过这个名字,应该是软件工程师。
另外,你的R7 350虽然pmon花屏,可系统还是能进系统,可以用的。我刚买的rx550系统都进不了,正在琢磨驱动的事。
zhuchen
赞同来自: zzz19760225
diff --git a/x86emu/int10/generic.c b/x86emu/int10/generic.c
index 0b4eeb4..c5d6cc5 100644
--- a/x86emu/int10/generic.c
+++ b/x86emu/int10/generic.c
@@ -74,6 +74,14 @@ static void write_b(xf86Int10InfoPtr pInt, int addr, CARD8 val);
static void write_w(xf86Int10InfoPtr pInt, int addr, CARD16 val);
static void write_l(xf86Int10InfoPtr pInt, int addr, CARD32 val);
+
+unsigned short ScreenWidth;
+unsigned short ScreenHeight;
+unsigned short ScreenLineLength;
+unsigned short ScreenDepth;
+
+
+
/*
* the emulator cannot pass a pointer to the current xf86Int10InfoRec
* to the memory access functions therefore store it here.
@@ -537,12 +545,19 @@ int vga_bios_init(void)
xf86ExecX86int10(pInt);
if (pInt->ax != 0x004f)
printk("get vesa mode info failed,ax=%x\n", pInt->ax);
- printk("linelength=%x\n", MEM_RW(pInt, pInt->di + 16));
- printk("width=%x\n", MEM_RW(pInt, pInt->di + 18));
- printk("height=%x\n", MEM_RW(pInt, pInt->di + 20));
- printk("depth=%x\n", MEM_RB(pInt, pInt->di + 25));
+ ScreenLineLength = MEM_RW(pInt, pInt->di + 16);
+ printk("linelength=%x\n", ScreenLineLength);
+ ScreenWidth = MEM_RW(pInt, pInt->di + 18);
+ printk("width=%x\n", ScreenWidth);
+ ScreenHeight = MEM_RW(pInt, pInt->di + 20);
+ printk("height=%x\n", ScreenHeight);
+ ScreenDepth = MEM_RB(pInt, pInt->di + 25);
+ printk("depth=%x\n", ScreenDepth);
printk("pages=%x\n", MEM_RB(pInt, pInt->di + 29));
printk("base=%x\n", MEM_RL(pInt, pInt->di + 40));
+ vesa_mode_head[vesa_mode].width = (ScreenLineLength/((ScreenDepth+1)/8));
+ vesa_mode_head[vesa_mode].height = ScreenHeight;
+ vesa_mode_head[vesa_mode].bpp = ScreenDepth;
#endif
free(pInt->private);
wlxn
赞同来自: zzz19760225
zhuchen
赞同来自: zzz19760225
wlxn
赞同来自: zzz19760225