mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* driver module issue-howto load the some pieces of code into another text section.
@ 2006-06-06  9:48 Aubrey
  0 siblings, 0 replies; only message in thread
From: Aubrey @ 2006-06-06  9:48 UTC (permalink / raw)
  To: linux-kernel

Hi all,

I'm working on the Blackfin-linux platform. For blackfin, Level 1(L1)
memories are located on the chip and are faster than the off-chip
SDRAM. So many users want to load some key driver code into it to
improve the performance.

If user specify a routine running in the L1 memory, there we created
another text section in the ELF file, we called "text_l1" section.

If the driver is built in the kernel, we can load the code to the L1
memory by boot loader. But when the driver is built as a module, if we
still want to load some codes to the L1 memory, we have to change some
common codes, mainly in the file "linux-2.6.x/kernel/module.c".  We
can

1) Use an architecture macro to add the patch code.

2) Use an Kconfig option macro to add the patch code.

I want to know which one is more reasonable and if it's acceptable, thanks.

I really appreciate your any suggestions and comments.

Regards,
-Aubrey

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-06  9:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-06  9:48 driver module issue-howto load the some pieces of code into another text section Aubrey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®