[BACK]Return to platform.h CVS log [TXT][DIR] Up to [local] / prex-old / boot / i386 / pc

Diff for /prex-old/boot/i386/pc/platform.h between version 1.1.1.1 and 1.1.1.1.2.1

version 1.1.1.1, 2008/06/03 10:38:41 version 1.1.1.1.2.1, 2008/08/13 17:12:21
Line 47 
Line 47 
 /*  /*
  * Page mapping   * Page mapping
  */   */
 #define phys_to_virt(p_addr)    (void *)((u_long)(p_addr) + PAGE_OFFSET)  #define phys_to_virt(pa)        (void *)((char *)(pa) + PAGE_OFFSET)
 #define virt_to_phys(v_addr)    (void *)((u_long)(v_addr) - PAGE_OFFSET)  #define virt_to_phys(va)        (void *)((char *)(va) - PAGE_OFFSET)
   
   extern void putchar(int c);
 #if defined(DEBUG) && defined(CONFIG_DIAG_BOCHS)  
 /*  
  * Output Bochs virtual debug port.  
  */  
 static __inline void  
 putc(int c)  
 {  
         __asm__ __volatile__(  
                 "inb $0xe9, %%al\n\t"  
                 "cmpb $0xe9, %%al\n\t"  
                 "jne 1f\n\t"  
                 "movb %%bl, %%al\n\t"  
                 "outb %%al, $0xe9\n\t"  
                 "1:\n\t"  
                 :  
                 : "b" (c));  
 }  
 #endif  
   
 extern void setup_bootinfo(struct boot_info **);  extern void setup_bootinfo(struct boot_info **);
   extern void machine_panic(void);
   
 #endif /* !__ASSEMBLY__ */  #endif /* !__ASSEMBLY__ */
 #endif /* !_PC_PLATFORM_H */  #endif /* !_PC_PLATFORM_H */

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.1.2.1

CVSweb