Skip to content

Commit

Permalink
fix(lab3): sanitize useless macros
Browse files Browse the repository at this point in the history
Signed-off-by: Yiyang Wu <[email protected]>
  • Loading branch information
ToolmanP committed Dec 5, 2024
1 parent 073dba2 commit b13b4ab
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Lab3/kernel/object/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,6 @@ void thread_deinit(void *thread_ptr)
/* The thread struct itself will be freed in __free_object */
}

#define PFLAGS2VMRFLAGS(PF) \
(((PF) & PF_X ? VMR_EXEC : 0) | ((PF) & PF_W ? VMR_WRITE : 0) \
| ((PF) & PF_R ? VMR_READ : 0))

#define OFFSET_MASK (0xFFF)

/* Required by LibC */
void prepare_env(char *env, vaddr_t top_vaddr, char *name,
struct process_metadata *meta);
Expand Down

0 comments on commit b13b4ab

Please sign in to comment.