public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] redboot info threads problem
@ 2000-12-07  3:05 Andrew Lunn
  2000-12-07  3:11 ` Gary Thomas
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Lunn @ 2000-12-07  3:05 UTC (permalink / raw)
  To: eCos Disuss

Hi Folks

Im trying to work out how redboot does its info threads call. I think
i understand whats going. The redboot stub calls into the RAM app
using the virtual vector support. dbg_threadinfo calls
dbg_thread_syscal which jumps through the vector thus

static __inline__ int dbg_thread_syscall(
                                     enum dbg_syscall_ids id)
{
  dbg_syscall_func f ; /* double indirect via */
  if (0 ==(f = *dbg_syscall_ptr)) return 0 ; /* no pointer to vector */
  if (0 == *f) return 0 ; /* vector not initialized */
  return (*f)(id,&tcall);
}

What im missing is when is dbg_syscall_ptr initialised? There is a
function to do it, init_threads_syscall, but its not getting
called. This should be called as part of hal_if_init but its not. Its
surrouned by conditional compilations which are evaluating to
false. The conditions are 

!defined(CYGPKG_KERNEL) && defined(CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT)

I don't have a kernel, this is plain redboot. Looking at ecos.ecc
CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT is not active.

    # ActiveIf constraint:  CYGSEM_HAL_ROM_MONITOR || CYGDBG_KERNEL_DEBUG_GD
B_THREAD_SUPPORT 
    #     CYGSEM_HAL_ROM_MONITOR == 0
    #     CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT (unknown) == 0
    #   --> 0

The redboot.txt shipped with 1.4.4 says to disable
CYGSEM_HAL_ROM_MONITOR.  CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT is
defined in kernel.cdl which since im not using it is not included.

So whats wrong?

        Thanks
                Andrew

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2000-12-07  6:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-07  3:05 [ECOS] redboot info threads problem Andrew Lunn
2000-12-07  3:11 ` Gary Thomas
2000-12-07  3:35   ` Andrew Lunn
2000-12-07  3:42     ` Gary Thomas
2000-12-07  3:51       ` Andrew Lunn
     [not found]     ` <20001207125137.A7817.cygnus.project.ecc.redboot@biferten.ma.tech.ascom.ch>
2000-12-07  4:33       ` Hugo Tyson
2000-12-07  4:52         ` Andrew Lunn
2000-12-07  5:43     ` Jesper Skov
2000-12-07  6:13       ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).