linux
movenostop
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
echo数据到/dev/kmsg,并控制等级
Linux系统中,如果我们有root权限,可以直接echo信息到/dev/kmsg,这样在dmesg中就会出现我们的echo的信息。 例如: su dmesg -w & echo test > /dev/kmsg 执行以上shell指令,会输出 但是这样输出的默认是W等级的,能否控制输出的等级呢? 我们知道dmesg里面的内容,通过printk可以输入,那我们去查看printk源...原创 2019-11-21 10:29:15 · 5403 阅读 · 0 评论 -
驱动编译错误
In file included from ./include/linux/module.h:18:0, from drivers/char/globalmem/globalmem.c:1: ./include/linux/moduleparam.h:22:1: error: expected ‘,’ or ‘;’ before ‘static’ static ...原创 2019-11-05 16:17:03 · 870 阅读 · 3 评论 -
使用std::thread时的illegal instruction错误
使用std::thread时的illegal instruction错误 在使用多线程时,出现了illegal instruction错误,经仔细排查,发现错误的原因非常可笑,是因为线程函数没写返回值。错误示例:void * function(void *arg) { printf("function\n"); sleep(5); //没有返回值 } int mai...原创 2018-03-26 13:23:45 · 499 阅读 · 0 评论 -
将Linux-0.00用nasm格式重写,并且把8259的定时器0中断替换为RTC时钟中断
参考资料 https://blog.youkuaiyun.com/weixin_33737774/article/details/86952055 https://my.oschina.net/findurl/blog/188123 代码见我的git仓库: https://github.com/xpc19951023/linux_0.12_update.git ...原创 2019-06-02 13:24:25 · 294 阅读 · 0 评论 -
进入保护模式后重启
这两个在弄x86的保护模式,在bochs上程序正常,但是在真实硬件上却总是重启,最后终于找到,因为用了cli关闭所有中断,这个指令应该不会影响int n的使用,事实上,如果使用过cli,再使用int n,在硬件上就会重启,这是个bug? ...原创 2019-06-04 14:43:25 · 509 阅读 · 0 评论
分享