public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* paging question
@ 2001-02-09  5:14 Daniel Stodden
  2001-02-09 13:35 ` Rik van Riel
  2001-02-09 15:32 ` Jeff Hartmann
  0 siblings, 2 replies; 7+ messages in thread
From: Daniel Stodden @ 2001-02-09  5:14 UTC (permalink / raw)
  To: linux-kernel


hi.

i desperately hope this is not too stupid.

i'm trying to write a driver which depends on giving pci devices
access to somewhat larger amounts of pysical memory. let's say, a
megabyte of contiguous ram.

is it possible to resize such an area later on? i mean: is there some
mechanism available in the kernel to enlarge such a region even if the
area beyond it is already in use?

i understand that this is pretty impossible if some entity depends on
correct physical locations of the pages in question. but couldn't for
example userland memory be copied elsewhere and its new location
simply remapped?

regards,
dns

-- 
___________________________________________________________________________
 mailto:stodden@in.tum.de
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 7+ messages in thread
* paging question
@ 2002-02-20 21:26 Jason Yan
  2002-02-20 19:16 ` Richard B. Johnson
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jason Yan @ 2002-02-20 21:26 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org

Hi,

I have a question about the code to enable  to initialize page 
tables in linux/arch/i386/head.S

I search the internet again and again but fail to find any answer
so far, maybe you gurus can help me out, here it goes:

48         cld
49         movl $(__KERNEL_DS),%eax
50         movl %eax,%ds
51         movl %eax,%es
52         movl %eax,%fs
53         movl %eax,%gs
81 /*
82  * Initialize page tables
83  */
84         movl $pg0-__PAGE_OFFSET,%edi /* initialize page tables */
85         movl $007,%eax  /* "007" doesn't mean with right to kill, but
86                                    PRESENT+RW+USER */
87 2:      stosl
88         add $0x1000,%eax
89         cmp $empty_zero_page-__PAGE_OFFSET,%edi
90         jne 2b
   
I remove the SMP code.  According the setup.S, gdt_table is setup as
gdt_table:		
			#.quad 0x0000000000000000;	// null
			#.quad 0x0000000000000000;	// not used
			#.quad 0x00cf9a000000ffff;	// 0x10 kernel 4GB code at 0x00000000
			#.quad 0x00cf92000000ffff;	// 0x18 kernel 4GB data at 0x00000000

1) So, what's in %eax after line 49 ?  0x0 ?
2) Isn't __PAGE_OFFSET 0xC0000000 ? what's the result of $pg0-__PAGE_OFFSET ?

Thanks,

Jason



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-02-21 17:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-09  5:14 paging question Daniel Stodden
2001-02-09 13:35 ` Rik van Riel
2001-02-09 15:32 ` Jeff Hartmann
  -- strict thread matches above, loose matches on Subject: below --
2002-02-20 21:26 Jason Yan
2002-02-20 19:16 ` Richard B. Johnson
2002-02-20 19:55 ` Cesar Suga
2002-02-21 17:20 ` Gianni Tedesco

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