[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch fixes arch (-a) selection parameter when applied to all 
syscall.

Signed-off-by: Ildar Muslukhov <ildarm@xxxxxxxxxx>

---
 tables.c | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/tables.c b/tables.c
index 1741723..fa7cb63 100644
--- a/tables.c
+++ b/tables.c
@@ -305,14 +305,16 @@ void mark_all_syscalls_active(void)
 
 	printf("Marking all syscalls as enabled.\n");
 	if (biarch == TRUE) {
-		for_each_32bit_syscall(i) {
-			syscalls_32bit[i].entry->flags |= ACTIVE;
-			activate_syscall32(i);
-		}
-		for_each_64bit_syscall(i) {
-			syscalls_64bit[i].entry->flags |= ACTIVE;
-			activate_syscall64(i);
-		}
+		if (do_32_arch)
+			for_each_32bit_syscall(i) {
+				syscalls_32bit[i].entry->flags |= ACTIVE;
+				activate_syscall32(i);
+			}
+		if (do_64_arch)
+			for_each_64bit_syscall(i) {
+				syscalls_64bit[i].entry->flags |= ACTIVE;
+				activate_syscall64(i);
+			}
 	} else {
 		for_each_syscall(i) {
 			syscalls[i].entry->flags |= ACTIVE;
-- 
1.8.4

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux