-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Modify the ahci module and delete the useless c code 修改ahci使其不再依赖旧的pci函数 删除旧的pci、msi函数代码
- Loading branch information
Showing
18 changed files
with
73 additions
and
1,748 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
#pragma once | ||
#include <common/glib.h> | ||
#include<process/ptrace.h> | ||
#include <process/ptrace.h> | ||
|
||
// 使用弱引用属性导出kallsyms中的符号表。 | ||
// 采用weak属性是由于第一次编译时,kallsyms还未链接进来,若不使用weak属性则会报错 | ||
extern const uint64_t kallsyms_address[] __attribute__((weak)); | ||
extern const uint64_t kallsyms_num __attribute__((weak)); | ||
extern const uint64_t kallsyms_names_index[] __attribute__((weak)); | ||
extern const char* kallsyms_names __attribute__((weak)); | ||
extern const char *kallsyms_names __attribute__((weak)); | ||
|
||
/** | ||
* @brief 追溯内核栈调用情况 | ||
* | ||
* | ||
* @param regs 内核栈结构体 | ||
*/ | ||
void traceback(struct pt_regs * regs); | ||
void traceback(struct pt_regs *regs); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
|
||
all: ata.o ahci.o | ||
all: ata.o | ||
|
||
CFLAGS += -I . | ||
|
||
ata.o: ata.c | ||
$(CC) $(CFLAGS) -c ata.c -o ata.o | ||
|
||
ahci.o: ahci/ahci.c | ||
$(CC) $(CFLAGS) -c ahci/ahci.c -o ahci/ahci.o | ||
$(CC) $(CFLAGS) -c ata.c -o ata.o |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.