Permalink
Browse files

. 修正 usb2.0 驱动。

  • Loading branch information...
yaya
yaya committed Jun 17, 2017
1 parent 3da3daa commit 257e996dbbd39ddbf254afb4e2dfe4942bb4d0e8
Showing with 6 additions and 7 deletions.
  1. +4 −7 stage2/asm.S
  2. +2 −0 stage2/builtins.c
View
@@ -8666,17 +8666,14 @@ Con_mon:
Port_Reset:
movl $0x00001100, %eax
call Write_Register
- movw $100, %ax
+ movw $20, %ax
call Delay
- movl $0x00001000, %eax
+ movl $0x00001002, %eax
call Write_Register
movw $200, %ax
call Delay
- movl $0x00001007, %eax
- call Write_Register
-
call Read_Register
ret
@@ -9397,7 +9394,7 @@ host_initialization:
movw $0, %si
call Write_Register
- movl $0x3f, %eax
+ movl $3, %eax
movw $8, %si
call Write_Register
@@ -9420,7 +9417,7 @@ host_initialization:
movl $0x00000001, %eax
movw $0x40, %si
call Write_Register
- movw $200, %ax
+ movw $500, %ax
call Delay
ret
//=================================================================================================================
View
@@ -1245,6 +1245,8 @@ void hexdump(grub_u64_t ofs,char* buf,int len)
putchar(' ',255);
else
{
+grub_printf("hexdump,%x,%x,%x,",k,i,(unsigned char)buf[j]);//
+getkey();
j = k - i;
printf("%c",(unsigned long)((((unsigned char)buf[j]>=32) && ((unsigned char)buf[j]!=127))?buf[j]:'.'));
}

0 comments on commit 257e996

Please sign in to comment.