Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc: Drop definition of start_thread_som for HP-UX SOM binaries

The definition of start_thread_som was planned to be used to execute
HP-UX SOM binaries. Since HP-UX compatibility was dropped with kernel 4.0
there is no need to carry it further.

Signed-off-by: Helge Deller <deller@gmx.de>

-27
-27
arch/parisc/include/asm/processor.h
··· 192 192 */ 193 193 typedef unsigned int elf_caddr_t; 194 194 195 - #define start_thread_som(regs, new_pc, new_sp) do { \ 196 - unsigned long *sp = (unsigned long *)new_sp; \ 197 - __u32 spaceid = (__u32)current->mm->context; \ 198 - unsigned long pc = (unsigned long)new_pc; \ 199 - /* offset pc for priv. level */ \ 200 - pc |= 3; \ 201 - \ 202 - regs->iasq[0] = spaceid; \ 203 - regs->iasq[1] = spaceid; \ 204 - regs->iaoq[0] = pc; \ 205 - regs->iaoq[1] = pc + 4; \ 206 - regs->sr[2] = LINUX_GATEWAY_SPACE; \ 207 - regs->sr[3] = 0xffff; \ 208 - regs->sr[4] = spaceid; \ 209 - regs->sr[5] = spaceid; \ 210 - regs->sr[6] = spaceid; \ 211 - regs->sr[7] = spaceid; \ 212 - regs->gr[ 0] = USER_PSW; \ 213 - regs->gr[30] = ((new_sp)+63)&~63; \ 214 - regs->gr[31] = pc; \ 215 - \ 216 - get_user(regs->gr[26],&sp[0]); \ 217 - get_user(regs->gr[25],&sp[-1]); \ 218 - get_user(regs->gr[24],&sp[-2]); \ 219 - get_user(regs->gr[23],&sp[-3]); \ 220 - } while(0) 221 - 222 195 /* The ELF abi wants things done a "wee bit" differently than 223 196 * som does. Supporting this behavior here avoids 224 197 * having our own version of create_elf_tables.