|
From: Dirk M. <mu...@kd...> - 2005-02-27 00:17:19
|
CVS commit by mueller:
C90 style comments -> C89 style comments
M +17 -16 core_arch.h 1.25
M +1 -1 core_arch_asm.h 1.4
--- valgrind/coregrind/x86/core_arch.h #1.24:1.25
@@ -32,6 +32,6 @@
#define __X86_CORE_ARCH_H
-#include "core_arch_asm.h" // arch-specific asm stuff
-#include "tool_arch.h" // arch-specific tool stuff
+#include "core_arch_asm.h"
+#include "tool_arch.h"
/* ---------------------------------------------------------------------
@@ -39,5 +39,5 @@
------------------------------------------------------------------ */
-// Accessors for the arch_thread_t
+/* Accessors for the arch_thread_t */
#define ARCH_INSTR_PTR(regs) ((regs).m_eip)
#define ARCH_STACK_PTR(regs) ((regs).m_esp)
@@ -65,19 +65,19 @@
#define ARCH_CLREQ_RET(regs) ((regs).m_edx)
-// Accessors for the ThreadState
+/* Accessors for the ThreadState */
#define R_CLREQ_RET R_EDX
#define R_PTHREQ_RET R_EDX
-// Stack frame layout and linkage
+/* Stack frame layout and linkage */
#define FIRST_STACK_FRAME(ebp) (ebp)
#define STACK_FRAME_RET(ebp) (((UWord*)ebp)[1])
#define STACK_FRAME_NEXT(ebp) (((UWord*)ebp)[0])
-// Offsets of interesting registers
+/* Offsets of interesting registers */
#define VGOFF_INSTR_PTR VGOFF_(m_eip)
#define VGOFF_STACK_PTR VGOFF_(m_esp)
#define VGOFF_FRAME_PTR VGOFF_(m_ebp)
-// Get stack pointer and frame pointer
+/* Get stack pointer and frame pointer */
#define ARCH_GET_REAL_STACK_PTR(esp) do { \
asm("movl %%esp, %0" : "=r" (esp)); \
@@ -164,5 +164,5 @@ extern const Char VG_(helper_cmpxchg8b)[
------------------------------------------------------------------ */
-// XXX: eventually this will be x86-private, not seen by the core(?)
+/* XXX: eventually this will be x86-private, not seen by the core(?) */
/* This is the hardware-format for a segment descriptor, ie what the
@@ -197,11 +197,11 @@ typedef struct _LDT_ENTRY {
------------------------------------------------------------------ */
-// Total number of spill slots available for register allocation.
+/* Total number of spill slots available for register allocation. */
#define VG_MAX_SPILLSLOTS 24
-// Valgrind's stack size, in words.
+/* Valgrind's stack size, in words. */
#define VG_STACK_SIZE_W 16384
-// Base address of client address space.
+/* Base address of client address space. */
#define CLIENT_BASE 0x00000000ul
@@ -255,8 +255,9 @@ struct i387_fxsave_struct {
-// Architecture-specific part of a ThreadState
-// XXX: eventually this should be made abstract, ie. the fields not visible
-// to the core... then VgLdtEntry can be made non-visible to the core
-// also.
+/* Architecture-specific part of a ThreadState
+ XXX: eventually this should be made abstract, ie. the fields not visible
+ to the core... then VgLdtEntry can be made non-visible to the core
+ also.
+*/
typedef struct {
/* Saved machine context. Note the FPU state, %EIP and segment
@@ -332,5 +333,5 @@ arch_thread_t;
void VGA_(signal_return)(ThreadId tid, Bool isRT);
-#endif // __X86_CORE_ARCH_H
+#endif /* __X86_CORE_ARCH_H */
/*--------------------------------------------------------------------*/
--- valgrind/coregrind/x86/core_arch_asm.h #1.3:1.4
@@ -58,5 +58,5 @@
-#endif // __X86_CORE_ARCH_ASM_H
+#endif /* __X86_CORE_ARCH_ASM_H */
/*--------------------------------------------------------------------*/
|