mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-12-26 11:17:44 +01:00
fix[osal]: Align MppMemPoolNode to 8-byte
Aligning MppMemPoolNode to 8-byte is aimed at avoiding alignment traps caused by compiler optimizations. Log: [ 41.929204] Alignment trap: not handling instruction f44c6adf at [<a6f0aec4>] [ 41.929236] Unhandled fault: alignment exception (0x801) at 0xa6205cbc Change-Id: Ia9867225eabfc0e8ab37754a7161814bb596e645 Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
This commit is contained in:
parent
376fe2346b
commit
ef11356680
1 changed files with 5 additions and 1 deletions
|
|
@ -41,11 +41,15 @@
|
|||
|
||||
static rk_u32 mpp_mem_pool_debug = 0;
|
||||
|
||||
/*
|
||||
* Aligning MppMemPoolNode to 8-byte
|
||||
* Avoiding alignment traps caused by compiler optimizations
|
||||
*/
|
||||
typedef struct MppMemPoolNode_t {
|
||||
void *check;
|
||||
struct list_head list;
|
||||
void *ptr;
|
||||
size_t size;
|
||||
rk_u64 size;
|
||||
} MppMemPoolNode;
|
||||
|
||||
typedef struct MppMemPoolImpl_t {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue