Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Linux で CR0 に書き込もうとしていますが、セグメンテーション エラーが発生し続けます。これは、i386 または x86_64 のアセンブリ用です。とにかくこれを回避する方法はありますか?
以下は、segfault を設定するコードの一部です。
mov eax,0xffffffff ;system call number (sys_write) mov cr0,eax
CR0 は保護レジスタです。ユーザー空間の Linux アプリケーションでは変更できません。