From a27aa7dc263b29690275dd130e2bad8bb29b6b1d Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Sat, 27 Dec 2003 09:42:15 +0000 Subject: [PATCH] Sign-extend get_resource() ID parameter so that vCheckLoad sees them correctly. e.g. for sift resources to be patched (-16497) --- SheepShaver/src/Unix/Linux/asm_linux.S | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SheepShaver/src/Unix/Linux/asm_linux.S b/SheepShaver/src/Unix/Linux/asm_linux.S index 09346b70..cd057eae 100644 --- a/SheepShaver/src/Unix/Linux/asm_linux.S +++ b/SheepShaver/src/Unix/Linux/asm_linux.S @@ -703,7 +703,7 @@ get_resource: // Call CheckLoad lwz r3,56(r1) - lwz r4,56+4(r1) + lha r4,56+6(r1) lwz r5,56+8(r1) bl check_load_invoc lwz r3,56+8(r1) // Restore handle @@ -734,7 +734,7 @@ get_1_resource: // Call CheckLoad lwz r3,56(r1) - lwz r4,56+4(r1) + lha r4,56+6(r1) lwz r5,56+8(r1) bl check_load_invoc lwz r3,56+8(r1) // Restore handle @@ -765,7 +765,7 @@ get_ind_resource: // Call CheckLoad lwz r3,56(r1) - lwz r4,56+4(r1) + lha r4,56+6(r1) lwz r5,56+8(r1) bl check_load_invoc lwz r3,56+8(r1) // Restore handle @@ -796,7 +796,7 @@ get_1_ind_resource: // Call CheckLoad lwz r3,56(r1) - lwz r4,56+4(r1) + lha r4,56+6(r1) lwz r5,56+8(r1) bl check_load_invoc lwz r3,56+8(r1) // Restore handle @@ -827,7 +827,7 @@ r_get_resource: // Call CheckLoad lwz r3,56(r1) - lwz r4,56+4(r1) + lha r4,56+6(r1) lwz r5,56+8(r1) bl check_load_invoc lwz r3,56+8(r1) // Restore handle