Fixing syscalls to new seterrno and setretval.
[akaros.git] / kern / arch / sparc / trap.h
index f6cf003..03cf352 100644 (file)
@@ -21,12 +21,6 @@ void save_fp_state(ancillary_state_t* silly);
 void restore_fp_state(ancillary_state_t* silly);
 void emulate_fpu(trapframe_t* state, ancillary_state_t* astate);
 
-static inline void set_errno(trapframe_t* tf, uint32_t errno)
-{
-       if (tf)
-               tf->gpr[9] = errno;
-}
-
 static inline bool in_kernel(struct trapframe *tf)
 {
        return tf->psr & PSR_PS;