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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hal_stub.h

?? ecos下的gui開發源代碼
?? H
字號:
#ifndef CYGONCE_HAL_HAL_STUB_H
#define CYGONCE_HAL_HAL_STUB_H

//=============================================================================
//
//      hal_stub.h
//
//      HAL header for GDB stub 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):   jskov
// Contributors:jskov
// Date:        1999-02-12
// Purpose:     Generic HAL stub header.
// Usage:       #include <cyg/hal/hal_stub.h>
// Description: This header is included by generic-stub.c to provide an
//              interface to the eCos-specific stub implementation. It is
//              not to be included by user code, and is only placed in a
//              publically accessible directory so that platform stub packages
//              are able to include it if required.
//                           
//####DESCRIPTIONEND####
//
//=============================================================================

#include <pkgconf/hal.h>

#ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
#define USE_GDBSTUB_PROTOTYPES 0        // avoid stub-tservice.h atm
#ifndef __ECOS__
#define __ECOS__                        // use to mark eCos hacks
#endif

#include <cyg/hal/basetype.h>           // HAL_LABEL_NAME
#include <cyg/hal/hal_arch.h>           // HAL header
#include <cyg/infra/cyg_type.h>         // cyg_uint32 and CYG_BYTEORDER

#ifndef __CYGMON_TYPES
#define __CYGMON_TYPES
typedef cyg_uint32 uint32;
typedef cyg_int32  int32;
#endif // __CYGMON_TYPES

#ifdef CYGBLD_HAL_PLATFORM_STUB_H
#include CYGBLD_HAL_PLATFORM_STUB_H
#else
#include <cyg/hal/plf_stub.h>
#endif
#include <cyg/hal/generic-stub.h>

#ifdef __cplusplus
extern "C" {
#endif
#if 0
} // to make below format correctly.
#endif

//-----------------------------------------------------------------------------
// Definitions for generic-stub.c

#define __set_mem_fault_trap(x) ({__mem_fault = 0; x(); __mem_fault;})

#if (CYG_BYTEORDER==CYG_LSBFIRST)
# if !defined(__LITTLE_ENDIAN__)
#  define __LITTLE_ENDIAN__
# endif
# if !defined(_LITTLE_ENDIAN)
#  define _LITTLE_ENDIAN
# endif
#endif

//-----------------------------------------------------------------------------
// Dummy definitions for harvard memory support for princeton memory systems.
#ifndef TARGET_HAS_HARVARD_MEMORY
typedef target_register_t target_addr_t;
#define TARGET_ADDR_IS_PROGMEM(x) 0
#define TARGET_ADDR_TO_PTR(x)     ((char *) (x))
#endif

//----------------------------------------------------------------------------
// Signal definitions to avoid 'signal.h'/
#define SIGHUP  1       /* hangup */
#define SIGINT  2       /* interrupt */
#define SIGQUIT 3       /* quit */
#define SIGILL  4       /* illegal instruction (not reset when caught) */
#define SIGTRAP 5       /* trace trap (not reset when caught) */
#define SIGIOT  6       /* IOT instruction */
#define SIGABRT 6       /* used by abort, replace SIGIOT in the future */
#define SIGEMT  7       /* EMT instruction */
#define SIGFPE  8       /* floating point exception */
#define SIGKILL 9       /* kill (cannot be caught or ignored) */
#define SIGBUS  10      /* bus error */
#define SIGSEGV 11      /* segmentation violation */
#define SIGSYS  12      /* bad argument to system call */
#define SIGPIPE 13      /* write on a pipe with no one to read it */
#define SIGALRM 14      /* alarm clock */
#define SIGTERM 15      /* software termination signal from kill */

//----------------------------------------------------------------------------
// Thread support. This setting is used in thread-pkts.h
#ifdef CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
#define DEBUG_THREADS 1
#else
#define DEBUG_THREADS 0
#endif

// The function stub_copy_registers() is statically defined in
// thread-packets.c, but in eCos this external stub is defined as it
// is used in dbg_gdb.cxx.
externC void __stub_copy_registers(target_register_t *dest, 
                                   target_register_t *src);

