亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? dbg-threads-syscall.c

?? 開放源碼實(shí)時(shí)操作系統(tǒng)源碼.
?? C
字號(hào):
//========================================================================
//
//      dbg-threads-syscall.c
//
//      Pseudo system calls for multi-threaded debug support
//
//========================================================================
//####ECOSGPLCOPYRIGHTBEGIN####
// -------------------------------------------
// This file is part of eCos, the Embedded Configurable Operating System.
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
//
// eCos is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2 or (at your option) any later version.
//
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
// for more details.
//
// You should have received a copy of the GNU General Public License along
// with eCos; if not, write to the Free Software Foundation, Inc.,
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
//
// As a special exception, if other files instantiate templates or use macros
// or inline functions from this file, or you compile this file and link it
// with other works to produce a work based on this file, this file does not
// by itself cause the resulting work to be covered by the GNU General Public
// License. However the source code for this file must still be made available
// in accordance with section (3) of the GNU General Public License.
//
// This exception does not invalidate any other reasons why a work based on
// this file might be covered by the GNU General Public License.
//
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
// at http://sources.redhat.com/ecos/ecos-license/
// -------------------------------------------
//####ECOSGPLCOPYRIGHTEND####
//========================================================================
//#####DESCRIPTIONBEGIN####
//
// Author(s):     Red Hat, nickg
// Contributors:  Red Hat, nickg
// Date:          1998-08-25
// Purpose:       
// Description:   Pseudo system calls to bind system specific multithread
//                debug support with a ROM monitor, cygmon. We call it
//                Cygmon, but the feature lives in libstub.
// Usage:         
//
//####DESCRIPTIONEND####
//
//========================================================================

#include <pkgconf/system.h>
#include <pkgconf/hal.h>

#if !defined(CYGPKG_KERNEL) && defined(CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT)

/* Only include this code if we do not have a kernel. Otherwise the kernel
 * supplies these functions for the app we are linked with.
 */

#include <cyg/hal/dbg-threads-api.h>
#include <cyg/hal/dbg-thread-syscall.h>


static dbg_syscall_func * dbg_syscall_ptr ;

static union dbg_thread_syscall_parms tcall ;

/* ----- INIT_THREADS_SYSCALL --------------------------------------- */
/* Some external bing and configuration logic knows how to setup
   the ststem calls. In the first implementation, we have used a vector
   in the secondary vector table. This functions allows us to isolate that
   sort of system specific detail. Similarly, we do not export the
   specific detail of a dbg_syscall_func.
 */


void init_threads_syscall(void * vector)
{
   dbg_syscall_ptr = vector ; /* AH, the easy compatability of the
   void pointer*/
} /* init_threads_syscall */

/* All forms of failure return 0 */
/* Whether non support, incomplete initialization, unknown thread */
static __inline__ int dbg_thread_syscall(
				     enum dbg_syscall_ids id)
{
  dbg_syscall_func f ; /* double indirect via */
  if (0 == dbg_syscall_ptr) return 0; /* dbg_syscall_ptr never init'd */
  if (0 ==(f = *dbg_syscall_ptr)) return 0 ;  /* vector not initialized */
  return (*f)(id,&tcall);
}




/* ------- INIT_THREAD_SYSCALL -------------------------------------------  */
/* Received the address of the entry in the secondary interrupt vector table */
/* This table is the interchange between the O.S. and Cygmon/libstub         */
/* This could get more complex so, I am doing it with a function
   rather than exposing the internals.
 */
void init_thread_syscall(void * vector)
{
  dbg_syscall_ptr = vector ;
}

int dbg_thread_capabilities(struct dbg_capabilities * cbp)
{
#if 0    
  tcall.cap_parms.abilities = cbp ;
  return dbg_thread_syscall(dbg_capabilities_func) ;
#else
    cbp->mask1 = has_thread_current     |
        has_thread_registers            |
        has_thread_reg_change           |
        has_thread_list                 |
        has_thread_info                 ;
    return 1 ; 
#endif  
}

int dbg_currthread(threadref * varparm)
{
  tcall.currthread_parms.ref = varparm ;
  return dbg_thread_syscall(dbg_currthread_func) ;
}


int dbg_threadlist(
		   int startflag,
		   threadref * lastthreadid,
		   threadref * next_thread
		   )
{
  tcall.threadlist_parms.startflag = startflag ;
  tcall.threadlist_parms.lastid = lastthreadid ;
  tcall.threadlist_parms.nextthreadid = next_thread ;
  return dbg_thread_syscall(dbg_threadlist_func) ;
}

