Changeset 74d1d66 in mainline
- Timestamp:
- 2006-05-13T17:20:27Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2666daa
- Parents:
- e459f12
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
genarch/src/fb/fb.c
re459f12 r74d1d66 31 31 #include <console/chardev.h> 32 32 #include <console/console.h> 33 #include <mm/slab.h> 33 34 #include <panic.h> 34 35 #include <memstr.h> 36 #include <config.h> 35 37 36 38 #include "helenos.xbm" … … 39 41 40 42 static __u8 *fbaddress = NULL; 43 44 static __u8 *blankline = NULL; 41 45 42 46 static unsigned int xres = 0; … … 160 164 { 161 165 unsigned int i; 166 __u8 *lastline = &fbaddress[(rows - 1) * ROW_BYTES]; 162 167 163 168 memcpy((void *) fbaddress, (void *) &fbaddress[ROW_BYTES], scanline * yres - ROW_BYTES); 164 169 165 170 /* Clear last row */ 166 for (i = 0; i < FONT_SCANLINES; i++) 167 clear_line((rows - 1) * FONT_SCANLINES + i); 171 if (blankline) { 172 memcpy((void *) lastline, (void *) blankline, ROW_BYTES); 173 } else { 174 for (i = 0; i < FONT_SCANLINES; i++) 175 clear_line((rows - 1) * FONT_SCANLINES + i); 176 177 if (config.mm_initialized) { 178 /* Save a blank line aside. */ 179 blankline = (__u8 *) malloc(ROW_BYTES, FRAME_ATOMIC); 180 if (blankline) 181 memcpy((void *) blankline, (void *) lastline, ROW_BYTES); 182 } 183 } 168 184 } 169 185
Note:
See TracChangeset
for help on using the changeset viewer.