//----------------------------------------------------------------------------
// Hardware Watch/Breakpoint support. These are the possible return values
// of HAL_STUB_IS_STOPPED_BY_HARDWARE().
#define HAL_STUB_HW_STOP_NONE   0   // target did not stop for hw watch/break
#define HAL_STUB_HW_STOP_BREAK  1   // target stopped for hw breakpoint
#define HAL_STUB_HW_STOP_WATCH  2   // target stopped for write-only watchpoint
#define HAL_STUB_HW_STOP_RWATCH 3   // target stopped for read-only watchpoint
#define HAL_STUB_HW_STOP_AWATCH 4   // target stopped for access watchpoint

//----------------------------------------------------------------------------
// Memory accessor functions.
#define TARGET_HAS_OWN_MEM_FUNCS

//----------------------------------------------------------------------------
// Memory access checks. 

#ifndef CYG_HAL_STUB_PERMIT_DATA_READ
#define CYG_HAL_STUB_PERMIT_DATA_READ(_addr_, __count_) (1)
#endif

#ifndef CYG_HAL_STUB_PERMIT_DATA_WRITE
#define CYG_HAL_STUB_PERMIT_DATA_WRITE(_addr_, __count_) (1)
#endif

#ifdef TARGET_HAS_HARVARD_MEMORY

#ifndef CYG_HAL_STUB_PERMIT_CODE_READ
#define CYG_HAL_STUB_PERMIT_CODE_READ(_addr_, __count_) (1)
#endif

#ifndef CYG_HAL_STUB_PERMIT_CODE_WRITE
#define CYG_HAL_STUB_PERMIT_CODE_WRITE(_addr_, __count_) (1)
#endif

#endif

//----------------------------------------------------------------------------
// Target extras?!
extern int __process_target_query(char * pkt, char * out, int maxOut);
extern int __process_target_set(char * pkt, char * out, int maxout);
extern int __process_target_packet(char * pkt, char * out, int maxout);

//---------------------------------------------------------------------------
// Declarations to avoid compiler warnings.

// Set the baud rate for the current serial port.
extern void __set_baud_rate (int baud);

// Write C to the current serial port.
extern void putDebugChar (int c);

// Read one character from the current serial port.
extern int getDebugChar (void);

// Push CH back onto the debug stream.
extern void ungetDebugChar (int ch);

// Reset the board.
extern void __reset (void);

// Multi-bp support.
#ifndef __set_breakpoint
extern int __set_breakpoint (target_register_t addr, target_register_t len);
#endif
#ifndef __remove_breakpoint
extern int __remove_breakpoint (target_register_t addr, target_register_t len);
#endif
#ifndef __set_hw_breakpoint
extern int __set_hw_breakpoint (target_register_t addr, target_register_t len);
#endif
#ifndef __remove_hw_breakpoint
extern int __remove_hw_breakpoint (target_register_t addr, target_register_t len);
#endif
#ifndef __set_hw_watchpoint
extern int __set_hw_watchpoint (target_register_t addr, target_register_t len, int ztype);
#endif
#ifndef __remove_hw_watchpoint
extern int __remove_hw_watchpoint (target_register_t addr, target_register_t len, int ztype);
#endif

/* Install the standard set of trap handlers for the stub. */
extern void __install_traps (void);

/* Address in text section of a breakpoint instruction.  */

#ifndef BREAKINST_DEFINED
#define BREAKINST_DEFINED
extern void _breakinst (void);
#endif

/* The opcode for a breakpoint instruction.  */

extern unsigned long __break_opcode (void);

/* Function to flush output buffers */
extern void hal_flush_output(void);

#ifdef CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
// This one may assume a valid saved interrupt context on some platforms
extern void cyg_hal_gdb_interrupt    (target_register_t pc);
// This one does not; use from CRITICAL_IO_REGION macros below.
extern void cyg_hal_gdb_place_break  (target_register_t pc);
// Remove a break from either above - or not if cyg_hal_gdb_running_step
extern int  cyg_hal_gdb_remove_break (target_register_t pc);
// Bool: is such a breakpoint set?
extern int  cyg_hal_gdb_break_is_set (void);

