GNU Linux-libre 4.9.318-gnu1
[releases.git] / tools / testing / selftests / powerpc / alignment / copy_paste_unaligned_common.h
1 /*
2  * Copyright 2016, Chris Smart, IBM Corporation.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version
7  * 2 of the License, or (at your option) any later version.
8  *
9  * Declarations for common code for copy, copy_first, paste and
10  * paste_last unaligned tests.
11  *
12  */
13
14 #ifndef _SELFTESTS_POWERPC_COPY_PASTE_H
15 #define _SELFTESTS_POWERPC_COPY_PASTE_H
16
17 #include <signal.h>
18
19 int main(int argc, char *argv[]);
20 void signal_action_handler(int signal_num, siginfo_t *info, void *ptr);
21 void setup_signal_handler(void);
22 extern char cacheline_buf[128] __cacheline_aligned;
23 extern unsigned int expected_instruction;
24 extern unsigned int instruction_mask;
25
26 #endif /* _SELFTESTS_POWERPC_COPY_PASTE_H */