Rev 891 | Rev 1135 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 891 | Rev 896 | ||
|---|---|---|---|
| Line 29... | Line 29... | ||
| 29 | #include <genarch/fb/font-8x16.h> |
29 | #include <genarch/fb/font-8x16.h> |
| 30 | #include <genarch/fb/fb.h> |
30 | #include <genarch/fb/fb.h> |
| 31 | #include <console/chardev.h> |
31 | #include <console/chardev.h> |
| 32 | #include <console/console.h> |
32 | #include <console/console.h> |
| 33 | #include <panic.h> |
33 | #include <panic.h> |
| - | 34 | #include <memstr.h> |
|
| 34 | 35 | ||
| 35 | #include "helenos.xbm" |
36 | #include "helenos.xbm" |
| 36 | 37 | ||
| 37 | SPINLOCK_INITIALIZE(fb_lock); |
38 | SPINLOCK_INITIALIZE(fb_lock); |
| 38 | 39 | ||
| Line 155... | Line 156... | ||
| 155 | /** Scroll screen one row up */ |
156 | /** Scroll screen one row up */ |
| 156 | static void scroll_screen(void) |
157 | static void scroll_screen(void) |
| 157 | { |
158 | { |
| 158 | int i; |
159 | int i; |
| 159 | 160 | ||
| 160 | for (i=0;i < (xres*yres*pixelbytes)-ROW_PIX; i++) |
161 | memcpy((void *) fbaddress, (void *) &fbaddress[ROW_PIX], (xres*yres*pixelbytes)-ROW_PIX); |
| 161 | fbaddress[i] = fbaddress[i+ROW_PIX]; |
- | |
| 162 | 162 | ||
| 163 | /* Clear last row */ |
163 | /* Clear last row */ |
| 164 | for (i=0; i < ROW_HEIGHT;i++) |
164 | for (i=0; i < ROW_HEIGHT;i++) |
| 165 | clear_line((rows-1)*ROW_HEIGHT+i); |
165 | clear_line((rows-1)*ROW_HEIGHT+i); |
| 166 | 166 | ||