增加所有文件
This commit is contained in:
22
arch/include/armv7-r/barriers.h
Normal file
22
arch/include/armv7-r/barriers.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* barriers.h
|
||||
*
|
||||
* Copyright (c) 2020 Semidrive Semiconductor.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Description: ARMV7R barriers interface.
|
||||
*
|
||||
* Revision History:
|
||||
* -----------------
|
||||
*/
|
||||
|
||||
#ifndef INCLUDE_ARCH_ARMV7R_BARRIERS_H
|
||||
#define INCLUDE_ARCH_ARMV7R_BARRIERS_H
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
#define DSB __ASM volatile("dsb" ::: "memory")
|
||||
#define DMB __ASM volatile("dmb" ::: "memory")
|
||||
#define ISB __ASM volatile("isb" ::: "memory")
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user