--- xinu/sys/ssclock.c 2018/04/24 17:39:04 1.1.1.1 +++ xinu/sys/ssclock.c 2018/04/24 17:39:40 1.1.1.2 @@ -6,6 +6,8 @@ #include #include +#ifdef RTCLOCK + /*------------------------------------------------------------------------ * stopclk -- put the clock in defer mode *------------------------------------------------------------------------ @@ -21,13 +23,12 @@ stopclk() */ strtclk() { - PStype ps; int makeup; int next; - disable(ps); + disable(); if ( defclk<=0 || --defclk>0 ) { - restore(ps); + restore(); return; } makeup = clkdiff; @@ -45,6 +46,7 @@ strtclk() wakeup(); } if ( preempt <= 0 ) - resched(); - restore(ps); + resched(); + restore(); } +#endif