Query Regarding memory alignment /access

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

 



Hi All,
         
            I have  2 questions regarding memory access/alignment
1: can aligned/unaligned virtual address could translate to unaligned/aligned physical address ? or
 aligned virtual --- > aligned phy and unaligned virtual --- > unaligned phy ??
2: Since the cpu access the memory in word size, for a large buffer, (say size N bytes where N > wordsize) isn't it sufficient for buffer to be properly aligned if its address % WORD_SIZE == 0? rather than address % N == 0  check?? since cpu, anyways will not access more than word size at a time so any address which is divisible by wordsize is by default properly aligned?

Please share your inputs.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux