Skip to contentSkip to conversation

alternatives in modules

DISCUSSION Denys Vlasenko 2 participants 2 messages Sep 18, 2007

lore
Share & tools
lore
#0 lore raw

Hi Mathieu,

I was looking through kernel/module.c and if understand it correctly, it doesn't handle .altinstructions in modules at all. Am I reading code correctly?
--
vda

#1 lore raw
Quoted 5 lines · * Denys Vlasenko ([email protected]) wrote:

Hi Mathieu,

I was looking through kernel/module.c and if understand it correctly, it doesn't handle .altinstructions in modules at all. Am I reading code correctly?

Hi Denys,

See
arch/i386/kernel/module.c:module_finalize()
it calls apply_alternatives().
(and is called by load_module)

Mathieu

Quoted 2 lines

--
vda

Signature · 3 lines
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68