|
|
@@ -0,0 +1,30 @@
|
|
|
+{
|
|
|
+ Defines CPU intrinsics for x86-64
|
|
|
+
|
|
|
+ This file is part of the Free Pascal run time library.
|
|
|
+ Copyright (c) 2021 by the Free Pascal development team.
|
|
|
+
|
|
|
+ See the file COPYING.FPC, included in this distribution,
|
|
|
+ for details about the copyright.
|
|
|
+
|
|
|
+ This program is distributed in the hope that it will be useful,
|
|
|
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
+
|
|
|
+ **********************************************************************}
|
|
|
+
|
|
|
+function fpc_x86_inportb(port : word) : byte;[internproc:fpc_in_x86_inportb];
|
|
|
+function fpc_x86_inportw(port : word) : word;[internproc:fpc_in_x86_inportw];
|
|
|
+function fpc_x86_inportl(port : word) : longint;[internproc:fpc_in_x86_inportl];
|
|
|
+procedure fpc_x86_outportb(port : word;data : byte);[internproc:fpc_in_x86_outportb];
|
|
|
+procedure fpc_x86_outportw(port : word;data : word);[internproc:fpc_in_x86_outportw];
|
|
|
+procedure fpc_x86_outportl(port : word;data : longint);[internproc:fpc_in_x86_outportl];
|
|
|
+procedure fpc_x86_cli;[internproc:fpc_in_x86_cli];
|
|
|
+procedure fpc_x86_sti;[internproc:fpc_in_x86_sti];
|
|
|
+function fpc_x86_get_cs:longint;[internproc:fpc_in_x86_get_cs];
|
|
|
+function fpc_x86_get_ss:longint;[internproc:fpc_in_x86_get_ss];
|
|
|
+function fpc_x86_get_ds:longint;[internproc:fpc_in_x86_get_ds];
|
|
|
+function fpc_x86_get_es:longint;[internproc:fpc_in_x86_get_es];
|
|
|
+function fpc_x86_get_fs:longint;[internproc:fpc_in_x86_get_fs];
|
|
|
+function fpc_x86_get_gs:longint;[internproc:fpc_in_x86_get_gs];
|
|
|
+procedure fpc_x86_pause;[internproc:fpc_in_x86_pause];
|