Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Add clock_time() in timer.c for uIP
[palacios.releases.git] / palacios / src / geekos / fd_boot.asm
index 2fbfd35..7aa231b 100644 (file)
@@ -1,7 +1,7 @@
 ; Boot sector for GeekOS
 ; Copyright (c) 2001,2004 David H. Hovemeyer <daveho@cs.umd.edu>
 ; Copyright (c) 2003, Jeffrey K. Hollingsworth <hollings@cs.umd.edu>
-; $Revision: 1.6 $
+; $Revision: 1.7 $
 
 ; This is free software.  You are permitted to use,
 ; redistribute, and modify it as specified in the file "COPYING".
 [ORG 0x0]
 
 BeginText:     ; needed to calculate padding bytes to fill the sector
+       ;; temporalily for io performance test
+       mov dx, 0x995
+       mov eax, 0x12345678
+       out dx, eax
+       mov dx, 0x999
+       xor eax, eax
+       cpuid
+       rdtsc
+       ;;      mov [time], eax
+       ;;      mov eax, 0x12345678
+       out dx, eax
+       cpuid
+       rdtsc
+       sub eax, [time]
+       out dx, eax
 
        ; Copy the boot sector into INITSEG.
        mov     ax, BOOTSEG
@@ -369,6 +384,8 @@ bootsect_dst_base:
        dw      0               ;       ! limit16,base24 =0
        dw      0,0,0,0         ;       ! BIOS CS
        dw      0,0,0,0         ;       ! BIOS DS
+time:
+       dw      0,0
 
 
 ; Padding to make the PFAT Boot Record sit just before the BIOS signature.