Skip to content

Commit

Permalink
Patch ahci (#348)
Browse files Browse the repository at this point in the history
* Modify the ahci module and delete the useless c code

修改ahci使其不再依赖旧的pci函数
删除旧的pci、msi函数代码
  • Loading branch information
YJwu2023 authored Aug 28, 2023
1 parent f5df0e7 commit 8d94ea6
Show file tree
Hide file tree
Showing 18 changed files with 73 additions and 1,748 deletions.
28 changes: 0 additions & 28 deletions kernel/src/arch/x86_64/ia64_msi.c

This file was deleted.

11 changes: 0 additions & 11 deletions kernel/src/arch/x86_64/ia64_msi.h

This file was deleted.

8 changes: 4 additions & 4 deletions kernel/src/debug/traceback/traceback.h
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);
7 changes: 2 additions & 5 deletions kernel/src/driver/disk/Makefile
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
32 changes: 0 additions & 32 deletions kernel/src/driver/disk/ahci/ahci.c

This file was deleted.

Loading

0 comments on commit 8d94ea6

Please sign in to comment.