Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhendewokusi committed Feb 18, 2024
1 parent 48f3cc5 commit 228e611
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
25 changes: 25 additions & 0 deletions source/_posts/bochs安装教程.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: bochs安装教程
date: 2024-01-17 19:49:39
tags: [bochs] [真相还原]
---



```shell
CONFIGURE_ARGS="--enable-gdb-stub"
CONFIGURE_ARGS="--enable-debugger --enable-readline"
```

先改`.conf.linux`,里面的
```config
CONFIGURE_ARGS="--enable-gdb-stub"
```

再使用:
```shell
sh .conf.linux
```
然后在Makefile里面操作:

我是在vscode中,Ctrl+F,将所有的`bochs`更改成`bochs_gdb`,接着将`bochs_gdb.h`更改为`bochs.h`,`wxbochs_gdb.rc`更改为`wxbochs.rc`,后面这个应该没影响,是和win有关系的,但是保险起见还是改了吧,然后进行`make -j16 && sudo make install`
7 changes: 6 additions & 1 deletion source/_posts/中断.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,13 @@ EOI:End Of Interrupt,为中断结束命令位。令 EOI 为 1,则会令 ISR
将当前处理的中断清掉,表示处理结束。向 8259A 主动发送 EOI 是手工结束中断的做法,所以,使用此
命令有个前提,就是 ICW4 中的 AEOI 位为 0,非自动结束中断时才用。

只有EOI位为1时候,表示发送中断结束。


OCW3用于设定特殊的屏蔽方式以及查询方式。

#### 编写中断处理程序

中断向量 0~19 为处理器内部固定的异常类型,20~31 是 Intel 保留的,所以咱们可用的中断向量号最低是 32,将来咱们在设置 8259A 的时候,会把 IR0 的中断向量号设置为 32。
中断向量 0~19 为处理器内部固定的异常类型,20~31 是 Intel 保留的,所以咱们可用的中断向量号最低是 32,将来咱们在设置 8259A 的时候,会把 IR0 的中断向量号设置为 32。


Binary file added source/image/bochs1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/image/bochs2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/image/bochs3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 228e611

Please sign in to comment.