Linux ISR入口点在哪里 [英] Where is the Linux ISR Entry Point

查看:134
本文介绍了Linux ISR入口点在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解Linux内核中的系统调用接口和实现.我了解entry.S以及libc标头和实现之间的关系.我想知道的是内核中第一次收到int 80h的位置,即确定实际上是80h中断的位置.有人可以为此指向我指向LXR链接吗?

I'm trying to understand the system call interface and implementation in the Linux kernel. I know about entry.S and the relationship between libc headers and implementation. What I want to know is where in the kernel is the int 80h received for the first time i.e. the place that decides that it's actually the 80h interrupt. Can anyone point me to the LXR link for this please?

推荐答案

CONFIG_X86_32

  1. arch/x86/kernel/entry_32. S:system_call (INT $ 0x80)
  2. arch/x86/kernel/entry_32. S:ia32_sysenter_target (SYSENTER)
  1. arch/x86/kernel/entry_32.S:system_call (INT $0x80)
  2. arch/x86/kernel/entry_32.S:ia32_sysenter_target (SYSENTER)

CONFIG_X86_64

  1. arch/x86/kernel/entry_64. S:system_call (SYSCALL,64位)
  1. arch/x86/kernel/entry_64.S:system_call (SYSCALL, 64bit)

CONFIG_X86_64 and CONFIG_IA32_EMULATION

  1. arch/x86/ia32/ia32entry. S:ia32_sysenter_target (SYSENTER)
  2. arch/x86/ia32/ia32entry. S:ia32_cstar_target (SYSCALL,32位)
  3. arch/x86/ia32/ia32entry. S:ia32_syscall (INT $ 0x80)
  1. arch/x86/ia32/ia32entry.S:ia32_sysenter_target (SYSENTER)
  2. arch/x86/ia32/ia32entry.S:ia32_cstar_target (SYSCALL, 32bit)
  3. arch/x86/ia32/ia32entry.S:ia32_syscall (INT $0x80)

这篇关于Linux ISR入口点在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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