/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _ASM_IA64_RSE_H #define _ASM_IA64_RSE_H /* * Copyright (C) 1998, 1999 Hewlett-Packard Co * Copyright (C) 1998, 1999 David Mosberger-Tang <davidm@hpl.hp.com> * * Register stack engine related helper functions. This file may be * used in applications, so be careful about the name-space and give * some consideration to non-GNU C compilers (though __inline__ is * fine). */ static __inline__ unsigned long ia64_rse_slot_num (unsigned long *addr) { return (((unsigned long) addr) >> 3) & 0x3f; } /* * Return TRUE if ADDR is the address of an RNAT slot. */ static __inline__ unsigned long ia64_rse_is_rnat_slot (unsigned long *addr) { return ia64_rse_slot_num(addr) == 0x3f; } /* * Returns the address of the RNAT slot that covers the slot at * address SLOT_ADDR. */ static __inline__ unsigned long * ia64_rse_rnat_addr (unsigned long *slot_addr) { return (unsigned long *) ((unsigned long) slot_addr | (0x3f << 3)); } /* * Calculate the number of registers in the dirty partition starting at BSPSTORE and * ending at BSP. This isn't simply (BSP-BSPSTORE)/8 because every 64th slot stores * ar.rnat. */ static __inline__ unsigned long ia64_rse_num_regs (unsigned long *bspstore, unsigned long *bsp) { unsigned long slots = (bsp - bspstore); return slots - (ia64_rse_slot_num(bspstore) + slots)/0x40; } /* * The inverse of the above: given bspstore and the number of * registers, calculate ar.bsp. */ static __inline__ unsigned long * ia64_rse_skip_regs (unsigned long *addr, long num_regs) { long delta = ia64_rse_slot_num(addr) + num_regs; if (num_regs < 0) delta -= 0x3e; return addr + num_regs + delta/0x3f; } #endif /* _ASM_IA64_RSE_H */
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Kbuild | File | 125 B | 0644 |
|
auxvec.h | File | 407 B | 0644 |
|
bitsperlong.h | File | 234 B | 0644 |
|
break.h | File | 538 B | 0644 |
|
byteorder.h | File | 203 B | 0644 |
|
cmpxchg.h | File | 4.11 KB | 0644 |
|
errno.h | File | 94 B | 0644 |
|
fcntl.h | File | 388 B | 0644 |
|
fpu.h | File | 2.22 KB | 0644 |
|
gcc_intrin.h | File | 18.07 KB | 0644 |
|
ia64regs.h | File | 2.81 KB | 0644 |
|
intel_intrin.h | File | 4.88 KB | 0644 |
|
intrinsics.h | File | 4.06 KB | 0644 |
|
ioctl.h | File | 94 B | 0644 |
|
ioctls.h | File | 183 B | 0644 |
|
ipcbuf.h | File | 95 B | 0644 |
|
mman.h | File | 388 B | 0644 |
|
msgbuf.h | File | 930 B | 0644 |
|
param.h | File | 670 B | 0644 |
|
perfmon.h | File | 6.2 KB | 0644 |
|
perfmon_default_smpl.h | File | 3.47 KB | 0644 |
|
poll.h | File | 93 B | 0644 |
|
posix_types.h | File | 268 B | 0644 |
|
ptrace.h | File | 8.1 KB | 0644 |
|
ptrace_offsets.h | File | 6.38 KB | 0644 |
|
resource.h | File | 215 B | 0644 |
|
rse.h | File | 1.71 KB | 0644 |
|
sembuf.h | File | 678 B | 0644 |
|
setup.h | File | 924 B | 0644 |
|
shmbuf.h | File | 1.09 KB | 0644 |
|
sigcontext.h | File | 3.07 KB | 0644 |
|
siginfo.h | File | 3.06 KB | 0644 |
|
signal.h | File | 3.32 KB | 0644 |
|
socket.h | File | 2.33 KB | 0644 |
|
sockios.h | File | 559 B | 0644 |
|
stat.h | File | 1.1 KB | 0644 |
|
statfs.h | File | 555 B | 0644 |
|
swab.h | File | 781 B | 0644 |
|
termbits.h | File | 4.75 KB | 0644 |
|
termios.h | File | 1.21 KB | 0644 |
|
types.h | File | 866 B | 0644 |
|
ucontext.h | File | 360 B | 0644 |
|
unistd.h | File | 9.85 KB | 0644 |
|
ustack.h | File | 296 B | 0644 |
|