From: ravikumar.chakaravarthy@amd.com
To: linux-kernel@vger.kernel.org
Subject: Unable to turn paging on!!
Date: Wed, 26 Mar 2003 13:23:17 -0600 [thread overview]
Message-ID: <99F2150714F93F448942F9A9F112634CA54B3A@txexmtae.amd.com> (raw)
I tweaked the kernel and boot loader to load the kernel at 0xdf000000, physical address. I did the following changes to setup the initial page table.
However during boot, in arch/i386/kernel/head.S when the paging bit is set
movl %eax,%cr0 /* ..and set paging (PG) bit */
My computer hangs!!
Any idea why??
-Ravi
.org 0x1000
ENTRY(swapper_pg_dir)
.fill 0x37c,4,0
.long 0xdf002007
.long 0xdf003007
.fill 0x2,4,0
/* default: 766 entries */
.long 0xdf002007
.long 0xdf003007
/* default: 254 entries */
.fill 0x7e,4,0
/*
* The page tables are initialized to only 8MB here - the final page
* tables are set up later depending on memory size.
*/
.org 0x2000
ENTRY(pg0)
.org 0x3000
ENTRY(pg1)
Arch/i386/kernel/head.S
/*
* Initialize page tables
*/
movl $pg0-__PAGE_OFFSET,%edi /* initialize page tables */
movl $007,%eax /* "007" doesn't mean with right to kill, but
PRESENT+RW+USER */
addl $0xdf000000,%eax
2: stosl
add $0x1000,%eax
cmp $empty_zero_page-__PAGE_OFFSET,%edi
jne 2b
/*
* Enable paging
*/
3:
movl $swapper_pg_dir-__PAGE_OFFSET,%eax
movl %eax,%cr3 /* set the page table pointer.. */
movl %cr0,%eax
orl $0x80000000,%eax
movl %eax,%cr0 /* ..and set paging (PG) bit */ ---------------- Fails here
jmp 1f /* flush the prefetch-queue */
next reply other threads:[~2003-03-26 19:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-26 19:23 ravikumar.chakaravarthy [this message]
2003-03-26 20:11 ` Brian Gerst
2003-03-26 20:26 ` William Lee Irwin III
2003-03-26 20:36 ` Richard B. Johnson
2003-03-27 23:34 ravikumar.chakaravarthy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=99F2150714F93F448942F9A9F112634CA54B3A@txexmtae.amd.com \
--to=ravikumar.chakaravarthy@amd.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®