Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: Re: incompatible problem of EPICS with vxworks 5.3
From: Jeff Hill <johill@lanl.gov>
To: CAI MINGFU <cai@heracc.desy.de>
Cc: tech-talk@aps.anl.gov, Kay-Uwe Kasemir <kasemir@atdiv.lanl.gov>
Date: Tue, 10 Sep 1996 10:23:58 -0600
CAI MINGFU wrote:

> 1. crash with rsrv_init(), which is invoked by iocInit()
> file: ./src/rsrv/rsrv_init.c
> crash with vxworks function: errnoOfTaskGet(taskId) if taskId = -1
> the errnoOfTaskGet() calls _taskTcb() and if taskId is wrong
> it will cause Page Fault.
> wrong:
> #define DELETE_TASK(TID)\
>   if(errnoOfTaskGet(TID)!=ERROR)taskDelete(TID);
> 
> corrected:
> #define DELETE_TASK(TID)\
> if(TID >= 0 && errnoOfTaskGet(TID)!=ERROR)taskDelete(TID);
> 
> Remark: DELETE_TASK should check TID, if not -1 then go on.

This was written before the call "taskIdVerify()" was added to the
vxWorks API. Here is our corrected version:

#define DELETE_TASK(TID)\
if(taskIdVerify(TID)==OK)taskDelete(TID);

The other PC port change to base/src/rsrv was incorporated
as suggested.

I have not incorporated your changes into base/src/db/dbScan.c 
(I suspect that Marty will take care of this).

Jeff


-- 

______________________________________________________________________
Jeffrey O. Hill			Internet	johill@lanl.gov
LANL MS H820			Voice		505 665 1831
Los Alamos, NM 87545 USA 	FAX		505 665 5107


Replies:
Re: incompatible problem of EPICS with vxworks 5.3 Peregrine McGehee
Re: incompatible problem of EPICS with vxworks 5.3 Marty Kraimer
References:
incompatible problem of EPICS with vxworks 5.3 CAI MINGFU

Navigate by Date:
Prev: logistic matter for EPICS meeting @ CERN / attendees Matthias Clausen DESY -MKV2/KRYK-
Next: Re: incompatible problem of EPICS with vxworks 5.3 Peregrine McGehee
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: incompatible problem of EPICS with vxworks 5.3 CAI MINGFU
Next: Re: incompatible problem of EPICS with vxworks 5.3 Peregrine McGehee
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·