From: David van Moolenbroek Date: Sat, 30 Aug 2014 19:10:12 +0000 (+0000) Subject: Kernel: fix sys_trace X-Git-Tag: v3.3.0~32 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/weatherstation.js?a=commitdiff_plain;h=refs%2Fchanges%2F99%2F2799%2F1;p=minix.git Kernel: fix sys_trace Change-Id: I44bdd3b1d79bf751923581b75c3d44f011d2a5e0 --- 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 */