diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2015-01-05 00:50:16 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2015-01-05 00:50:16 +0000 |
commit | 2269211bb1f74ff0dfff21ac42defc2a3a06e8f8 (patch) | |
tree | a6079bd7c84498b3d26796ae91a513b26590491d /sys/dev/vt | |
parent | 174bffd0e1c18fea92da46c46c363f2457185a1c (diff) | |
download | FreeBSD-src-2269211bb1f74ff0dfff21ac42defc2a3a06e8f8.zip FreeBSD-src-2269211bb1f74ff0dfff21ac42defc2a3a06e8f8.tar.gz |
Make PS3 work with the userspace kboot loader. loader.ps3 will disappear
from the tree in the near future.
Done at: Hackathon
Diffstat (limited to 'sys/dev/vt')
-rw-r--r-- | sys/dev/vt/hw/fb/vt_fb.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/vt/hw/fb/vt_fb.c b/sys/dev/vt/hw/fb/vt_fb.c index 422bb03..044b641 100644 --- a/sys/dev/vt/hw/fb/vt_fb.c +++ b/sys/dev/vt/hw/fb/vt_fb.c @@ -154,6 +154,9 @@ vt_fb_setpixel(struct vt_device *vd, int x, int y, term_color_t color) c = info->fb_cmap[color]; o = info->fb_stride * y + x * FBTYPE_GET_BYTESPP(info); + if (info->fb_flags & FB_FLAG_NOWRITE) + return; + KASSERT((info->fb_vbase != 0), ("Unmapped framebuffer")); switch (FBTYPE_GET_BYTESPP(info)) { @@ -205,6 +208,9 @@ vt_fb_blank(struct vt_device *vd, term_color_t color) info = vd->vd_softc; c = info->fb_cmap[color]; + if (info->fb_flags & FB_FLAG_NOWRITE) + return; + KASSERT((info->fb_vbase != 0), ("Unmapped framebuffer")); switch (FBTYPE_GET_BYTESPP(info)) { @@ -260,6 +266,9 @@ vt_fb_bitblt_bitmap(struct vt_device *vd, const struct vt_window *vw, b = m = 0; bpl = (width + 7) >> 3; /* Bytes per source line. */ + if (info->fb_flags & FB_FLAG_NOWRITE) + return; + KASSERT((info->fb_vbase != 0), ("Unmapped framebuffer")); line = (info->fb_stride * y) + (x * bpp); |