Fixed all the compile-breaking mistakes.

This commit is contained in:
OBattler
2018-01-01 03:15:06 +01:00
parent 0d7d168245
commit 8f180fdecd
3 changed files with 10 additions and 17 deletions

View File

@@ -8,20 +8,18 @@
*
* AMD SYSCALL and SYSRET CPU Instructions.
*
* Version: @(#)x86_ops_amd.h 1.0.0 2018/01/01
* Version: @(#)x86_ops_amd.h 1.0.1 2018/01/01
*
* Author: Miran Grca, <mgrca8@gmail.com>
* Copyright 2016-2018 Miran Grca.
*/
#ifndef internal_illegal
static int internal_illegal(char *s)
{
cpu_state.pc = cpu_state.oldpc;
x86gpf(s, 0);
return cpu_state.abrt;
}
#endif
/* 0 = Limit 0-15
1 = Base 0-15

View File

@@ -8,21 +8,12 @@
*
* x86 i686 (Pentium Pro/Pentium II) CPU Instructions.
*
* Version: @(#)x86_ops_i686.h 1.0.1 2018/01/01
* Version: @(#)x86_ops_i686.h 1.0.2 2018/01/01
*
* Author: Miran Grca, <mgrca8@gmail.com>
* Copyright 2016-2018 Miran Grca.
*/
#ifndef internal_illegal
static int internal_illegal(char *s)
{
cpu_state.pc = cpu_state.oldpc;
x86gpf(s, 0);
return cpu_state.abrt;
}
#endif
/* 0 = Limit 0-15
1 = Base 0-15
2 = Base 16-23 (bits 0-7), Access rights