Kernelnewbies Digest, Vol 22, Issue 1
hello everybody,
I am new to kernel programming.
Can anyone tell me how to start it.
kishore kumar
Quoted 169 lines · On Sun, Sep 2, 2012 at 9:30 PM, <[email protected]>wrote:
Send Kernelnewbies mailing list submissions to
kernelnewbies at kernelnewbies.orgTo subscribe or unsubscribe via the World Wide Web, visit
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
or, via email, send a message with subject or body 'help' to
kernelnewbies-request at kernelnewbies.orgYou can reach the person managing the list at
kernelnewbies-owner at kernelnewbies.orgWhen replying, please edit your Subject line so it is more specific than "Re: Contents of Kernelnewbies digest..."
Today's Topics:
1. Re: map bss to addr zero (Ritesh Harjani)
2. Re: map bss to addr zero (Mulyadi Santosa)
3. Re: Kernel booting problem. (Jim Cromie)----------------------------------------------------------------------
Message: 1
Date: Sun, 2 Sep 2012 00:53:17 +0530
From: Ritesh Harjani <[email protected]>
Subject: Re: map bss to addr zero
To: Srinivas Ramanan <[email protected]>,
mulyadi.santosa at gmail.com
Cc: kernelnewbies at kernelnewbies.org Message-ID:<CAD15agbM8jO+-KmrRByDpd0NRN3k_bcpEQi9p8W721c8_9Pefg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"Quoted 4 lines · Srinivas Ramanan
Hi all,
This is an interview question.
"What is the implication of mapping BSS to the Virtual Memory Segment 0?"Quoted 9 lines
I was not able to find the answer from web. So posting here.
thanks,
srinivas_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbiesHi,
The bss section typically includes all uninitialized variables declared with the static keyword.
The zero page which is a copy-on-write page that reads as zero is used to map the BSS segment. Any process referencing the zero page sees the page filled with zeos and if it tries to writes to the page, it ends up modifying a private copy. (LDD ch15. page 429)Mulyadi,
Why it will generate a page fault later when process will tries to reference it, while it already has mapped with the zero page?
Sorry if i am wrong anywhere.
Ritesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120902/b18f7568/attachment-0001.html------------------------------
Message: 2
Date: Sun, 2 Sep 2012 12:46:29 +0700
From: Mulyadi Santosa <[email protected]>
Subject: Re: map bss to addr zero
To: Ritesh Harjani <[email protected]>
Cc: Srinivas Ramanan <[email protected]>,
kernelnewbies at kernelnewbies.org
Message-ID:
<CAGdaadYXCTYad0aRKME1eyQ-rt1gh=vN=
Siyz2HtQzONpCBgVw at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1Hi... :)
Quoted 3 lines · Ritesh Harjani
Mulyadi,
Why it will generate a page fault later when process will tries to
reference
Quoted 3 lines
it, while it already has mapped with the zero page?
Hopefully I interpret it correctly that this question is for me :)
Sorry, maybe I am not clear, by reference, I meant "updating " or "writing" new value.
Since this zero page is mapped as read only, when writing to this zero page, page fault is triggered. Then page fault handler conclude that this is actually a write toward zero page from valid address, so it will allocate page(s).
--
regards,Mulyadi Santosa
Freelance Linux trainer and consultantblog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com------------------------------
Message: 3
Date: Sun, 2 Sep 2012 04:23:02 -0600
From: Jim Cromie <[email protected]>
Subject: Re: Kernel booting problem.
To: Sri Ram Vemulpali <[email protected]>
Cc: Mulyadi Santosa <[email protected]>, Jonathan Neusch?fer
<[email protected]>, kernelnewbies at kernelnewbies.org
Message-ID:<CAJfuBxytc+u1W99QKA7HCR_Su1NRx=1Qhn5MdLTKT_DYGpLuoQ at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1Quoted 5 lines · Sri Ram Vemulpali
Thanks for the replies again.
This time the problem is in tty specification.
Kernel supports console=tty0 (virtual terminal), where as my inittab has entry ::sysinit:/sbin/getty -L ttyS0 vt100. I have to change the ttyS0to tty0.
Quoted 5 lines
Once I changed this, I got login prompt.
But I do not understand how we tell kernel to use ttyS0 over tty0. Because in kernel config I selected was ttyS0 but it is using tty0.
try console on boot-line
root at voyage:~# more
/proc/cmdline
root=LABEL=ROOT_FS console=ttyS0,115200n8 rootdelay=120 reboot=bios loglevel=8
dynamic_debug.verbose=1Quoted 5 lines
Weird?
Thanks,
Sri.------------------------------
Quoted 9 lines
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbiesEnd of Kernelnewbies Digest, Vol 22, Issue 1
********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120903/09594702/attachment.html
Quoted 4 lines · kishore kumar
hello everybody,
I am new to kernel programming.
Can anyone tell me how to start it.
have you read the following page?
http://kernelnewbies.org/FAQ/WhereDoIBegin
Also, please kindly use bottom post. And please strip out the unneeded part of the message when you reply.
Signature · 7 lines
regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com