Skip to content

Commit f8b3be6

Browse files
committed
patcher/overwrite: fix ia64 compilation
Fixed a couple of typos in ia64 code. Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 14c34ae commit f8b3be6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opal/mca/patcher/overwrite/patcher_overwrite_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static int mca_patcher_overwrite_apply_patch (mca_patcher_base_patch_t *patch)
105105
* imm64 = i << 63 | imm41 << 22 | ic << 21 | imm5c << 16 | imm9d << 7 | imm7b
106106
*/
107107
unsigned char buf[16];
108-
unsigned long long imm64 = func_new_addr - func_old_addr - 16;
108+
unsigned long long imm64 = func_new_addr - patch->patch_orig - 16;
109109
register unsigned long long glb_ptr __asm__("r1");
110110
unsigned long long nop =
111111
(0x0ULL<<37) | /* O */
@@ -133,7 +133,7 @@ static int mca_patcher_overwrite_apply_patch (mca_patcher_base_patch_t *patch)
133133
(1ULL << 6) |
134134
(0x0ULL << 0);
135135

136-
patch->data_size = 32;
136+
patch->patch_data_size = 32;
137137

138138
make_ia64_bundle(buf, movl, (glb_ptr>>22)&0x1FFFFFFFFFFULL, nop, 5);
139139
for (int i = 0 ; i < 16 ; ++i) {

0 commit comments

Comments
 (0)