/*
* 该文件实现rs232 串行通信中断处理
*/
/*
* linux/kernel/rs_io.s
*
* (C) 1991 Linus Torvalds
*/
/*
* rs_io.s
*
* This module implements the rs232 io interrupts.
*/
.text
.globl _rs1_interrupt,_rs2_interrupt
/* 读写队列缓冲区的长度 */
size = 1024 /* must be power of two !
and must match the value
in tty_io.c!!! */
/* these are the offsets into the read/write buffer structures */
/* 读写缓冲结构中的偏移量tty_queue */
rs_addr = 0
head = 4
tail = 8
proc_list = 12
buf = 16
/* 当写队列里还剩256 个字符空间(WAKEUP_CHARS)时,我们就可以写 */
startup = 256 /* chars left in write queue when we restart it */
/*
* These are the actual interrupt routines. They look where
* the interrupt is coming from, and take appropriate action.
*/
.align 2
/* 串行端口1 中断处理程序入口点 */
_rs1_interrupt:
// tty 表中对应串口1 的读写缓冲指针的地址入栈
pushl $_table_list+8 // table_list定义在文件tty_io.c文件中
jmp rs_int
/* 串行端口2 中断处理程序入口点 */
.align 2
_rs2_interrupt:
pushl $_table_list+16 // 同上
rs_int:
pushl %edx
pushl %ecx
pushl %ebx
pushl %eax
push %es
push %ds /* as this is an interrupt, we cannot */
/* 让ds、es 指向内核数据段 */
pushl $0x10 /* know that bs is ok. Load it */
pop %ds
pushl $0x10
pop %es
movl 24(%esp),%edx // 将缓冲队列指针地址存入edx 寄存器
movl (%edx),%edx // 取读队列指针(地址)
分享到:
相关推荐
TensorRT-7.0.0.11.Ubuntu-18.04.x86_64-gnu.cuda-10.2.cudnn7.6.zip是tensorrt安装包,由于官方下载太慢在这里备份以下。
TensorRT-7.0.0.11.Ubuntu-18.04.x86_64-gnu.cuda-10.0.cudnn7.6.tar.gz TensorRT-7.0.0.11.Ubuntu-18.04.x86_64-gnu.cuda-10.0.cudnn7.6.tar.gz
linux-0.11-devel-060625.ziplinux-0.11-devel-060625.ziplinux-0.11-devel-060625.ziplinux-0.11-devel-060625.ziplinux-0.11-devel-060625.ziplinux-0.11-devel-060625.ziplinux-0.11-devel-060625.ziplinux-0.11-...
nv-tensorrt-repo-ubuntu1604-cuda10.0-trt7.0.0.11-ga-20191216_1-1_amd64.deb
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
refind-bin-0_refind_asus_refind0.11_refind-bin-0.12.0_EFI_源码.zip
refind-bin-0_refind_asus_refind0.11_refind-bin-0.12.0_EFI_源码.rar
typora-0.11.16-2.x86_64.zip
TensorRT7.0+ubuntu16.04+cuda10.0+cudnn7.6.5 tar.gz安装包
TensorRT-7.0.0.11.Ubuntu-16.04.x86_64-gnu.cuda-10.2.cudnn7.6.tar.gz 下载
linux-0.11-devel-050518.ziplinux-0.11-devel-050518.ziplinux-0.11-devel-050518.ziplinux-0.11-devel-050518.ziplinux-0.11-devel-050518.ziplinux-0.11-devel-050518.ziplinux-0.11-devel-050518.ziplinux-0.11-...
百度网盘下载链接 TensorRT-7.0.0.11.CentOS-7.6.x86_64-gnu.cuda-10.0.cudnn7.6.tar.gz TensorRT-7.0.0.11.CentOS-7.6.x86_64-gnu.cuda-10.2.cudnn7.6.tar.gz
官网下载的 Windows 环境 JDK 11 安装包。
linux 0.11 源码下载 本代码是目前能够找到的最早的Linux的...尽管Linux 0.11内核已经经历了多次更新和升级,但它的源代码仍被视为学习Unix/Linux内核的入门级材料。它是获取Unix/Linux内核设计经验和智慧的重要途径。
linux-0.11-040327-rh9.diff.gz
离线安装包,亲测可用
python-markupsafe-0.11-10.el7.x86_64.rpm PyYAML-3.10-11.el7.x86_64.rpm libyaml-0.1.4-11.el7_0.x86_64.rpm python2-pyasn1-0.1.9-7.el7.noarch.rpm python-cffi-1.6.0-5.el7.x86_64.rpm python-ipaddress-...
离线安装包,亲测可用
自己的linux-0.11编译开发环境,增加了nasm可执行文件,增加了dos软盘,虚拟机用的是bochs-2.1.1。
资源来自pypi官网,解压后可用。 资源全名:pymde-0.1.11-cp37-cp37m-manylinux1_x86_64.whl