Displaying 1 result from an estimated 1 matches for "lock_flag".
Did you mean:
sock_flag
2018 Dec 04
2
Incorrect placement of an instruction after PostRAScheduler pass
...bne 1ac <xxxxx+0x1ac>
1bc: 1a000002 bne 1cc <xxxx+0x1cc> <<<<<<<<<<<<<<<<<<<
1c0: e1a00005 mov r0, r5
1c4: e3a01001 mov r1, #1
This is the relevant C code:
if (__builtin_expect((lock_flag == LOCK),1)) { // First
comparison using lock_flag, which is a function argument and an enum
with values 0, 1, 2.
lock=foo_lock(vaddr);
}
old = func(flags, vaddr, data);
if (__builtin_expect((lock_flag == LOCK),1)) { // Second
comparison using lock_flag...