Permalink
Browse files

Add proper ifndef/define/endif to all .h.S files

  • Loading branch information...
1 parent b8bd914 commit 66af857a9984e04f5f7f16a44eb83cb5b29a6e00 @kakaroto committed Nov 28, 2010
Showing with 49 additions and 7 deletions.
  1. +3 −0 dev_syscalls.h.S
  2. +6 −0 hvsc_handler.h.S
  3. +6 −1 map_open_path.h.S
  4. +6 −1 memory_patching.h.S
  5. +5 −0 memory_patching_res.h.S
  6. +4 −2 open_hook.h.S
  7. +0 −2 pl3_memset.h.S
  8. +3 −0 syscall36.h.S
  9. +5 −0 syscall_handler.h.S
  10. +6 −1 trace_helpers.h.S
  11. +5 −0 vuart_tracer.h.S
View
@@ -9,6 +9,8 @@
* License ("GPL") version 3, as published by the Free Software Foundation.
*/
+#ifndef __DEV_SYSCALLS_H_S__
+#define __DEV_SYSCALLS_H_S__
syscall_peek_desc:
QUAD_MEM2(syscall_peek)
@@ -24,3 +26,4 @@ syscall_poke:
std %r4, 0x00(%r3)
blr
+#endif /* __DEV_SYSCALLS_H_S__ */
View
@@ -8,6 +8,10 @@
*
*/
+#ifndef __HVSC_HANDLER_H_S__
+#define __HVSC_HANDLER_H_S__
+
+
hvsc_hook:
mflr %r0
stdu %r1, -0x100(%r1)
@@ -58,3 +62,5 @@ l_hvsc_return:
addi %r1, %r1, 0x100
mtlr %r0
blr
+
+#endif /* __HVSC_HANDLER_H_S__ */
View
@@ -8,6 +8,9 @@
*
*/
+#ifndef __MAP_OPEN_PATH_H_S__
+#define __MAP_OPEN_PATH_H_S__
+
/**
* map_open_path:
* @old_path: The path to map
@@ -229,4 +232,6 @@ l_map_open_return:
addi %r1, %r1, 0xc0
mtlr %r0
blr
-map_open_path_end:
+map_open_path_end:
+
+#endif /* __MAP_OPEN_PATH_H_S__ */
View
@@ -13,6 +13,9 @@
* of the code they wrote.
*/
+#ifndef __MEMORY_PATCHING_H_S__
+#define __MEMORY_PATCHING_H_S__
+
/**
* memory_patching:
* @arg1:
@@ -160,4 +163,6 @@ loc_594:
addi %r1, %r1, 0x1a0
mtlr %r0
blr
-memory_patching_end:
+memory_patching_end:
+
+#endif /* __MEMORY_PATCHING_H_S__ */
View
@@ -13,6 +13,9 @@
* of the code they wrote.
*/
+#ifndef __MEMORY_PATCHING_RES_H_S__
+#define __MEMORY_PATCHING_RES_H_S__
+
DEFINE_FUNC_PTR(memory_patching)
counter:
@@ -48,3 +51,5 @@ memory_patch_table_4:
PATCH_DATA(elf4_data + 8, 0x6d6c2372)
PATCH_DATA(elf4_data + 12, 0x6f6f7400)
.long 0
+
+#endif /* __MEMORY_PATCHING_RES_H_S__ */
View
@@ -8,8 +8,9 @@
*
*/
-.align 4
-
+#ifndef __OPEN_HOOK_H_S__
+#define __OPEN_HOOK_H_S__
+
/* Pointer to :
* struct {
* struct path old
@@ -156,3 +157,4 @@ l_hook_open_proceed:
mr %r3, %r29
b ABSOLUTE_MEM2(patch_func3 + patch_func3_offset + 4)
+#endif /* __OPEN_HOOK_H_S__ */
View
@@ -12,8 +12,6 @@
#ifndef __PL3_MEMSET_H_S__
#define __PL3_MEMSET_H_S__
-
-.align 4
/**
* pl3_memset(void *ptr, uint_8 value, size_t size)
*/
View
@@ -11,6 +11,8 @@
*/
+#ifndef __SYSCALL36_H_S__
+#define __SYSCALL36_H_S__
syscall_36_map_bdvd_desc:
QUAD_MEM2 (syscall_36_map_bdvd)
@@ -72,3 +74,4 @@ l_game_path_null:
addi %r1, %r1, 0xd0
mtlr %r0
blr
+#endif /* __SYSCALL36_H_S__ */
View
@@ -8,6 +8,9 @@
*
*/
+#ifndef __SYSCALL_HANDLER_H_S__
+#define __SYSCALL_HANDLER_H_S__
+
syscall_handler:
mflr %r0
stdu %r1, -0x100(%r1)
@@ -54,3 +57,5 @@ l_syscall_handler_return:
addi %r1, %r1, 0x100
mtlr %r0
blr
+
+#endif /* __SYSCALL_HANDLER_H_S__ */
View
@@ -7,7 +7,10 @@
* License ("GPL") version 3, as published by the Free Software Foundation.
*
*/
-
+
+#ifndef __TRACE_HELPERS_H_S__
+#define __TRACE_HELPERS_H_S__
+
store_regs:
std %r3, 0x70(%r1)
std %r4, 0x78(%r1)
@@ -70,3 +73,5 @@ send_trace:
blr
buf:
.space 0x50
+
+#endif /* __TRACE_HELPERS_H_S__ */
View
@@ -8,6 +8,9 @@
*
*/
+#ifndef __VUART_TRACER_H_S__
+#define __VUART_TRACER_H_S__
+
hvsc_hook:
mflr %r0
stdu %r1, -0x100(%r1)
@@ -148,3 +151,5 @@ l_send_buffer_next:
addi %r1, %r1, 0xA0
mtlr %r0
blr
+
+#endif /* __VUART_TRACER_H_S__ */

0 comments on commit 66af857

Please sign in to comment.