processor.h (5a2dd72abdae75ea2960145e0549635ce4e0be96) | processor.h (26584853a44c58f3d6ac7360d697a2ddcd1a3efa) |
---|---|
1/* 2 * arch/arm/include/asm/processor.h 3 * 4 * Copyright (C) 1995-1999 Russell King 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 57 unchanged lines hidden (view full) --- 66 set_fs(USER_DS); \ 67 memset(regs->uregs, 0, sizeof(regs->uregs)); \ 68 if (current->personality & ADDR_LIMIT_32BIT) \ 69 regs->ARM_cpsr = USR_MODE; \ 70 else \ 71 regs->ARM_cpsr = USR26_MODE; \ 72 if (elf_hwcap & HWCAP_THUMB && pc & 1) \ 73 regs->ARM_cpsr |= PSR_T_BIT; \ | 1/* 2 * arch/arm/include/asm/processor.h 3 * 4 * Copyright (C) 1995-1999 Russell King 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 57 unchanged lines hidden (view full) --- 66 set_fs(USER_DS); \ 67 memset(regs->uregs, 0, sizeof(regs->uregs)); \ 68 if (current->personality & ADDR_LIMIT_32BIT) \ 69 regs->ARM_cpsr = USR_MODE; \ 70 else \ 71 regs->ARM_cpsr = USR26_MODE; \ 72 if (elf_hwcap & HWCAP_THUMB && pc & 1) \ 73 regs->ARM_cpsr |= PSR_T_BIT; \ |
74 regs->ARM_cpsr |= PSR_ENDSTATE; \ |
|
74 regs->ARM_pc = pc & ~1; /* pc */ \ 75 regs->ARM_sp = sp; /* sp */ \ 76 regs->ARM_r2 = stack[2]; /* r2 (envp) */ \ 77 regs->ARM_r1 = stack[1]; /* r1 (argv) */ \ 78 regs->ARM_r0 = stack[0]; /* r0 (argc) */ \ 79 nommu_start_thread(regs); \ 80}) 81 --- 50 unchanged lines hidden --- | 75 regs->ARM_pc = pc & ~1; /* pc */ \ 76 regs->ARM_sp = sp; /* sp */ \ 77 regs->ARM_r2 = stack[2]; /* r2 (envp) */ \ 78 regs->ARM_r1 = stack[1]; /* r1 (argv) */ \ 79 regs->ARM_r0 = stack[0]; /* r0 (argc) */ \ 80 nommu_start_thread(regs); \ 81}) 82 --- 50 unchanged lines hidden --- |