diff options
author | James Simmons <jsimmons@pentafluge.infradead.org> | 2005-06-21 20:17:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-21 22:07:41 -0400 |
commit | f1ab5dac251bb4514607918b0019a3b3f5f5fb48 (patch) | |
tree | 65d7912b1d407b1dc12b9e2f67b4311a153a41e5 /drivers/video/console/bitblit.c | |
parent | 303b86d9913eca0cbfc3c5cb41e7006f6e13b755 (diff) |
[PATCH] fbdev: stack reduction
Shrink the stack when calling the drawing alignment functions.
Signed-off-by: James Simmons <jsimmons@www.infradead.org>
Cc: "Antonino A. Daplas" <adaplas@hotpop.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/console/bitblit.c')
-rw-r--r-- | drivers/video/console/bitblit.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/video/console/bitblit.c b/drivers/video/console/bitblit.c index 4eef20790c3e..3c731577fed6 100644 --- a/drivers/video/console/bitblit.c +++ b/drivers/video/console/bitblit.c | |||
@@ -157,9 +157,9 @@ static void bit_putcs(struct vc_data *vc, struct fb_info *info, | |||
157 | src = buf; | 157 | src = buf; |
158 | } | 158 | } |
159 | 159 | ||
160 | fb_sysmove_buf_unaligned(info, &info->pixmap, dst, pitch, | 160 | fb_pad_unaligned_buffer(dst, pitch, src, idx, |
161 | src, idx, image.height, | 161 | image.height, shift_high, |
162 | shift_high, shift_low, mod); | 162 | shift_low, mod); |
163 | shift_low += mod; | 163 | shift_low += mod; |
164 | dst += (shift_low >= 8) ? width : width - 1; | 164 | dst += (shift_low >= 8) ? width : width - 1; |
165 | shift_low &= 7; | 165 | shift_low &= 7; |
@@ -175,8 +175,7 @@ static void bit_putcs(struct vc_data *vc, struct fb_info *info, | |||
175 | src = buf; | 175 | src = buf; |
176 | } | 176 | } |
177 | 177 | ||
178 | fb_sysmove_buf_aligned(info, &info->pixmap, dst, pitch, | 178 | fb_pad_aligned_buffer(dst, pitch, src, idx, image.height); |
179 | src, idx, image.height); | ||
180 | dst += width; | 179 | dst += width; |
181 | } | 180 | } |
182 | } | 181 | } |