my state.
trying to get some memory optimisation (less pagetable reloading, less tlb purging) features working smoothly. to be documented when committing to trunk :)
This commit is contained in:
@@ -63,19 +63,8 @@ register message *m_ptr; /* pointer to request message */
|
||||
}
|
||||
if (i >= nr_io_range)
|
||||
{
|
||||
static int curr= 0, limit= 100, extra= 20;
|
||||
|
||||
if (curr < limit+extra)
|
||||
{
|
||||
kprintf("do_devio: port 0x%x (size %d) not allowed\n",
|
||||
m_ptr->DIO_PORT, size);
|
||||
} else if (curr == limit+extra)
|
||||
{
|
||||
kprintf("do_devio: no debug output for a while\n");
|
||||
}
|
||||
else if (curr == 2*limit-1)
|
||||
limit *= 2;
|
||||
curr++;
|
||||
return EPERM;
|
||||
}
|
||||
}
|
||||
@@ -83,19 +72,8 @@ register message *m_ptr; /* pointer to request message */
|
||||
doit:
|
||||
if (m_ptr->DIO_PORT & (size-1))
|
||||
{
|
||||
static int curr= 0, limit= 100, extra= 20;
|
||||
|
||||
if (curr < limit+extra)
|
||||
{
|
||||
kprintf("do_devio: unaligned port 0x%x (size %d)\n",
|
||||
m_ptr->DIO_PORT, size);
|
||||
} else if (curr == limit+extra)
|
||||
{
|
||||
kprintf("do_devio: no debug output for a while\n");
|
||||
}
|
||||
else if (curr == 2*limit-1)
|
||||
limit *= 2;
|
||||
curr++;
|
||||
return EPERM;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user