[Mono-list] Patch for mini (typos)
Max Horn
max@quendi.de
Sat, 26 Apr 2003 22:25:58 +0200
--Apple-Mail-4-67114143
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
This patch is mostly cosmetic:
1) Fixes mini-ppc.h to use __MONO_MINI_PPC_H__ instead of
__MONO_MINI_X86_H__
2) Correct various typos in comments (yes, comments :-) in tramp-ppc.c
This is really nothing significant, but on the positive side that
should make verifying it so much easier :-)
Cheers,
Max
--Apple-Mail-4-67114143
Content-Disposition: attachment;
filename=mini.patch
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="mini.patch"
? mini.patch
Index: mini-ppc.h
===================================================================
RCS file: /mono/mono/mono/mini/mini-ppc.h,v
retrieving revision 1.1
diff -u -d -r1.1 mini-ppc.h
--- mini-ppc.h 5 Apr 2003 19:21:32 -0000 1.1
+++ mini-ppc.h 26 Apr 2003 20:24:12 -0000
@@ -1,5 +1,5 @@
-#ifndef __MONO_MINI_X86_H__
-#define __MONO_MINI_X86_H__
+#ifndef __MONO_MINI_PPC_H__
+#define __MONO_MINI_PPC_H__
#include <mono/arch/x86/x86-codegen.h>
#include <mono/arch/ppc/ppc-codegen.h>
@@ -23,4 +23,4 @@
guint32 eip;
};
-#endif /* __MONO_MINI_X86_H__ */
+#endif /* __MONO_MINI_PPC_H__ */
Index: tramp-ppc.c
===================================================================
RCS file: /mono/mono/mono/mini/tramp-ppc.c,v
retrieving revision 1.3
diff -u -d -r1.3 tramp-ppc.c
--- tramp-ppc.c 23 Apr 2003 15:02:13 -0000 1.3
+++ tramp-ppc.c 26 Apr 2003 20:24:12 -0000
@@ -451,7 +451,7 @@
ppc_mtlr (buf, ppc_r0);
ppc_blrl (buf);
- /* Restore stack pointer, r31, LR and return to caler */
+ /* Restore stack pointer, r31, LR and return to caller */
ppc_lwz (buf, ppc_r11, 0, ppc_r1);
ppc_lwz (buf, ppc_r31, -4, ppc_r11);
ppc_mr (buf, ppc_r1, ppc_r11);
@@ -459,7 +459,7 @@
ppc_mtlr (buf, ppc_r0);
ppc_blr (buf);
- /* Flush instruction cache, sice we've generated code */
+ /* Flush instruction cache, since we've generated code */
mono_arch_flush_icache (vc, buf - vc);
/* Sanity check */
@@ -467,7 +467,7 @@
}
/* This is the method-specific part of the trampoline. Its purpose is
- to provide the generic part with the MonoMethod *method pointer. We'll
+ to provide the generic part with the MonoMethod *method pointer. We'll
use r11 to keep that value, for instance. However, the generic part of
the trampoline relies on r11 having the same value it had before coming
here, so we must save it before. */
@@ -491,13 +491,13 @@
ppc_ori (buf, ppc_r11, ppc_r11, (guint32) method & 0xffff);
ppc_blr (buf);
- /* Flush instruction cache, sice we've generated code */
+ /* Flush instruction cache, since we've generated code */
mono_arch_flush_icache (code, buf - code);
/* Sanity check */
g_assert ((buf - code) <= METHOD_TRAMPOLINE_SIZE);
- /* store trampoline address */
+ /* Store trampoline address */
method->info = code;
mono_jit_stats.method_trampolines++;
--Apple-Mail-4-67114143--