summaryrefslogtreecommitdiffstats
path: root/kernel/arch/parisc/include/uapi/asm/ptrace.h
blob: c4fa6c8b9ad9fa865e7766bb774d7e4bfcada3c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* written by Philipp Rumpf, Copyright (C) 1999 SuSE GmbH Nuernberg
** Copyright (C) 2000 Grant Grundler, Hewlett-Packard
*/
#ifndef _UAPI_PARISC_PTRACE_H
#define _UAPI_PARISC_PTRACE_H


#include <linux/types.h>

/* This struct defines the way the registers are stored on the 
 * stack during a system call.
 *
 * N.B. gdb/strace care about the size and offsets within this
 * structure. If you change things, you may break object compatibility
 * for those applications.
 */

struct pt_regs {
	unsigned long gr[32];	/* PSW is in gr[0] */
	__u64 fr[32];
	unsigned long sr[ 8];
	unsigned long iasq[2];
	unsigned long iaoq[2];
	unsigned long cr27;
	unsigned long pad0;     /* available for other uses */
	unsigned long orig_r28;
	unsigned long ksp;
	unsigned long kpc;
	unsigned long sar;	/* CR11 */
	unsigned long iir;	/* CR19 */
	unsigned long isr;	/* CR20 */
	unsigned long ior;	/* CR21 */
	unsigned long ipsw;	/* CR22 */
};

/*
 * The numbers chosen here are somewhat arbitrary but absolutely MUST
 * not overlap with any of the number assigned in <linux/ptrace.h>.
 *
 * These ones are taken from IA-64 on the assumption that theirs are
 * the most correct (and we also want to support PTRACE_SINGLEBLOCK
 * since we have taken branch traps too)
 */
#define PTRACE_SINGLEBLOCK	12	/* resume execution until next branch */


#endif /* _UAPI_PARISC_PTRACE_H */
t; [[ -d "$WORKSPACE/$_repo" ]] && return 0 pushd $WORKSPACE git clone -b $GERRIT_BRANCH --depth 1 --quiet $GIT_CLONE_BASE/$_repo popd } repos=$(get_repo_names) [[ -e docs/projects ]] && rm -rf docs/projects mkdir -p docs/projects echo echo "Cloning repos of participating OPNFV Projects and copying docs" echo for repo in $repos; do echo " $repo ($GERRIT_BRANCH)" git_clone $repo [[ -e $WORKSPACE/$repo/docs ]] || continue [[ -e docs/projects/$repo ]] && rm -rf docs/projects/$repo cp -r $WORKSPACE/$repo/docs docs/projects/$repo done # NOTE: Removing index.rst in project repos to reduce number of docs. find docs/projects -type f -name 'index.rst' -print | xargs -I i rm -f i # fix relative file paths pattern='.. \(include\|figure\):: *[^ \/]' base_path="/$(pwd)/docs_build/_src" find docs/projects -type f -name '*.rst' -print | while read f do sed -i -e "/$pattern/s|:: *|:: $base_path/$(dirname ${f#docs/})/|" $f done # for debug grep -e '.. include::' -e '.. figure::' -r docs/projects # NOTE: automated link generation is not ready... echo echo "Creating document links" echo targets=" configurationguide/configuration.options.render.rst configurationguide/scenario.description.rst userguide/feature.userguide.render.rst testframework/framework.installation.procedure.render.rst testframework/framework.userguide.render.rst " # configurationguide/post-install.rst for guide in $targets do mainfile="$WORKSPACE/docs/$guide" basefilename=$(basename ${guide/-/}) for repo in $repos do targetfile="$WORKSPACE/docs/projects/$repo/${guide/-/}" targetlink="../projects/$repo/${guide/-/}" projectfilename="${basefilename/.rst/-$repo.rst}" projectfile="$(dirname $mainfile)/$projectfilename" [[ -e "$targetfile" ]] || continue echo "Adding $repo to $guide ..." echo "" >> $mainfile echo ".. toctree::" >> $mainfile echo "" >> $mainfile echo " $projectfilename" >> $mainfile echo ".. include:: $targetlink" > $projectfile done echo echo "Generated $guide:" cat $mainfile echo done