我正在阅读Linux内核代码。我对Linux中的GDT(全局描述符表)有一些疑问。Where Linux Kernel Setup Large GDT?Then where is the code to setup large GDT with 32 entries
( One specified in Understanding Linux Kernelid=h0lltXyJ8aIC&pg=PT59&lpg=PT59&dq=
内核3.10.0-123.el7.x86_64上"make all“时,一些错误如下:
build-3.10.0-123.el7.x86_64/driver/intr.c: In function 'gdt_seq_showbuild-3.10.0-123.el7.x86_64/driver/intr.c:791:2: error: implicit declaration of function 'store_gdt' [-Werror=implicit-functio
我正在尝试使用汇编语言和C在linux上使用bochs创建一个简单的内核。问题是,每次我尝试从汇编代码中调用c代码时,仿真器都会给我一个错误并重置仿真。注意:我使用了以下GDT和switch_to_pm函数gdt_start:
dd 0x0
gdt_code; the size of the GDT for the GDT decriptor (