emulate_branch(3) Library Functions Manual emulate_branch(3)Name
emulate_branch, execute_branch - branch emulation
Syntax
#include <signal.h>
emulate_branch(scp, branch_instruction)
struct sigcontext *scp;
unsigned long branch_instruction;
execute_branch(branch_instruction)
unsigned long branch_instruction;
Description
The function is passed a signal context structure and a branch instruction. It emulates the branch based on the register values in the
signal context structure. It modifies the value of the program counter in the signal context structure (sc_pc) to the target of the
branch_instruction. The program counter must initially be pointing at the branch and the register values must be those at the time of the
branch. If the branch is not taken the program counter is advanced to point to the instruction after the delay slot (sc_pc += 8).
If the branch instruction is a `branch on coprocessor 2' or `branch on coprocessor 3' instruction, calls to execute the branch in data
space to determine if it is taken or not.
Return Values
The function returns a 0 if the branch was emulated successfully. A non-zero value indicates the value passed as a branch instruction was
not a branch instruction.
The function returns non-zero on taken branches and zero on non-taken branches.
Restrictions
Since is only intended to be used by it does not check its parameter to see if in fact it is a branch instruction. It is really a stop gap
in case a coprocessor is added without the kernel fully supporting it (which is unlikely).
See Alsocacheflush(2), sigvec(2), signal(3)
RISC emulate_branch(3)
Check Out this Related Man Page
ARCHPATH(1) General Commands Manual ARCHPATH(1)NAME
archpath - output arch (tla/Bazaar) archive names, with support for branches
SYNOPSIS
archpath
archpath branch
archpath branch--version
DESCRIPTION
archpath is intended to be run in an arch (tla or Bazaar) working copy.
In its simplest usage, archpath with no parameters outputs the package name (archive/category--branch--version) associated with the working
copy.
If a parameter is given, it may either be a branch--version, in which case archpath will output a corresponding package name in the current
archive and category, or a plain branch name (without '--"), in which case archpath will output a corresponding package name in the current
archive and category and with the same version as the current working copy.
This is useful for branching. For example, if you're using Bazaar and you want to create a branch for a new feature, you might use a com-
mand like this:
baz branch $(archpath) $(archpath new-feature)
Or if you want to tag your current code onto a 'releases' branch as version 1.0, you might use a command like this:
baz branch $(archpath) $(archpath releases--1.0)
That's much easier than using 'baz tree-version' to look up the package name and manually modifying the result.
AUTHOR
archpath was written by Colin Watson <cjwatson@debian.org>. Like archpath, this manual page is released under the GNU General Public
License, version 2 or later.
DEBIAN Debian Utilities ARCHPATH(1)
Hi there thanks for checking in
The I T manager over here wants us to convert 1 branch in our company from Win98 to Linux
I would just like to know the types of problems that we will have once this is done.
I would also like to know the following.
Does Linux come with a Office package... (3 Replies)
Hi,
This is my question: The banner printing is active in our TEST and PRODUCTION instances and we need to suppress it only for some reports. That's why I'm using the following instruction that works fine in TEST but not in PRODUCTION:
$ lp -orelay -d$printer $file_name
I'm not an expert in... (2 Replies)
having problems using scp in that during peak hours it appears to time out.
anyone have similar experiences? any thoughts regarding a solution... (1 Reply)
I was in the middle of transferring a file over a slow link (768k) using 'scp'. The system on this end got rebooted by an overzealous co-worker... I've got 500+ megs of the file here and 725 megs to go. I'd really hate to start over. I fear that the answer to my question is that I will have to... (3 Replies)
please i need to make telnet in an script but i cant use delay into the instruction because i dont know how many time takes an instruction to compleate in the other computer.How can i do? is there any form to do that??
please help
sorry for my english.... (1 Reply)
please i need to make telnet in an script but i cant use delay into the instruction because i dont know how many time takes an instruction to compleate in the other computer.How can i do? is there any form to do that??
please help
sorry for my english.... (2 Replies)
My client is using perforce. Like CVS, perforce has the feature where you can create your own branch and check broken code into the branch with out breaking the main line build. When you finally get to a point that you are not going to break the build, you merge your branch with mainline.
... (2 Replies)
hello everyone,
I'm having a problem doing signal handling so I post this thread to see if I could get help.
I want asynchronous signal handling, that means when I'm processing a signal (signal 1), if the same signal comes (signal 2) that signal (signal 2) shall be processed; and moreover,... (7 Replies)
Discussion started by: nvhoang
7 Replies
9. Forum Support Area for Unregistered Users & Account Problems
i have a case statement which branches to different sections based on an input. Each branch needs to call a function. below is the code. FOr some reason, the code inside the function is not getting executed. the code is below for reference.
in the below code echo "Function 1" which is there... (2 Replies)