Re: Building separate files for a kernel module

2018-04-04 Thread valdis . kletnieks
On Wed, 04 Apr 2018 18:29:21 -0300, Martin Galvan said: > PS: Yes, I'm aware I could just add $(bar-objs) to mydriver-y and > avoid building bar.a, but I really need to have those files as a > separate library. What's driving the requirement for a separate library?

Set Location Counter to a new value in ld linker script

2018-04-04 Thread Hao Lee
Hi, I'm confused about the location counter, especially when setting it to a new value in the output section. I write a simple program and a linker script to make my question more clear. The code is as follows: -test.s- section .text .globl _start _start: movq $1,

Building separate files for a kernel module

2018-04-04 Thread Martin Galvan
Hi all, I'm trying to build a kernel module by statically linking object files with a library. My source tree looks like this: source/ ├── bar/ | ├── bar1.c | └── bar2.c └── foo.c The relevant parts of my Makefile look like this: mydriver-y := foo.o bar.a obj-m += mydriver.o bar-objs :=

Re: specifying in the kernel command line

2018-04-04 Thread valdis . kletnieks
On Wed, 04 Apr 2018 11:46:01 +0300, Kevin Wilson said: > Hello, > I have an x86_64 host with 4GB of Physical RAM running Fedora 25. > > I have a question about hugepages allocation on this host. > In: > https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt > > I see that you can use

[sparc64] number of processors in a LDOM

2018-04-04 Thread Anatoly Pugachev
Hello! Can someone tell me or suggest why does getconf returns total available to a physical machine cpu count, and not LDOM allocated processor/vcpu count ? ttip$ getconf -a | grep PROCESSORS _NPROCESSORS_CONF 256 _NPROCESSORS_ONLN 16 i believe, nproc (from

[sparc64] number of processors in a LDOM

2018-04-04 Thread Anatoly Pugachev
Hello! Can someone tell me or suggest why does getconf returns total available to a physical machine cpu count, and not LDOM allocated processor/vcpu count ? ttip$ getconf -a | grep PROCESSORS _NPROCESSORS_CONF 256 _NPROCESSORS_ONLN 16 i believe, nproc (from

specifying in the kernel command line

2018-04-04 Thread Kevin Wilson
Hello, I have an x86_64 host with 4GB of Physical RAM running Fedora 25. I have a question about hugepages allocation on this host. In: https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt I see that you can use "hugepages=N" kernel parameter (in grub) for specifying the number of