修改drivers/video/console/Makefile,去掉光标文件
29 #obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbcon.o bitblit.o font.o softcursor.o
30 obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbcon.o bitblit.o font.o
 
修改如下文件使用了soft_cursor的地方:
drivers/video/console/bitblit.c

drivers/video/console/fbcon_cw.c

drivers/video/console/fbcon_ccw.c
drivers/video/console/fbcon_ud.c
 
//  if (err)
//      soft_cursor(info, &cursor);
 
编译后,系统控制台不再有光标。
 
 
===================================
drivers/video/console/fbcon.c
static void fb_flashcursor(void *private)
static void fbcon_cursor(struct vc_data *vc, int mode)
里的内容注释掉,使之变成空函数即可。

相关文章:

  • 2022-12-23
  • 2022-03-05
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
  • 2022-03-01
  • 2021-12-13
  • 2022-12-23
猜你喜欢
  • 2022-02-22
  • 2021-12-24
  • 2021-12-14
  • 2022-01-21
  • 2021-11-16
  • 2022-12-23
  • 2021-07-02
相关资源
相似解决方案