Subversion Repositories HelenOS

Rev

Rev 4338 | Rev 4341 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4338 Rev 4339
Line 76... Line 76...
76
    /* Initialize the software structure. */   
76
    /* Initialize the software structure. */   
77
    ega_base = base;
77
    ega_base = base;
78
 
78
 
79
    backbuf = (uint8_t *) malloc(SCREEN * 2, 0);
79
    backbuf = (uint8_t *) malloc(SCREEN * 2, 0);
80
    if (!backbuf)
80
    if (!backbuf)
81
        panic("Unable to allocate backbuffer.\n");
81
        panic("Unable to allocate backbuffer.");
82
   
82
   
83
    videoram = (uint8_t *) hw_map(videoram_phys, SCREEN * 2);
83
    videoram = (uint8_t *) hw_map(videoram_phys, SCREEN * 2);
84
   
84
   
85
    /* Clear the screen and set the cursor position. */
85
    /* Clear the screen and set the cursor position. */
86
    memsetw(videoram, SCREEN, 0x0720);
86
    memsetw(videoram, SCREEN, 0x0720);