copy_paste_unaligned_common.h 832 B

1234567891011121314151617181920212223242526
  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. #ifndef _SELFTESTS_POWERPC_COPY_PASTE_H
  14. #define _SELFTESTS_POWERPC_COPY_PASTE_H
  15. #include <signal.h>
  16. int main(int argc, char *argv[]);
  17. void signal_action_handler(int signal_num, siginfo_t *info, void *ptr);
  18. void setup_signal_handler(void);
  19. extern char cacheline_buf[128] __cacheline_aligned;
  20. extern unsigned int expected_instruction;
  21. extern unsigned int instruction_mask;
  22. #endif /* _SELFTESTS_POWERPC_COPY_PASTE_H */