Commit 16b2ea64 authored by Keith Packard's avatar Keith Packard

Discard/reconstruct list of offscreen areas on VT switch so no allocations

    can occur while switched away.
Set type of off_screen_areas member to actual type instead of pointer
parent f4bcd36a
......@@ -121,7 +121,7 @@ typedef struct _KdScreenInfo {
CARD8 *memory_base;
int off_screen_base;
int off_screen_size;
pointer off_screen_areas;
struct _RealOffscreenArea *off_screen_areas;
} KdScreenInfo;
typedef struct _KdCardFuncs {
......
......@@ -222,12 +222,13 @@ KdOffscreenSwapOut (ScreenPtr pScreen)
KdOffscreenValidate (pScreen);
}
KdOffscreenValidate (pScreen);
KdOffscreenFini (pScreen);
}
void
KdOffscreenSwapIn (ScreenPtr pScreen)
{
/* nothing to do here; page in on usage */
KdOffscreenInit (pScreen);
}
/* merge the next free area into this one */
......@@ -248,7 +249,6 @@ KdOffscreenMerge (KdOffscreenArea *area)
void
KdOffscreenFree (KdOffscreenArea *area)
{
ScreenPtr pScreen = area->screen;
RealOffscreenArea *real_area = (RealOffscreenArea *) area;
RealOffscreenArea *next = real_area->next;
RealOffscreenArea *prev = real_area->prev;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment