Re: ALSA on MIPS platform

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 7 Aug 2007 10:18:04 +0400, "Dajie Tan" <jiankemeng@xxxxxxxxx> wrote:
>  static inline unsigned long virt_to_phys(volatile const void *address)
>  {
> -       return (unsigned long)address - PAGE_OFFSET + PHYS_OFFSET;
> +       return ((unsigned long)address & 0x1fffffff) + PHYS_OFFSET;
>  }

This makes virt_to_phys() a bit slower, and more importantly, breaks
64-bit kernel.

---
Atsushi Nemoto
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux