1 #ifndef _ASM_IA64_RSE_H
2 #define _ASM_IA64_RSE_H
15 ia64_rse_slot_num (
unsigned long *
addr)
17 return (((
unsigned long) addr) >> 3) & 0x3f;
24 ia64_rse_is_rnat_slot (
unsigned long *addr)
26 return ia64_rse_slot_num(addr) == 0x3f;
34 ia64_rse_rnat_addr (
unsigned long *slot_addr)
36 return (
unsigned long *) ((
unsigned long) slot_addr | (0x3f << 3));
45 ia64_rse_num_regs (
unsigned long *bspstore,
unsigned long *bsp)
47 unsigned long slots = (bsp - bspstore);
49 return slots - (ia64_rse_slot_num(bspstore) +
slots)/0x40;
57 ia64_rse_skip_regs (
unsigned long *addr,
long num_regs)
59 long delta = ia64_rse_slot_num(addr) + num_regs;
63 return addr + num_regs + delta/0x3f;