forked from axboe/fio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch adds support for loongarch64 for fio. This is tested by building FIO on an loongarch64 Debian 10 system. Signed-off-by: wangguofeng <[email protected]>
- Loading branch information
Showing
3 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef ARCH_LOONGARCH64_H | ||
#define ARCH_LOONGARCH64_H | ||
|
||
#define FIO_ARCH (arch_loongarch64) | ||
|
||
#define read_barrier() __asm__ __volatile__("dbar 0": : :"memory") | ||
#define write_barrier() __asm__ __volatile__("dbar 0": : :"memory") | ||
#define nop __asm__ __volatile__("nop") | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters