fb: add hooks to handle KDB enter/exit
[sfrench/cifs-2.6.git] / drivers / video / console / fbcon.h
index a6e38e9ea73f59e3b65e7f979c9481f8004c1fc0..6bd2e0c7f209d402cbbf75bb3b088a7c58f3ed24 100644 (file)
@@ -74,6 +74,7 @@ struct fbcon_ops {
        int    cursor_reset;
        int    blank_state;
        int    graphics;
+       int    save_graphics; /* for debug enter/leave */
        int    flags;
        int    rotate;
        int    cur_rotate;
@@ -110,7 +111,7 @@ static inline int mono_col(const struct fb_info *info)
        __u32 max_len;
        max_len = max(info->var.green.length, info->var.red.length);
        max_len = max(info->var.blue.length, max_len);
-       return ~(0xfff << (max_len & 0xff));
+       return (~(0xfff << max_len)) & 0xff;
 }
 
 static inline int attr_col_ec(int shift, struct vc_data *vc,