From b0eaaeda2b89bb03e64133e6494f1c2ad7f4b0d1 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Thu, 11 Jun 2015 14:43:10 +0200 Subject: [PATCH] Fix Statistical Profiling support Change-Id: I5ebed6ead53e2f696d53d6d72e6e370e6e127820 --- minix/kernel/system/do_sprofile.c | 2 +- minix/servers/pm/profile.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/minix/kernel/system/do_sprofile.c b/minix/kernel/system/do_sprofile.c index 581e35075..d84e22c95 100644 --- a/minix/kernel/system/do_sprofile.c +++ b/minix/kernel/system/do_sprofile.c @@ -77,7 +77,7 @@ int do_sprofile(struct proc * caller, message * m_ptr) break; case PROF_NMI: err = nmi_watchdog_start_profiling( - _ptr->m_lsys_krn_sys_sprof.freq); + m_ptr->m_lsys_krn_sys_sprof.freq); if (err) return err; break; diff --git a/minix/servers/pm/profile.c b/minix/servers/pm/profile.c index 682a2b05d..1fb53adc6 100644 --- a/minix/servers/pm/profile.c +++ b/minix/servers/pm/profile.c @@ -30,7 +30,7 @@ int do_sprofile(void) case PROF_START: return sys_sprof(PROF_START, m_in.m_lc_pm_sprof.mem_size, m_in.m_lc_pm_sprof.freq, m_in.m_lc_pm_sprof.intr_type, who_e, - m_in.m_lc_pm_sprof.ctl_ptr, m_in.m_lc_pm_sprof.mem_ptr); + (void *)m_in.m_lc_pm_sprof.ctl_ptr, (void *)m_in.m_lc_pm_sprof.mem_ptr); case PROF_STOP: return sys_sprof(PROF_STOP,0,0,0,0,0,0);