barrier.S 416 B

1234567891011121314151617
  1. .global khrn_hw_full_memory_barrier
  2. khrn_hw_full_memory_barrier:
  3. ldr r0, =khrn_hw_full_memory_barrier // any harmless address
  4. orr r0, r0, #0xc0000000
  5. ldr r1, [r0] // load from direct alias
  6. mov r1, r1 // kill lazy load
  7. // todo: we're assuming v3d is turned on!
  8. mov r0, #0x3fc00000 // v3d_ident0
  9. ldr r1, [r0] // load from v3d
  10. mov r1, r1 // kill lazy load
  11. mov pc, lr