/* This is used so that the generic stub can tell
 * cyg_hal_gdb_remove_break() not to bother when we are avoiding stepping
 * through a critical region ie. hal_diag_write_char() usually - that
 * shares the GDB IO device.
 */
extern volatile int cyg_hal_gdb_running_step;

// Use these in hal_diag.c when about to write a whole $O packet to GDB.
// NB they require __builtin_return_address() to work: if your platform
// does not support this, use HAL_DISABLE_INTERRUPTS &c instead.

#if 1 // Can use the address of a label: this is more portable

// This macro may already have been defined by the architecture HAL
#ifndef CYG_HAL_GDB_ENTER_CRITICAL_IO_REGION
#define CYG_HAL_GDB_ENTER_CRITICAL_IO_REGION( _old_ )                        \
do {                                                                         \
    HAL_DISABLE_INTERRUPTS(_old_);                                           \
    cyg_hal_gdb_place_break( (target_register_t)&&cyg_hal_gdb_break_place ); \
} while ( 0 )
#endif

// This macro may already have been defined by the architecture HAL
// Notice the trick to *use* the label - sometimes the tools want to
// move the label if unused, which is bad.
#ifndef CYG_HAL_GDB_LEAVE_CRITICAL_IO_REGION
#define CYG_HAL_GDB_LEAVE_CRITICAL_IO_REGION( _old_ )                         \
do {                                                                          \
    cyg_hal_gdb_remove_break( (target_register_t)&&cyg_hal_gdb_break_place ); \
    HAL_RESTORE_INTERRUPTS(_old_);                                            \
    _old_ = 1; /* actually use the label as a label... */                     \
cyg_hal_gdb_break_place:;                                                     \
    if ( (_old_)-- > 0 ) /* ...or the compiler might move it! */              \
        goto cyg_hal_gdb_break_place;                                         \
} while ( 0 )
#endif

#else // use __builtin_return_address instead.

#define CYG_HAL_GDB_ENTER_CRITICAL_IO_REGION( _old_ )                        \
do {                                                                         \
    HAL_DISABLE_INTERRUPTS(_old_);                                           \
    cyg_hal_gdb_place_break((target_register_t)__builtin_return_address(0)); \
} while ( 0 )

#define CYG_HAL_GDB_LEAVE_CRITICAL_IO_REGION( _old_ )                         \
do {                                                                          \
    cyg_hal_gdb_remove_break((target_register_t)__builtin_return_address(0)); \
    HAL_RESTORE_INTERRUPTS(_old_);                                            \
} while ( 0 )

#endif

#else // NO debug_gdb_break_support

// so define these just to do interrupts:
#define CYG_HAL_GDB_ENTER_CRITICAL_IO_REGION( _old_ )   \
do {                                                    \
    HAL_DISABLE_INTERRUPTS(_old_);                      \
} while (0);

#define CYG_HAL_GDB_LEAVE_CRITICAL_IO_REGION( _old_ )   \
do {                                                    \
    HAL_RESTORE_INTERRUPTS(_old_);                      \
} while (0);

#endif

//----------------------------------------------------------------------------
// eCos extensions to the stub

extern void hal_output_gdb_string(target_register_t str, int string_len);

extern target_register_t registers[];   // The current saved registers.
extern target_register_t * _registers ;
extern HAL_SavedRegisters *_hal_registers;

extern int cyg_hal_gdb_break;

#ifdef CYGPKG_ISOINFRA
# include <pkgconf/isoinfra.h>
#endif
#ifdef CYGINT_ISO_STRING_STRFUNCS
# include <string.h>
#else
//-----------------------------------------------------------------------------
// String helpers. These really should come from ISOINFRA
static inline char *strcpy( char *s, const char *t)
{
    char *r = s;

    while( *t ) *s++ = *t++;

    // Terminate the copied string.
    *s = 0;

    return r;
}

