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

Diff for /prex-old/boot/arm/gba/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:40 version 1.1.1.1.2.1, 2008/08/13 17:12:20
Line 42 
Line 42 
 /*  /*
  * 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)
   
 #if defined(DEBUG) && defined(CONFIG_DIAG_VBA)  extern void putchar(int c);
 /*  
  * Put one character to Visual Boy Advance (VBA) emulator console.  
  *  
  * Important:  
  * This BIOS call is not supported by actual GBA BIOS. So, you must  
  * disable this function when you run it on actual GBA H/W.  
  * Otherwise, it will hang.  
  */  
 static __inline void  
 putc(int c)  
 {  
         static char buf[2] = {0,0};  
   
         buf[0] = (char)c;  
         __asm__ __volatile__(  
                 "mov r0, %0;"  
                 "swi 0xff0000;"  
                 : /* no ouput */  
                 : "r" (buf)  
                 : "r0");  
 }  
 #else  
 #define putc(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 /* _OFFSETS_H */  #endif /* _OFFSETS_H */

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

CVSweb