Linux 系统调用 [英] Linux System Calls

查看:45
本文介绍了Linux 系统调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Linux 系统调用在较旧的 (8086/88) 英特尔 CPU 与更现代的 CPU 上的实现方式随着时间的推移有何变化.

Whats the changed over time on how Linux system calls were implemented on older (8086/88) Intel CPUS vs more modern CPU's.

推荐答案

最大的变化是更新的 x86(和 Intel 64/AMD64)处理器上的 sysenter/sysexit(Intel 的创建)和 syscall/sysret(AMD 的版本)指令.与之前使用的中断方法相比,这些方法大大加快了系统调用的速度.这与减少处理器在调用系统调用时必须经过的步骤有关,您可以在 英特尔手册.

The biggest change is the sysenter/sysexit (Intel's creation) and syscall/sysret (AMD's version) instructions on newer x86 (and Intel 64/AMD64) processors. These speed up system calls drastically compared to the interrupt method used previously. This has to do with reducing the steps the processor must go through when invoking a system call, and you can read up on them in the Intel manuals.

这篇关于Linux 系统调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