static inline size_t strlen( const char *s )
{
    int r = 0;
    while( *s++ ) r++;
    return r;
}
#endif

//-----------------------------------------------------------------------------
// Repeat the cache definitions here to avoid too much hackery in 
// generic-stub.h
/* Flush the instruction cache. */
extern void flush_i_cache (void);

/* Flush the data cache. */
extern void __flush_d_cache (void);

typedef enum {
  CACHE_NOOP, CACHE_ENABLE, CACHE_DISABLE, CACHE_FLUSH
} cache_control_t;

/* Perform the specified operation on the instruction cache. 
   Returns 1 if the cache is enabled, 0 otherwise. */
extern int __instruction_cache (cache_control_t request);
/* Perform the specified operation on the data cache. 
   Returns 1 if the cache is enabled, 0 otherwise. */
extern int __data_cache (cache_control_t request);

#ifdef __cplusplus
} // extern "C"
#endif

#endif // ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS

//-----------------------------------------------------------------------------
#endif // CYGONCE_HAL_HAL_STUB_H
// End of hal_stub.h

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
eeuss影院一区二区三区| 依依成人精品视频| 日本视频中文字幕一区二区三区| 欧美一区二区三区免费大片| 国产精品资源网站| 亚洲卡通欧美制服中文| 国产欧美视频在线观看| 欧美老肥妇做.爰bbww视频| 国产综合久久久久影院| 一区二区三区四区精品在线视频| 欧美一区二区三区男人的天堂| 欧美日韩www| 91免费国产视频网站| 裸体一区二区三区| 欧美xxxxx牲另类人与| 色综合久久久网| 国产精品中文有码| 国产东北露脸精品视频| 免费看欧美女人艹b| 亚洲精品免费看| 亚洲国产日韩一级| 最新不卡av在线| 久久精品人人做人人综合| 在线电影国产精品| 国产婷婷色一区二区三区四区| 国产精品福利一区| 国产日本欧美一区二区| 亚洲精品久久7777| 日产国产欧美视频一区精品 | 亚洲日本丝袜连裤袜办公室| 亚洲日本丝袜连裤袜办公室| 亚洲444eee在线观看| 亚洲免费观看高清在线观看| 中文幕一区二区三区久久蜜桃| 日韩美女一区二区三区四区| 欧美另类videos死尸| 久久久久久亚洲综合| 久久青草欧美一区二区三区| 伊人婷婷欧美激情| 久久99国内精品| 国产精品自在在线| 欧美亚洲一区二区在线观看| 91麻豆国产精品久久| 91精品国产色综合久久久蜜香臀| 亚洲国产精品精华液ab| 国产色婷婷亚洲99精品小说| 亚洲与欧洲av电影| 视频一区二区国产| 久久成人精品无人区| 在线视频一区二区三区| 欧美性xxxxxxxx| 国产精品毛片无遮挡高清| 久久爱另类一区二区小说| 欧美在线综合视频| 国产精品美女久久久久久2018| 美女www一区二区| 欧美日韩一区中文字幕| 制服丝袜亚洲精品中文字幕| 欧美一区二区三区视频免费播放| 国产精品国产三级国产aⅴ中文| 免费不卡在线视频| 欧美日韩的一区二区| 亚洲狠狠丁香婷婷综合久久久| 成人一级视频在线观看| 欧美亚洲一区二区在线观看| 亚洲丝袜另类动漫二区| 国产一区二区精品久久91| 99久久免费视频.com| 欧美日韩黄色影视| 一区二区三区91| 欧美午夜一区二区三区免费大片| 中文字幕一区在线观看视频| 午夜伊人狠狠久久| 欧美日韩免费在线视频| 亚洲综合视频在线| 777久久久精品| 性欧美大战久久久久久久久| 欧美日韩大陆在线| 免费在线欧美视频| 久久久久亚洲综合| 成人免费视频一区| 亚洲色图欧洲色图婷婷| 色婷婷国产精品综合在线观看| 亚洲欧美日韩精品久久久久| 色94色欧美sute亚洲线路二| 欧美精品一区二区三区视频| 亚洲愉拍自拍另类高清精品| 欧美色图12p| 蜜桃视频一区二区| 亚洲精品一线二线三线无人区| 精品一区二区在线免费观看| 久久久久国产精品麻豆ai换脸| 国产激情一区二区三区| 亚洲免费资源在线播放| 欧美二区三区91| 国产一区视频导航| 亚洲蜜臀av乱码久久精品| 欧美性色黄大片| 精品午夜一区二区三区在线观看 | 不卡av免费在线观看| 欧美精品久久久久久久久老牛影院 | 麻豆国产精品官网| 国产亚洲婷婷免费| 色哟哟亚洲精品| 理论电影国产精品| 亚洲视频一二三区| 欧美一区二区在线免费观看| 国产一区二区在线观看视频| 中文字幕字幕中文在线中不卡视频| 91电影在线观看| 免费看精品久久片| 亚洲男人的天堂av| 久久中文娱乐网| 麻豆国产欧美一区二区三区| 久久精品男人的天堂| 91久久人澡人人添人人爽欧美| 免费精品视频最新在线| 亚洲日本va午夜在线影院| 精品少妇一区二区三区在线播放 | 亚洲高清免费视频| 久久久亚洲高清| 欧美日韩成人综合天天影院| 99久久精品久久久久久清纯| 日韩精品一区第一页| 亚洲色图在线视频| 精品国产乱码久久久久久久| 欧美色图第一页| 91美女在线观看| 成人亚洲精品久久久久软件| 日韩精品1区2区3区| 亚洲欧美日韩国产手机在线| 国产欧美综合在线| 精品噜噜噜噜久久久久久久久试看| proumb性欧美在线观看| 国产一区91精品张津瑜| 日韩在线卡一卡二| 亚洲成人av一区| 一区二区三区四区在线免费观看| 久久久久成人黄色影片| 精品国产伦一区二区三区免费| 欧美精品99久久久**| 色94色欧美sute亚洲线路二| 成人av影视在线观看| 国产乱码精品一区二区三区忘忧草 | 18成人在线观看| 日本一二三四高清不卡| 国产日韩精品久久久| 久久中文娱乐网| 久久亚洲精华国产精华液| 日韩欧美一区在线| 懂色av一区二区三区免费观看| 亚洲欧美日韩小说| 亚洲色图在线播放| 亚洲男女一区二区三区| 亚洲精品va在线观看| 亚洲欧美自拍偷拍色图| 中文字幕久久午夜不卡| 国产亚洲一区二区三区| 日本一区二区三区四区| 中文字幕一区二区三区在线不卡| 国产精品初高中害羞小美女文| 欧美激情一区三区| 亚洲视频精选在线| 一区二区三区在线看| 午夜视频一区二区| 亚洲三级免费电影| 亚洲免费观看高清完整版在线观看| 亚洲欧美另类久久久精品2019| 亚洲人成人一区二区在线观看| 亚洲欧美激情插| 日韩不卡一区二区三区| 国产伦精一区二区三区| 成人一区二区在线观看| 在线区一区二视频| 欧美一区二区国产| 久久精品网站免费观看| 中文字幕一区二区三区四区| 亚洲激情自拍视频| 蜜桃久久久久久久| 成人免费毛片高清视频| 欧美性大战xxxxx久久久| 欧美大胆人体bbbb| 成人免费在线视频观看| 五月激情六月综合| 国产高清成人在线| 在线观看国产日韩| 久久综合五月天婷婷伊人| 中文在线一区二区| 丝袜亚洲精品中文字幕一区| 国产精品综合二区| 欧美日韩亚洲丝袜制服| 久久综合狠狠综合久久综合88 | 欧美色欧美亚洲另类二区| 91精品国产乱码| 国产精品视频你懂的| 蜜桃视频在线观看一区二区| 91在线免费视频观看| 精品久久免费看| 亚洲国产成人91porn| 成人性色生活片免费看爆迷你毛片|