lkml.org 
[lkml]   [1999]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: holes for ISA boards...
Date

-----Original Message-----
From: Aaron J. Grier <aaron@frye.com>


>Summary: how do I make a memory "hole" for doing ISA I/O?

[...]
>--- arch/i386/mm/init.c.orig Thu Jun 10 16:13:22 1999
>+++ arch/i386/mm/init.c Fri Jun 11 13:12:27 1999

[...]
>+ if(virt_to_bus((void *)start_mem) < 0xC00000 && virt_to_bus((void
*)start_mem) >= 0x1000000) {


This looks like "if(0)" to me. Might explain the oops, everything gets
PG_reserved.

> clear_bit(PG_reserved, &mem_map[MAP_NR(start_mem)].flags);
>- start_mem += PAGE_SIZE;
>+ } else {
>+ set_bit(PG_reserved, &mem_map[MAP_NR(start_mem)].flags);
>+ }
>+ start_mem += PAGE_SIZE;


I havn't absorbed the rest of the patch yet, so no further comment on the
code.

I think this can be done if the Epson board is able to do ISA busmastering.

I've been looking at the bigphysarea patch to address a similar problem, but
it is unsuitable for this. It does not accomodate memory holes, always
placing its allocation as low as possible in memory.

I'll be very interested if you succeed at this. Rant of mine will be
elsewhere in this thread.

Cheers
Tom



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

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:4.767 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site