Rev 1702 | Rev 1766 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1702 | Rev 1760 | ||
---|---|---|---|
Line 392... | Line 392... | ||
392 | if (pages == 1) |
392 | if (pages == 1) |
393 | order = 0; |
393 | order = 0; |
394 | else |
394 | else |
395 | order = fnzb(pages-1)+1; |
395 | order = fnzb(pages-1)+1; |
396 | 396 | ||
397 | pfn_t frame = frame_alloc_rc(order,FRAME_ATOMIC,&rc); |
397 | dbbuffer = frame_alloc_rc(order,FRAME_ATOMIC | FRAME_KA, &rc); |
398 | if (!rc) |
398 | if (!dbbuffer) |
399 | dbbuffer = (void *)PA2KA(PFN2ADDR(frame)); |
- | |
400 | else |
- | |
401 | printf("Failed to allocate scroll buffer.\n"); |
399 | printf("Failed to allocate scroll buffer.\n"); |
402 | dboffset = 0; |
400 | dboffset = 0; |
403 | 401 | ||
404 | /* Initialized blank line */ |
402 | /* Initialized blank line */ |
405 | blankline = (__u8 *) malloc(ROW_BYTES, FRAME_ATOMIC); |
403 | blankline = (__u8 *) malloc(ROW_BYTES, FRAME_ATOMIC); |