int dbg_threadinfo(
		   threadref * threadid,
		   struct cygmon_thread_debug_info * info)
{
  tcall.info_parms.ref = threadid ;
  tcall.info_parms.info = info ;
  return dbg_thread_syscall(dbg_threadinfo_func) ;
}

int dbg_getthreadreg(
		     threadref * osthreadid,
		     int regcount, /* count of registers in the array */
		     void * regval)  /* fillin this array */
{
  tcall.reg_parms.thread =    osthreadid ;
  tcall.reg_parms.regcount =  regcount ;
  tcall.reg_parms.registers = regval ;
  return dbg_thread_syscall(dbg_getthreadreg_func) ;
}

int dbg_setthreadreg(
		     threadref * osthreadid, 
		     int regcount , /* number of registers */
		     void * regval)
{
  tcall.reg_parms.thread =    osthreadid ;
  tcall.reg_parms.regcount =  regcount ;
  tcall.reg_parms.registers =  regval ;
  return dbg_thread_syscall(dbg_setthreadreg_func) ;
} /* dbg_setthreadreg */

int dbg_scheduler(threadref *thread_id, int lock, int mode)
{
  tcall.scheduler_parms.thread    = thread_id;
  tcall.scheduler_parms.lock      = lock ;
  tcall.scheduler_parms.mode      = mode ;

  return dbg_thread_syscall(dbg_scheduler_func) ;
}



#if (CYG_BYTEORDER == CYG_LSBFIRST)

unsigned long swap32(unsigned long x)
{
    unsigned long r = 0;

    r |= (x>>24)&0xFF;
    r |= ((x>>16)&0xFF)<<8;
    r |= ((x>>8)&0xFF)<<16;
    r |= ((x)&0xFF)<<24;

    return r;
}

#else

#define swap32(x) ((unsigned long)(x))

#endif

int dbg_currthread_id(void)
{
    threadref ref;
    if( dbg_currthread( &ref ) )
        return (cyg_uint16)swap32(((unsigned long *)ref)[1]);
    else return 0;
}

