Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) #ifndef _ASM_IA64_UNWIND_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3) #define _ASM_IA64_UNWIND_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  * Copyright (C) 1999-2000, 2003 Hewlett-Packard Co
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  *	David Mosberger-Tang <davidm@hpl.hp.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9)  * A simple API for unwinding kernel stacks.  This is used for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)  * debugging and error reporting purposes.  The kernel doesn't need
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11)  * full-blown stack unwinding with all the bells and whitles, so there
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12)  * is not much point in implementing the full IA-64 unwind API (though
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13)  * it would of course be possible to implement the kernel API on top
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14)  * of it).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) struct task_struct;	/* forward declaration */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) struct switch_stack;	/* forward declaration */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) enum unw_application_register {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) 	UNW_AR_BSP,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) 	UNW_AR_BSPSTORE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) 	UNW_AR_PFS,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 	UNW_AR_RNAT,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) 	UNW_AR_UNAT,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) 	UNW_AR_LC,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 	UNW_AR_EC,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) 	UNW_AR_FPSR,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) 	UNW_AR_RSC,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) 	UNW_AR_CCV,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) 	UNW_AR_CSD,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) 	UNW_AR_SSD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36)  * The following declarations are private to the unwind
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37)  * implementation:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) struct unw_stack {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 	unsigned long limit;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 	unsigned long top;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) #define UNW_FLAG_INTERRUPT_FRAME	(1UL << 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48)  * No user of this module should every access this structure directly
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49)  * as it is subject to change.  It is declared here solely so we can
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50)  * use automatic variables.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) struct unw_frame_info {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 	struct unw_stack regstk;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	struct unw_stack memstk;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	unsigned int flags;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 	short hint;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 	short prev_script;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 	/* current frame info: */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 	unsigned long bsp;		/* backing store pointer value */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 	unsigned long sp;		/* stack pointer value */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 	unsigned long psp;		/* previous sp value */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 	unsigned long ip;		/* instruction pointer value */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	unsigned long pr;		/* current predicate values */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 	unsigned long *cfm_loc;		/* cfm save location (or NULL) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 	unsigned long pt;		/* struct pt_regs location */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 	struct task_struct *task;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 	struct switch_stack *sw;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 	/* preserved state: */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 	unsigned long *bsp_loc;		/* previous bsp save location */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 	unsigned long *bspstore_loc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 	unsigned long *pfs_loc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 	unsigned long *rnat_loc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	unsigned long *rp_loc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 	unsigned long *pri_unat_loc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	unsigned long *unat_loc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 	unsigned long *pr_loc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	unsigned long *lc_loc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 	unsigned long *fpsr_loc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 	struct unw_ireg {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 		unsigned long *loc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 		struct unw_ireg_nat {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 			unsigned long type : 3;		/* enum unw_nat_type */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 			signed long off : 61;		/* NaT word is at loc+nat.off */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 		} nat;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 	} r4, r5, r6, r7;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 	unsigned long *b1_loc, *b2_loc, *b3_loc, *b4_loc, *b5_loc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 	struct ia64_fpreg *f2_loc, *f3_loc, *f4_loc, *f5_loc, *fr_loc[16];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94)  * The official API follows below:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) struct unw_table_entry {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 	u64 start_offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 	u64 end_offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 	u64 info_offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104)  * Initialize unwind support.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) extern void unw_init (void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) extern void *unw_add_unwind_table (const char *name, unsigned long segment_base, unsigned long gp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 				   const void *table_start, const void *table_end);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) extern void unw_remove_unwind_table (void *handle);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114)  * Prepare to unwind blocked task t.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) extern void unw_init_from_blocked_task (struct unw_frame_info *info, struct task_struct *t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) extern void unw_init_frame_info (struct unw_frame_info *info, struct task_struct *t,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 				 struct switch_stack *sw);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122)  * Prepare to unwind the currently running thread.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) extern void unw_init_running (void (*callback)(struct unw_frame_info *info, void *arg), void *arg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127)  * Unwind to previous to frame.  Returns 0 if successful, negative
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128)  * number in case of an error.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) extern int unw_unwind (struct unw_frame_info *info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133)  * Unwind until the return pointer is in user-land (or until an error
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134)  * occurs).  Returns 0 if successful, negative number in case of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135)  * error.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) extern int unw_unwind_to_user (struct unw_frame_info *info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) #define unw_is_intr_frame(info)	(((info)->flags & UNW_FLAG_INTERRUPT_FRAME) != 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) static inline int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) unw_get_ip (struct unw_frame_info *info, unsigned long *valp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 	*valp = (info)->ip;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) static inline int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) unw_get_sp (struct unw_frame_info *info, unsigned long *valp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 	*valp = (info)->sp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) static inline int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) unw_get_psp (struct unw_frame_info *info, unsigned long *valp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 	*valp = (info)->psp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) static inline int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) unw_get_bsp (struct unw_frame_info *info, unsigned long *valp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	*valp = (info)->bsp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) static inline int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) unw_get_cfm (struct unw_frame_info *info, unsigned long *valp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	*valp = *(info)->cfm_loc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) static inline int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) unw_set_cfm (struct unw_frame_info *info, unsigned long val)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 	*(info)->cfm_loc = val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) static inline int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) unw_get_rp (struct unw_frame_info *info, unsigned long *val)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 	if (!info->rp_loc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 		return -1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 	*val = *info->rp_loc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) extern int unw_access_gr (struct unw_frame_info *, int, unsigned long *, char *, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) extern int unw_access_br (struct unw_frame_info *, int, unsigned long *, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) extern int unw_access_fr (struct unw_frame_info *, int, struct ia64_fpreg *, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) extern int unw_access_ar (struct unw_frame_info *, int, unsigned long *, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) extern int unw_access_pr (struct unw_frame_info *, unsigned long *, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) static inline int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) unw_set_gr (struct unw_frame_info *i, int n, unsigned long v, char nat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 	return unw_access_gr(i, n, &v, &nat, 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) static inline int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) unw_set_br (struct unw_frame_info *i, int n, unsigned long v)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	return unw_access_br(i, n, &v, 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) static inline int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) unw_set_fr (struct unw_frame_info *i, int n, struct ia64_fpreg v)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 	return unw_access_fr(i, n, &v, 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) static inline int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) unw_set_ar (struct unw_frame_info *i, int n, unsigned long v)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 	return unw_access_ar(i, n, &v, 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) static inline int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) unw_set_pr (struct unw_frame_info *i, unsigned long v)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) 	return unw_access_pr(i, &v, 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) #define unw_get_gr(i,n,v,nat)	unw_access_gr(i,n,v,nat,0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) #define unw_get_br(i,n,v)	unw_access_br(i,n,v,0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) #define unw_get_fr(i,n,v)	unw_access_fr(i,n,v,0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) #define unw_get_ar(i,n,v)	unw_access_ar(i,n,v,0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) #define unw_get_pr(i,v)		unw_access_pr(i,v,0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) #endif /* _ASM_UNWIND_H */