Skip to content

Commit

Permalink
feat: Adapt kernel module for LOONGARCH architecture
Browse files Browse the repository at this point in the history
Adapt kernel module for LOONGARCH architecture.

Log: Adapt kernel module for LOONGARCH architecture.
  • Loading branch information
wangrong1069 authored and deepin-bot[bot] committed Dec 25, 2024
1 parent c64e814 commit 2479c05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
deepin-anything (6.2.1) unstable; urgency=medium

* adapt kernel module for LOONGARCH architecture.

-- wangrong <[email protected]> Wed, 25 Dec 2024 09:19:04 +0800

deepin-anything (6.2.0) unstable; urgency=medium

* New version 6.2.0
Expand Down
5 changes: 4 additions & 1 deletion src/kernelmod/arg_extractor.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ unsigned long get_arg(struct pt_regs* regs, int n)
case 5: return regs->r8;
case 6: return regs->r9;

#elif defined(CONFIG_CPU_LOONGSON3) || defined(CONFIG_CPU_LOONGSON64)
#elif defined(CONFIG_CPU_LOONGSON3) || defined(CONFIG_CPU_LOONGSON64) || defined(CONFIG_LOONGARCH)

case 1: // a0
case 2: // a1
Expand All @@ -50,6 +50,9 @@ unsigned long get_arg(struct pt_regs* regs, int n)
case 3: return regs->regs[2];
case 4: return regs->regs[3];

#else
#error "The current architecture is not supported."

#endif // CONFIG_X86_64
default:
return 0;
Expand Down

0 comments on commit 2479c05

Please sign in to comment.