Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: base R3.14.1 "example" application booting problem
From: "M.C.Shao" <ShaoMingchao97@mails.tsinghua.edu.cn>
To: "Eric Norum" <norume@aps.anl.gov>
Cc: "Tech-talk" <tech-talk@aps.anl.gov>
Date: Sat, 25 Jan 2003 13:46:10 +0800
From: "Eric Norum" <norume@aps.anl.gov>
>  The problem is that the
> RTEMS sysconf is being excessivly paranoid about requests for which it
> has no information.
> 
> Here's the patch.  
> 
> diff -ur rtems-ss-20021118.orig/cpukit/posix/src/sysconf.c
> rtems-ss-20021118/cpukit/posix/src/sysconf.c
> --- rtems-ss-20021118.orig/cpukit/posix/src/sysconf.c   Thu Sep 13
> 16:04:21 2001
> +++ rtems-ss-20021118/cpukit/posix/src/sysconf.c        Mon Jan 20
> 15:07:16 2003
> @@ -8,6 +8,7 @@
>  
>  #include <time.h>
>  #include <unistd.h>
> +#include <errno.h>
>  
>  #include <rtems/system.h>
>  #include <rtems/score/tod.h>
> @@ -31,6 +32,9 @@
>          return rtems_libio_number_iops;
>        }
>  
> +    case _SC_GETPW_R_SIZE_MAX:
> +        return 1024;
> +
>  #if defined(__sparc__)
>      case 515: /* Solaris _SC_STACK_PROT */
>       return 0;
> @@ -40,5 +44,6 @@
>        break;
>    }
>  
> -  return POSIX_NOT_IMPLEMENTED();
> +  errno = EINVAL;
> +  return -1;
>  }
patched by this patch, still have problems. When booting the "example" application,the following error rise up:

*****Starting EPICS application*****
-------------------------------------------------------
Exception 13 caught at PC 18119C by thread 167837697
-------------------------------------------------------
Processor execution context at time of the fault was:
-------------------------------------------------------
EAX = FFFFFFFF EBX = 24C48C   ECX=63  EDX = 7F5F88C
ESI = 0  EDI = 0  EBP = 43E0B8 ESP=43E08C
--------------------------------------------------------
Error code pushed by processor itself (if not 0) = 0
--------------------------------------------------------
***********FAULTY THREAD WILL BE DELETED****************

Then the cpu halt.

regards,
--
Shao Mingchao
Engineering Physics Department
Tsinghua University
Beijing,100084,China

References:
base R3.14.1 "example" application booting problem, and rdbg questions M.C.Shao
Re: base R3.14.1 "example" application booting problem, and rdbg questions Eric Norum

Navigate by Date:
Prev: StripTool Nick Rees
Next: R3.14.1 ioc example Kevin M. Peterson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Re: base R3.14.1 "example" application booting problem, and rdbg questions Eric Norum
Next: CPUs Rolf Keitel
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019 
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 ·