Navigation Menu

Skip to content

Commit

Permalink
Add proper ifndef/define/endif to all .h.S files
Browse files Browse the repository at this point in the history
  • Loading branch information
kakaroto committed Nov 28, 2010
1 parent b8bd914 commit 66af857
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 7 deletions.
3 changes: 3 additions & 0 deletions dev_syscalls.h.S
Expand Up @@ -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)
Expand All @@ -24,3 +26,4 @@ syscall_poke:
std %r4, 0x00(%r3)
blr

#endif /* __DEV_SYSCALLS_H_S__ */
6 changes: 6 additions & 0 deletions hvsc_handler.h.S
Expand Up @@ -8,6 +8,10 @@
*
*/

#ifndef __HVSC_HANDLER_H_S__
#define __HVSC_HANDLER_H_S__


hvsc_hook:
mflr %r0
stdu %r1, -0x100(%r1)
Expand Down Expand Up @@ -58,3 +62,5 @@ l_hvsc_return:
addi %r1, %r1, 0x100
mtlr %r0
blr

#endif /* __HVSC_HANDLER_H_S__ */
7 changes: 6 additions & 1 deletion map_open_path.h.S
Expand Up @@ -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
Expand Down Expand Up @@ -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__ */
7 changes: 6 additions & 1 deletion memory_patching.h.S
Expand Up @@ -13,6 +13,9 @@
* of the code they wrote.
*/

#ifndef __MEMORY_PATCHING_H_S__
#define __MEMORY_PATCHING_H_S__

/**
* memory_patching:
* @arg1:
Expand Down Expand Up @@ -160,4 +163,6 @@ loc_594:
addi %r1, %r1, 0x1a0
mtlr %r0
blr
memory_patching_end:
memory_patching_end:

#endif /* __MEMORY_PATCHING_H_S__ */
5 changes: 5 additions & 0 deletions memory_patching_res.h.S
Expand Up @@ -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:
Expand Down Expand Up @@ -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__ */
6 changes: 4 additions & 2 deletions open_hook.h.S
Expand Up @@ -8,8 +8,9 @@
*
*/

.align 4

#ifndef __OPEN_HOOK_H_S__
#define __OPEN_HOOK_H_S__

/* Pointer to :
* struct {
* struct path old
Expand Down Expand Up @@ -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__ */
2 changes: 0 additions & 2 deletions pl3_memset.h.S
Expand Up @@ -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)
*/
Expand Down
3 changes: 3 additions & 0 deletions syscall36.h.S
Expand Up @@ -11,6 +11,8 @@
*/


#ifndef __SYSCALL36_H_S__
#define __SYSCALL36_H_S__

syscall_36_map_bdvd_desc:
QUAD_MEM2 (syscall_36_map_bdvd)
Expand Down Expand Up @@ -72,3 +74,4 @@ l_game_path_null:
addi %r1, %r1, 0xd0
mtlr %r0
blr
#endif /* __SYSCALL36_H_S__ */
5 changes: 5 additions & 0 deletions syscall_handler.h.S
Expand Up @@ -8,6 +8,9 @@
*
*/

#ifndef __SYSCALL_HANDLER_H_S__
#define __SYSCALL_HANDLER_H_S__

syscall_handler:
mflr %r0
stdu %r1, -0x100(%r1)
Expand Down Expand Up @@ -54,3 +57,5 @@ l_syscall_handler_return:
addi %r1, %r1, 0x100
mtlr %r0
blr

#endif /* __SYSCALL_HANDLER_H_S__ */
7 changes: 6 additions & 1 deletion trace_helpers.h.S
Expand Up @@ -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)
Expand Down Expand Up @@ -70,3 +73,5 @@ send_trace:
blr
buf:
.space 0x50

#endif /* __TRACE_HELPERS_H_S__ */
5 changes: 5 additions & 0 deletions vuart_tracer.h.S
Expand Up @@ -8,6 +8,9 @@
*
*/

#ifndef __VUART_TRACER_H_S__
#define __VUART_TRACER_H_S__

hvsc_hook:
mflr %r0
stdu %r1, -0x100(%r1)
Expand Down Expand Up @@ -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.