Lines 153-159
slot (const struct insn *insn)
Link Here
|
153 |
static int |
153 |
static int |
154 |
apply_imm64 (struct module *mod, struct insn *insn, uint64_t val) |
154 |
apply_imm64 (struct module *mod, struct insn *insn, uint64_t val) |
155 |
{ |
155 |
{ |
156 |
if (slot(insn) != 2) { |
156 |
if (slot(insn) != 1 && slot(insn) != 2) { |
157 |
printk(KERN_ERR "%s: invalid slot number %d for IMM64\n", |
157 |
printk(KERN_ERR "%s: invalid slot number %d for IMM64\n", |
158 |
mod->name, slot(insn)); |
158 |
mod->name, slot(insn)); |
159 |
return 0; |
159 |
return 0; |
Lines 165-171
apply_imm64 (struct module *mod, struct insn *insn, uint64_t val)
Link Here
|
165 |
static int |
165 |
static int |
166 |
apply_imm60 (struct module *mod, struct insn *insn, uint64_t val) |
166 |
apply_imm60 (struct module *mod, struct insn *insn, uint64_t val) |
167 |
{ |
167 |
{ |
168 |
if (slot(insn) != 2) { |
168 |
if (slot(insn) != 1 && slot(insn) != 2) { |
169 |
printk(KERN_ERR "%s: invalid slot number %d for IMM60\n", |
169 |
printk(KERN_ERR "%s: invalid slot number %d for IMM60\n", |
170 |
mod->name, slot(insn)); |
170 |
mod->name, slot(insn)); |
171 |
return 0; |
171 |
return 0; |
172 |
- |
|
|