Project

General

Profile

Bug #66

patch for alignment buffer on xscale ARM processor

Added by Martin Willi over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
charon
Target version:
Start date:
Due date:
Estimated time:
Affected version:
5.8.0
Resolution:

Description

The "request" buffers used in the kernel_interface.c file may not always be word-aligned on the xscale big-endian arm processor. When this happens the fields are not read back properly when passed to the kernel. As a result some kernel operations such as adding SAD or SPD entries will fail. The attached patch aligns all the buffers on 32bit boundaries.

500-alignment.patch (4.49 KB) 500-alignment.patch alignment patch (made against 4.2.6) Martin Willi, 24.10.2008 01:22

History

#1 Updated by Martin Willi over 10 years ago

  • Status changed from New to Assigned

#2 Updated by Martin Willi over 10 years ago

  • Status changed from Assigned to Closed
  • Affected version set to fixed

Fixed in r4660.

I think attribute((align(4))) is sufficient, as the align attribute takes bytes, not bits.

Also available in: Atom PDF