summaryrefslogtreecommitdiff
path: root/src/device/oprom/include/x86emu
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-07-23 16:22:25 -0600
committerMartin Roth <martinroth@google.com>2017-07-25 14:26:20 +0000
commit7f35d3aa160aa1a43ec4215a7816554b8bab14ed (patch)
treeed1a21755982ee405c779ba3e66ceb01cedee66b /src/device/oprom/include/x86emu
parent1d5e240ea3e68543716ec876d9250f20ce7689f6 (diff)
downloadcoreboot-7f35d3aa160aa1a43ec4215a7816554b8bab14ed.tar.xz
src/device: Fix checkpatch warning: no spaces at the start of a line
This excludes some files in the device/oprom/x86emu folder which are mostly spaces, and which I felt should be handled separately. debug.c, decode.c, fpu.c, ops.c, ops2.c, & prim_ops.c Change-Id: I5c12d3fc942c9ad99bbe6e6e54db93e5a8402392 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20730 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/device/oprom/include/x86emu')
-rw-r--r--src/device/oprom/include/x86emu/fpu_regs.h18
-rw-r--r--src/device/oprom/include/x86emu/regs.h60
-rw-r--r--src/device/oprom/include/x86emu/x86emu.h2
3 files changed, 40 insertions, 40 deletions
diff --git a/src/device/oprom/include/x86emu/fpu_regs.h b/src/device/oprom/include/x86emu/fpu_regs.h
index f49fb1dd39..a9b4893801 100644
--- a/src/device/oprom/include/x86emu/fpu_regs.h
+++ b/src/device/oprom/include/x86emu/fpu_regs.h
@@ -46,11 +46,11 @@
/* Basic 8087 register can hold any of the following values: */
union x86_fpu_reg_u {
- s8 tenbytes[10];
- double dval;
- float fval;
- s16 sval;
- s32 lval;
+ s8 tenbytes[10];
+ double dval;
+ float fval;
+ s16 sval;
+ s32 lval;
};
struct x86_fpu_reg {
@@ -81,10 +81,10 @@ struct x86_fpu_reg {
#define X86_FPU_STKTOP 0
struct x86_fpu_registers {
- struct x86_fpu_reg x86_fpu_stack[8];
- int x86_fpu_flags;
- int x86_fpu_config; /* rounding modes, etc. */
- short x86_fpu_tos, x86_fpu_bos;
+ struct x86_fpu_reg x86_fpu_stack[8];
+ int x86_fpu_flags;
+ int x86_fpu_config; /* rounding modes, etc. */
+ short x86_fpu_tos, x86_fpu_bos;
};
#pragma pack()
diff --git a/src/device/oprom/include/x86emu/regs.h b/src/device/oprom/include/x86emu/regs.h
index b5fb9e22b5..8eec112284 100644
--- a/src/device/oprom/include/x86emu/regs.h
+++ b/src/device/oprom/include/x86emu/regs.h
@@ -61,7 +61,7 @@
#ifdef __BIG_ENDIAN__
typedef struct {
- u32 e_reg;
+ u32 e_reg;
} I32_reg_t;
typedef struct {
@@ -75,7 +75,7 @@ typedef struct {
#else /* !__BIG_ENDIAN__ */
typedef struct {
- u32 e_reg;
+ u32 e_reg;
} I32_reg_t;
typedef struct {
@@ -111,7 +111,7 @@ struct i386_special_regs {
*/
struct i386_segment_regs {
- u16 CS, DS, SS, ES, FS, GS;
+ u16 CS, DS, SS, ES, FS, GS;
};
/* 8 bit registers */
@@ -260,35 +260,35 @@ struct i386_segment_regs {
#define INTR_HALTED 0x4
typedef struct {
- struct i386_general_regs gen;
- struct i386_special_regs spc;
- struct i386_segment_regs seg;
- /*
- * MODE contains information on:
- * REPE prefix 2 bits repe,repne
- * SEGMENT overrides 5 bits normal,DS,SS,CS,ES
- * Delayed flag set 3 bits (zero, signed, parity)
- * reserved 6 bits
- * interrupt # 8 bits instruction raised interrupt
- * BIOS video segregs 4 bits
- * Interrupt Pending 1 bits
- * Extern interrupt 1 bits
- * Halted 1 bits
- */
- u32 mode;
- volatile int intr; /* mask of pending interrupts */
- volatile int debug;
+ struct i386_general_regs gen;
+ struct i386_special_regs spc;
+ struct i386_segment_regs seg;
+ /*
+ * MODE contains information on:
+ * REPE prefix 2 bits repe,repne
+ * SEGMENT overrides 5 bits normal,DS,SS,CS,ES
+ * Delayed flag set 3 bits (zero, signed, parity)
+ * reserved 6 bits
+ * interrupt # 8 bits instruction raised interrupt
+ * BIOS video segregs 4 bits
+ * Interrupt Pending 1 bits
+ * Extern interrupt 1 bits
+ * Halted 1 bits
+ */
+ u32 mode;
+ volatile int intr; /* mask of pending interrupts */
+ volatile int debug;
#if IS_ENABLED(CONFIG_X86EMU_DEBUG)
- int check;
- u16 saved_ip;
- u16 saved_cs;
- int enc_pos;
- int enc_str_pos;
- char decode_buf[32]; /* encoded byte stream */
- char decoded_buf[256]; /* disassembled strings */
+ int check;
+ u16 saved_ip;
+ u16 saved_cs;
+ int enc_pos;
+ int enc_str_pos;
+ char decode_buf[32]; /* encoded byte stream */
+ char decoded_buf[256]; /* disassembled strings */
#endif
- u8 intno;
- u8 __pad[3];
+ u8 intno;
+ u8 __pad[3];
} X86EMU_regs;
/****************************************************************************
diff --git a/src/device/oprom/include/x86emu/x86emu.h b/src/device/oprom/include/x86emu/x86emu.h
index 3d1b949dd5..a5d436af94 100644
--- a/src/device/oprom/include/x86emu/x86emu.h
+++ b/src/device/oprom/include/x86emu/x86emu.h
@@ -155,7 +155,7 @@ void X86EMU_halt_sys(void);
#if IS_ENABLED(CONFIG_X86EMU_DEBUG)
#define HALT_SYS() \
- printf("halt_sys: in %s\n", __func__); \
+ printf("halt_sys: in %s\n", __func__); \
X86EMU_halt_sys();
#else
#define HALT_SYS() X86EMU_halt_sys()