From 502b6bda83b3fd4191ca1856b0e005caceec282f Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Sat, 30 Aug 2014 19:10:12 +0000 Subject: [PATCH] Kernel: fix sys_trace Change-Id: I44bdd3b1d79bf751923581b75c3d44f011d2a5e0 --- minix/kernel/system/do_trace.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/minix/kernel/system/do_trace.c b/minix/kernel/system/do_trace.c index f203cfd32..e286d46ed 100644 --- a/minix/kernel/system/do_trace.c +++ b/minix/kernel/system/do_trace.c @@ -94,19 +94,20 @@ int do_trace(struct proc * caller, message * m_ptr) case T_GETINS: /* return value from instruction space */ COPYFROMPROC(tr_addr, (vir_bytes) &tr_data, sizeof(long)); - m_ptr->m_lsys_krn_sys_trace.data = tr_data; + m_ptr->m_krn_lsys_sys_trace.data = tr_data; break; case T_GETDATA: /* return value from data space */ COPYFROMPROC(tr_addr, (vir_bytes) &tr_data, sizeof(long)); - m_ptr->m_lsys_krn_sys_trace.data= tr_data; + m_ptr->m_krn_lsys_sys_trace.data= tr_data; break; case T_GETUSER: /* return value from process table */ if ((tr_addr & (sizeof(long) - 1)) != 0) return(EFAULT); if (tr_addr <= sizeof(struct proc) - sizeof(long)) { - m_ptr->m_lsys_krn_sys_trace.data = *(long *) ((char *) rp + (int) tr_addr); + m_ptr->m_krn_lsys_sys_trace.data = + *(long *) ((char *) rp + (int) tr_addr); break; } @@ -118,7 +119,8 @@ int do_trace(struct proc * caller, message * m_ptr) if (tr_addr > sizeof(struct priv) - sizeof(long)) return(EFAULT); - m_ptr->m_lsys_krn_sys_trace.data = *(long *) ((char *) rp->p_priv + (int) tr_addr); + m_ptr->m_krn_lsys_sys_trace.data = + *(long *) ((char *) rp->p_priv + (int) tr_addr); break; case T_SETINS: /* set value in instruction space */ -- 2.44.0