Re: Mapping Physical Memory without a Device?

2003-06-13 Thread Bruce M Simpson
On Sat, Jun 07, 2003 at 01:39:44PM -0400, cd_freebsd wrote: > After sending my first note, I found pmap_mapdev. Anything wrong with using that? It's quite evil and not machine independent..avoid. BMS ___ [EMAIL PROTECTED] mailing list http://lists.freeb

Re: Mapping Physical Memory without a Device?

2003-06-13 Thread Bruce M Simpson
On Fri, Jun 06, 2003 at 01:30:28PM -0400, cd_freebsd wrote: > I would like to be able to map memory before I have a device to work with (to read > system BIOS information or mess with the video buffer). Is this possible? In linux, > I would just call ioremap_nocache or request region. Is there a

Re: Mapping Physical Memory without a Device?

2003-06-09 Thread John Baldwin
On 09-Jun-2003 cd_freebsd wrote: > John Baldwin <[EMAIL PROTECTED]> wrote: > >>> The first 1 meg of memory is 1:1 mapped at KERNBASE. IOW, you can get to the BIOS >>> at KERNBASE >>> + 0xc. That should cover these first two items. > > Even on non-i386 machines? No, other machines don't

Re: Mapping Physical Memory without a Device?

2003-06-09 Thread cd_freebsd
John Baldwin <[EMAIL PROTECTED]> wrote: >> The first 1 meg of memory is 1:1 mapped at KERNBASE. IOW, you can get to the BIOS >> at KERNBASE + 0xc. That should cover these first two items. Even on non-i386 machines? I guess it really doesn't matter since I am reading the BIOS area to dete

Re: Mapping Physical Memory without a Device?

2003-06-09 Thread John Baldwin
On 09-Jun-2003 cd_freebsd wrote: > [EMAIL PROTECTED] writes > >>> You may also want to consider pmap_map. It depends on what your >>requirements >>> are? > > while Bruce M Simpson [EMAIL PROTECTED] writes > >>>It's quite evil and not machine independent..avoid. > > -Who is right? (I like Jul

RE: Mapping Physical Memory without a Device?

2003-06-09 Thread cd_freebsd
John Baldwin <[EMAIL PROTECTED]> wrote: >> The problem is that the RAM could be used out from under you. You need to reserve >> it in the VM somehow. I'm not sure how you would accomplish that. The areas I said I would map would not be used by the OS for virtual memory pages. BIOS, UMB, Video

RE: Mapping Physical Memory without a Device?

2003-06-09 Thread John Baldwin
On 07-Jun-2003 cd_freebsd wrote: > After sending my first note, I found pmap_mapdev. Anything wrong with using that? /* * Map a set of physical memory pages into the kernel virtual * address space. Return a pointer to where it is mapped. This * routine is intended to be used for mapping device

Re: Mapping Physical Memory without a Device?

2003-06-09 Thread cd_freebsd
[EMAIL PROTECTED] writes >> You may also want to consider pmap_map. It depends on what your >>requirements are? while Bruce M Simpson [EMAIL PROTECTED] writes >>It's quite evil and not machine independent..avoid. -Who is right? (I like Juli's answer and she has FreeBSD.org in her name :) ) -W

RE: Mapping Physical Memory without a Device?

2003-06-07 Thread cd_freebsd
After sending my first note, I found pmap_mapdev. Anything wrong with using that? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Mapping Physical Memory without a Device?

2003-06-06 Thread cd_freebsd
I would like to be able to map memory before I have a device to work with (to read system BIOS information or mess with the video buffer). Is this possible? In linux, I would just call ioremap_nocache or request region. Is there a way to use bus_alloc_resource or something similar to accomplish