LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-10-2012, 01:09 PM   #1
corone
Member
 
Registered: Jul 2009
Posts: 46

Rep: Reputation: 1
What is this area 0x0000_0000 - 0x0804_8000 for?


Hi,

The start address of the Code section (or Text section) is 0x0804_8000.
Code:
struct mm_struct *mm = NULL;

printk("mm->start_code: %x\n", (unsigned int)mm->start_code);
the output is the following...
Code:
mm->start_code: 8048000
and refer to the following...
Code:
# cat /proc/1/maps
08048000-08050000 r-xp 00000000 03:01 1673       /sbin/init
08050000-08051000 rw-p 00007000 03:01 1673       /sbin/init
08051000-08072000 rw-p 08051000 00:00 0          [heap]
...

# pmap -x 1
1:   init [2]
Address   Kbytes     RSS    Anon  Locked Mode   Mapping
08048000      32       -       -       - r-x--  init
08050000       4       -       -       - rw---  init
08051000     132       -       -       - rw---    [ anon ]
...

#
The Code section (or Text section) starts at 0x0804_8000.

Then, what is in the area 0x0000_0000 - 0x0804_8000?
What is this area 0x0000_0000 - 0x0804_8000 for?

Thank you.

Last edited by corone; 07-10-2012 at 01:17 PM.
 
Old 07-10-2012, 02:07 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Then, what is in the area 0x0000_0000 - 0x0804_8000?
What is this area 0x0000_0000 - 0x0804_8000 for?
In the bad old days, when '640k was enough memory for anyone - ever' there was Dos and everything was open in this 640k, and the later added upper memory -->1M. Weird things were done with A20 (for above 1M) because it was never going to be needed for memory:-//.

Nowadays, because of backward compatibility this and the bios area under 64k can be security hazards which hackers aim at, so the kernel keeps stuff out of the bottom 64k. Processors, architectures etc have all changed but in single steps and everything

HTH.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Group in Fargo, ND area/Moorhead, MN area startup? barnac1e Linux User Groups (LUG) 7 08-25-2014 02:15 PM
Notification Area .. utanja Debian 5 08-31-2010 07:17 AM
Where's your area profile Larry Webb General 12 08-04-2007 03:00 PM
Knoppix Area dmedici LQ Suggestions & Feedback 4 10-16-2003 07:58 AM
area of polygon questioner Programming 7 09-19-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration