mirror of
https://github.com/thewesker/RASCSI.git
synced 2025-12-20 12:21:10 -05:00
Cleanup translation and add header
This commit is contained in:
@@ -1,3 +1,15 @@
|
|||||||
|
//---------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// SCSI Target Emulator RaSCSI (*^..^*)
|
||||||
|
// for Raspberry Pi
|
||||||
|
//
|
||||||
|
// Powered by XM6 TypeG Technology.
|
||||||
|
// Copyright (C) 2016-2020 GIMONS
|
||||||
|
// Copyright (C) 2020 akuker
|
||||||
|
//
|
||||||
|
// [ OS specific features / glue logic ]
|
||||||
|
//
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
@@ -23,6 +35,10 @@ void FixCpu(int cpu)
|
|||||||
sched_setaffinity(0, sizeof(cpu_set_t), &cpuset);
|
sched_setaffinity(0, sizeof(cpu_set_t), &cpuset);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
// RaSCSI itself only functions on a Raspberry Pi. However, the
|
||||||
|
// unit tests should run on other hosts. For example, the github
|
||||||
|
// action runners are only Ubuntu x86_64. Some developers may also
|
||||||
|
// want to be able to run the unit tests on MacOS.
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,12 +8,11 @@
|
|||||||
//
|
//
|
||||||
// Imported NetBSD support and some optimisation patch by Rin Okuyama.
|
// Imported NetBSD support and some optimisation patch by Rin Okuyama.
|
||||||
//
|
//
|
||||||
// [ OS固有 ]
|
// [ OS specific features / glue logic ]
|
||||||
//
|
//
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
#if !defined(os_h)
|
#pragma once
|
||||||
#define os_h
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
@@ -88,7 +87,7 @@
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// 基本マクロ
|
// Base Macros
|
||||||
//
|
//
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
#undef FASTCALL
|
#undef FASTCALL
|
||||||
@@ -120,7 +119,7 @@
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// 基本型定義
|
// Basic Type Definitions
|
||||||
//
|
//
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
typedef unsigned char BYTE;
|
typedef unsigned char BYTE;
|
||||||
@@ -162,4 +161,3 @@ typedef const char *LPCSTR;
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
void FixCpu(int cpu);
|
void FixCpu(int cpu);
|
||||||
|
|
||||||
#endif // os_h
|
|
||||||
|
|||||||
Reference in New Issue
Block a user