社区
Linux_Kernel
帖子详情
关于cpu_gdt_table[GDT_ENTRIES]的问题
orclc
2005-08-03 03:23:15
我在程序了作了如下声明:
extern struct desc_struct cpu_gdt_table[GDT_ENTRIES];
编译时出错,错误信息为:
array type has incomplete element type
这是为什么啊?
...全文
100
回复
打赏
收藏
关于cpu_gdt_table[GDT_ENTRIES]的问题
我在程序了作了如下声明: extern struct desc_struct cpu_gdt_table[GDT_ENTRIES]; 编译时出错,错误信息为: array type has incomplete element type 这是为什么啊?
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Linux 运行时内核分析(二版)
我们基于RH9 内核从两部分来分析Linux系统动态运行过程 一:系统初始化开始,Linux进入保护模式,初始内存系统、中断系统、文件系 统等,直到创建第一个用户进程。 二:用户进程通过系统调用主动进入内核,
CPU
接受中断请求被动执行各种中 断服务。
freebsdprotmode底层文档.7z
A guide to how the FreeBSD kernel manages the IA32 processors in Protected Mode (c) 2004, Arne Vidstrom, http://vidstrom.net Version 1.0 : 2004-06-17
Table
of cont
en
ts 1. P REREQUISITE KNOWLEDGE ....................................................................................2 2. I NFORMATION SOURCES ..........................................................................................2 3. T HE I NTERRUPT D ESCRIPTOR T ABLE (IDT)............................................................2 3.1 The IDT definition............................................................................................2 3.2 Setting
en
trie
s in the IDT.................................................................................3 3.3 A look inside the IDT with KernView ..............................................................4 3.4 Making the IDT active .....................................................................................5 4. S YSCALL HANDLING ...............................................................................................6 4.1 The INT 0x80 interrupt handler.......................................................................6 4.2 Syscall dispatching...........................................................................................8 4.3 The copyin() function.....................................................................................10 5. T HE G LOBAL D ESCRIPTOR T ABLE (
GDT
).............................................................12 5.1 The
GDT
definition........................................................................................12 5.2 Setting up the descriptors in the
GDT
............................................................13 5.3 Making the
GDT
active..................................................................................16 5.4 A look inside the
GDT
with KernView...........................................................17 5.5 Segm
en
t selector values in an ordinary user mode program ........................21 6. T ASK SWITCHING ..................................................................................................22 6.1 The
cpu
_switch() function..............................................................................22 7. V IRTUAL PAGING ..................................................................................................29 7.1 The page fault handler...................................................................................29 7.2 Virtual paging and task switching.................................................................32 8 T HE L OCAL D ESCRIPTOR T ABLE (LDT).................................................................32 8.1 A quick glance at the LDT .............................................................................32 9. M ISCELLANEOUS ..................................................................................................34 9.1 The uiomove() function..................................................................................34 1. Prerequisite knowledge This guide assumes that the reader is familiar with how the IA32 processors work in Protected Mode, with the C programming language, and with AT&T syntax IA32 assembler programming. It also assumes some knowledge about user mode system programming for FreeBSD and some g
en
eral knowledge about the internal workings of the kernel. 2. Information sources The primary source of information used wh
en
writing this guide has be
en
the FreeBSD kernel source code itself. The FreeBSD Kernel Cross-Refer
en
ce at http://fxr.watson.org/ has be
en
very valuable for doing easy searches in the kernel source code, but the source code snippets in the text comes from the /usr/src directory tree on a FreeBSD 4.9 installation. Also, the book The Design and Implem
en
tation of the 4.4 BSD Operating System, by McKusick / Bostic / Karels / Quarterman, was very useful as a g
en
eral kernel overview. The refer
en
ces used for IA32 information are the IA-32 Intel Architecture Software Developer’s Manual from Intel, and the book Protected Mode Software Architecture
Linux开机启动过程(14):start_kernel()->sched_init()调度器初始化
Kernel initialization. Part 8. 在原文的基础上添加了5.10.13部分的源码解读。 Scheduler initialization This is the eighth part of the Linux kernel initialization process chapter and we stopped on the setup_nr_
cpu
_ids function in the previous part. The main point of this part i
2024年最全Linux per-
cpu
_linux per
cpu
本书是获得了很多读者好评的Linux经典畅销书**《Linux从入门到精通》的第2版**。本书第﹖版以最新的Ubuntu 12.04为版本,循序渐进地向读者介绍了Linux 的基础应用、系统管理、网络应用、娱乐和办公、程序开发、服务器配置、系统安全等。//计算每个unit的大小,即每个group中的每个
cpu
占用的per
cpu
内存大小为一个unit。//计算p
cpu
_nr_slots,即p
cpu
_slot数组的组项数量。
x86架构下Linux初始化流程中
GDT
、IDT建立和切换
x86架构下Linux初始化流程中
GDT
建立和切换 1、代码流:_start()–>start_of_setup()–>main()–>go_to_protected_mode()–>protected_mode_jump(); 函数所属文件: arch/x86/boot/head.S: _start()/start_of_setup(); //注:16位引导协议入口点...
Linux_Kernel
4,465
社区成员
17,462
社区内容
发帖
与我相关
我的任务
Linux_Kernel
Linux/Unix社区 内核源代码研究区
复制链接
扫一扫
分享
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章