unaligned.c (fc192e50f868d8f34b15a18c38407f4b9468a31d) | unaligned.c (74338805ec6869594d583535f941cb478c94dd73) |
---|---|
1/* 2 * Handle unaligned accesses by emulation. 3 * 4 * This file is subject to the terms and conditions of the GNU General Public 5 * License. See the file "COPYING" in the main directory of this archive 6 * for more details. 7 * 8 * Copyright (C) 1996, 1998, 1999, 2002 by Ralf Baechle --- 671 unchanged lines hidden (view full) --- 680} 681 682/* Recode table from 16-bit register notation to 32-bit GPR. */ 683const int reg16to32[] = { 16, 17, 2, 3, 4, 5, 6, 7 }; 684 685/* Recode table from 16-bit STORE register notation to 32-bit GPR. */ 686const int reg16to32st[] = { 0, 17, 2, 3, 4, 5, 6, 7 }; 687 | 1/* 2 * Handle unaligned accesses by emulation. 3 * 4 * This file is subject to the terms and conditions of the GNU General Public 5 * License. See the file "COPYING" in the main directory of this archive 6 * for more details. 7 * 8 * Copyright (C) 1996, 1998, 1999, 2002 by Ralf Baechle --- 671 unchanged lines hidden (view full) --- 680} 681 682/* Recode table from 16-bit register notation to 32-bit GPR. */ 683const int reg16to32[] = { 16, 17, 2, 3, 4, 5, 6, 7 }; 684 685/* Recode table from 16-bit STORE register notation to 32-bit GPR. */ 686const int reg16to32st[] = { 0, 17, 2, 3, 4, 5, 6, 7 }; 687 |
688void emulate_load_store_microMIPS(struct pt_regs *regs, void __user * addr) | 688static void emulate_load_store_microMIPS(struct pt_regs *regs, 689 void __user *addr) |
689{ 690 unsigned long value; 691 unsigned int res; 692 int i; 693 unsigned int reg = 0, rvar; 694 unsigned long orig31; 695 u16 __user *pc16; 696 u16 halfword; --- 961 unchanged lines hidden --- | 690{ 691 unsigned long value; 692 unsigned int res; 693 int i; 694 unsigned int reg = 0, rvar; 695 unsigned long orig31; 696 u16 __user *pc16; 697 u16 halfword; --- 961 unchanged lines hidden --- |