#endif

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品xxxxbbbb| 国产一区二区在线免费观看| 香蕉影视欧美成人| 韩国av一区二区三区| 99久精品国产| 91精品一区二区三区在线观看| 欧美精品一区二区三区四区| 中文字幕一区在线观看| 丝袜亚洲另类丝袜在线| 高清成人免费视频| 欧美吻胸吃奶大尺度电影| 日韩欧美色电影| 中文字幕一区二区三区在线观看 | 成人一道本在线| 欧美影院一区二区三区| 2024国产精品| 一区av在线播放| 九九精品视频在线看| 91美女视频网站| 精品国产伦一区二区三区免费| 亚洲少妇30p| 精品一区二区三区在线播放| 91麻豆国产精品久久| 精品国产凹凸成av人网站| 亚洲精品一卡二卡| 国产高清久久久久| 在线观看91av| 亚洲视频一区二区在线| 精品在线一区二区三区| 99视频在线观看一区三区| 日本欧美一区二区三区乱码| www.日本不卡| 久久综合网色—综合色88| 亚洲电影欧美电影有声小说| 成人av手机在线观看| 精品国产一区a| 亚洲成人1区2区| 91小视频在线| 国产欧美va欧美不卡在线| 美国毛片一区二区| 欧美日韩mp4| 亚洲免费三区一区二区| 懂色av一区二区夜夜嗨| 精品国产精品一区二区夜夜嗨| 亚洲一区二区三区中文字幕在线| 波多野结衣亚洲一区| 久久综合久久综合九色| 日韩av午夜在线观看| 欧美丝袜丝交足nylons图片| 亚洲视频在线一区二区| www.欧美日韩国产在线| 国产欧美一区二区精品忘忧草 | 精品免费日韩av| 偷拍一区二区三区| 欧美午夜电影一区| 亚洲在线视频网站| 色综合天天综合网天天狠天天| 国产精品伦理一区二区| 国产老妇另类xxxxx| 日韩欧美一级二级三级| 日韩成人伦理电影在线观看| 欧美色老头old∨ideo| 夜夜嗨av一区二区三区四季av| 99re免费视频精品全部| 中文字幕一区二区在线观看| 成人妖精视频yjsp地址| 中文字幕av一区二区三区| 从欧美一区二区三区| 国产精品美日韩| 不卡欧美aaaaa| 亚洲欧美激情小说另类| 一本久久a久久精品亚洲| 亚洲色图在线播放| 色av成人天堂桃色av| 亚洲国产综合在线| 欧美日韩精品一区二区三区| 午夜精品爽啪视频| 91精品国产综合久久香蕉麻豆| 蜜臀精品一区二区三区在线观看 | 国产一区欧美日韩| 2021久久国产精品不只是精品| 乱一区二区av| 国产亚洲精品超碰| 成人app软件下载大全免费| 日韩美女啊v在线免费观看| 99久久综合99久久综合网站| 亚洲欧美一区二区三区孕妇| 欧美日韩专区在线| 日韩av在线发布| 久久伊99综合婷婷久久伊| 国产成人免费视频网站| 亚洲欧洲av在线| 欧美日韩一区不卡| 久久电影网站中文字幕| 国产农村妇女精品| 在线亚洲人成电影网站色www| 亚洲高清免费视频| 2023国产精品| 97久久精品人人澡人人爽| 亚洲成人免费在线观看| 国产91精品入口| 久久免费看少妇高潮| 盗摄精品av一区二区三区| 夜色激情一区二区| 日韩欧美一级在线播放| 不卡的电视剧免费网站有什么| 亚洲另类春色校园小说| 日韩一级高清毛片| 成人在线视频首页| 亚洲福利一二三区| 久久精品亚洲乱码伦伦中文| 91浏览器打开| 免费视频最近日韩| 国产精品理论在线观看| 7777精品伊人久久久大香线蕉经典版下载 | 久久国产婷婷国产香蕉| 亚洲国产精品黑人久久久| 欧美午夜精品电影| 国产精品资源站在线| 亚洲激情一二三区| 日韩免费高清视频| 91麻豆6部合集magnet| 久久国产欧美日韩精品| 亚洲欧美一区二区不卡| 精品粉嫩aⅴ一区二区三区四区| 99国产一区二区三精品乱码| 蜜臀av一区二区在线观看| 国产精品美女久久久久av爽李琼| 538prom精品视频线放| 国产高清精品网站| 日韩激情av在线| 亚洲区小说区图片区qvod| 久久免费电影网| 91精品婷婷国产综合久久性色| 成人在线综合网| 卡一卡二国产精品| 一区二区激情视频| 国产亚洲人成网站| 欧美男男青年gay1069videost| 成人激情动漫在线观看| 精东粉嫩av免费一区二区三区| 一区二区三区国产| 国产精品久久久99| 久久亚洲综合色| 日韩一区二区三区精品视频| 91久久精品国产91性色tv| 国产99久久久久| 日本中文一区二区三区| 亚洲一区二区成人在线观看| 日本一区二区动态图| 久久夜色精品一区| 91精品国产综合久久久久久久久久| 91在线国内视频| 国产精品一区久久久久| 久久国产精品区| 亚瑟在线精品视频| 一区二区三区国产精华| 亚洲色图.com| 国产精品视频观看| 日本一区二区三级电影在线观看| 91精品啪在线观看国产60岁| 欧美色大人视频| 欧美在线不卡一区| 91热门视频在线观看| 国产精品久久久久影院色老大 | 精品中文av资源站在线观看| 偷拍一区二区三区四区| 亚洲成国产人片在线观看| 亚洲精品国产一区二区精华液 | 欧美日韩一区二区三区高清| 91论坛在线播放| 色一情一乱一乱一91av| 91在线云播放| www.av精品| 成人激情小说乱人伦| 国产69精品一区二区亚洲孕妇| 韩国理伦片一区二区三区在线播放| 精品夜夜嗨av一区二区三区| 蜜桃视频在线观看一区| 日韩精品电影一区亚洲| 亚洲曰韩产成在线| 亚洲一二三四久久| 亚洲小说欧美激情另类| 亚洲综合自拍偷拍| 亚洲大片在线观看| 爽好多水快深点欧美视频| 三级亚洲高清视频| 日韩va亚洲va欧美va久久| 美女久久久精品| 激情深爱一区二区| 狠狠色狠狠色综合| 高清久久久久久| 97精品久久久久中文字幕| 色丁香久综合在线久综合在线观看 | 久久综合色8888| 国产午夜久久久久| 亚洲丝袜美腿综合| 亚洲成人av福利| 久久99精品久久久久久| 国产精品66部|