Skip to content

Commit

Permalink
hal: remove unused code
Browse files Browse the repository at this point in the history
PD-314
  • Loading branch information
HBuczynski authored and HBuczynski committed Nov 18, 2022
1 parent ae04f68 commit 2d5ec61
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 27 deletions.
6 changes: 0 additions & 6 deletions hal/armv7a/arch/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,6 @@ static inline void *hal_cpuGetUserSP(cpu_context_t *ctx)
}


static inline int hal_cpuSupervisorMode(cpu_context_t *ctx)
{
return ctx->psr & 0xf;
}


static inline unsigned int hal_cpuGetID(void)
{
return 0;
Expand Down
6 changes: 0 additions & 6 deletions hal/armv7m/arch/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,6 @@ static inline void *hal_cpuGetUserSP(cpu_context_t *ctx)
}


static inline int hal_cpuSupervisorMode(cpu_context_t *ctx)
{
return 0;
}


static inline int hal_cpuPushSignal(void *kstack, void (*handler)(void), int sig)
{
return 0;
Expand Down
3 changes: 0 additions & 3 deletions hal/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ extern void *hal_cpuGetSP(cpu_context_t *ctx);
extern void *hal_cpuGetUserSP(cpu_context_t *ctx);


extern int hal_cpuSupervisorMode(cpu_context_t *ctx);


extern int hal_cpuPushSignal(void *kstack, void (*handler)(void), int n);


Expand Down
6 changes: 0 additions & 6 deletions hal/ia32/arch/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,6 @@ static inline void *hal_cpuGetUserSP(cpu_context_t *ctx)
}


static inline int hal_cpuSupervisorMode(cpu_context_t *ctx)
{
return ((ctx->cs & 3) == 0);
}


#endif

#endif
6 changes: 0 additions & 6 deletions hal/riscv64/arch/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,6 @@ static inline void *hal_cpuGetUserSP(cpu_context_t *ctx)
}


static inline int hal_cpuSupervisorMode(cpu_context_t *ctx)
{
return (ctx->sscratch == 0);
}


static inline int hal_cpuPushSignal(void *kstack, void (*handler)(void), int n)
{
#if 0
Expand Down

0 comments on commit 2d5ec61

Please sign in to comment.