FEXLinuxTests: Simplify a few extern "C" declarations

This commit is contained in:
Tony Wasserka 2024-02-01 14:43:50 +01:00
parent 78cb2cd9fc
commit f246e9864c
7 changed files with 14 additions and 21 deletions

View File

@ -9,9 +9,8 @@
#include <stdio.h>
#include <cstdlib>
extern "C" {
extern void IntInstruction();
}
extern "C" void IntInstruction();
__attribute__((naked, nocf_check))
static void InvalidINT() {
__asm volatile(R"(

View File

@ -9,9 +9,8 @@
#include <stdio.h>
#include <cstdlib>
extern "C" {
extern void IntInstruction();
}
extern "C" void IntInstruction();
__attribute__((naked, nocf_check))
static void InvalidINT() {
__asm volatile(R"(

View File

@ -9,9 +9,8 @@
#include <stdio.h>
#include <cstdlib>
extern "C" {
extern void IntInstruction();
}
extern "C" void IntInstruction();
__attribute__((naked, nocf_check))
static void InvalidINT() {
__asm volatile(R"(

View File

@ -9,9 +9,8 @@
#include <stdio.h>
#include <cstdlib>
extern "C" {
extern void IntInstruction();
}
extern "C" void IntInstruction();
__attribute__((naked, nocf_check))
static void InvalidINT() {
__asm volatile(R"(

View File

@ -9,9 +9,8 @@
#include <stdio.h>
#include <cstdlib>
extern "C" {
extern void IntInstruction();
}
extern "C" void IntInstruction();
__attribute__((naked, nocf_check))
static void InvalidINT() {
__asm volatile(R"(

View File

@ -9,9 +9,8 @@
#include <cstdint>
#include <syscall.h>
extern "C" {
extern void IntInstruction();
}
extern "C" void IntInstruction();
__attribute__((naked))
static void CauseInt() {
__asm volatile(R"(

View File

@ -8,9 +8,8 @@
#include <unistd.h>
#include <cstdint>
extern "C" {
extern void IntInstruction();
}
extern "C" void IntInstruction();
__attribute__((naked, nocf_check))
static void CauseInt() {
__asm volatile(R"(