CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - WORD
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
ARM-PowerPC-ColdFire-MIPS
Embeded Linux
SCM
VxWorks
uCOS
DSP program
Windows CE
VHDL-FPGA-Verilog
Other Embeded program
QNX
hardware design
Open-source hardware
Search - WORD - List
[
VxWorks
]
Exception_recovery_using_Signal
DL : 0
tServer task executes functions at low priority (254). serverSend funtion is used to send a request to the tServer to execute a function at the tServer s priority. First tServer task executes the i() system call to print the summary of tShell task. Next an address exception is caused in tServer task by trying to execute a funtion at non-aligned word boundry. As a result SIGBUS signal is raised automatically. Signals (setjmp() and longjmp()) are used to allow the tServer task to recover gracefully from an address error exception. For more information about signals, please refer to sigLib manual pages.-tServer task executes functions at low pri ority (254). serverSend funtion is used to send a request to the tServer to execute a function at the tServer's priority. First tServer task exec utes the i () system call to print the summary of t Shell task. Next an address exception is caused in tServer task by trying to execute at a funtion non-aligned word boundry. As a result SIGBUS si gnal is raised automatically. Signals (setjmp () and longjmp ()) are used to allow the tServer t ask to recover gracefully from an address error exception. For more information about signals , please refer to sigLib manual pages.
Date
: 2025-12-19
Size
: 4kb
User
:
于凤新
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.