x86: Fix pointer casts for PT and PD caps
The commit is based on PR #185 by laokz. Co-authored-by: laokz <laokz@foxmail.com> Signed-off-by: Yanyan Shen <yshen@cog.systems>
This commit is contained in:
parent
9a45a83682
commit
30e2568fcf
1 changed files with 2 additions and 2 deletions
|
|
@ -255,10 +255,10 @@ static inline void *CONST cap_get_archCapPtr(cap_t cap)
|
|||
return (void *)(cap_frame_cap_get_capFBasePtr(cap));
|
||||
|
||||
case cap_page_table_cap:
|
||||
return PD_PTR(cap_page_table_cap_get_capPTBasePtr(cap));
|
||||
return PT_PTR(cap_page_table_cap_get_capPTBasePtr(cap));
|
||||
|
||||
case cap_page_directory_cap:
|
||||
return PT_PTR(cap_page_directory_cap_get_capPDBasePtr(cap));
|
||||
return PD_PTR(cap_page_directory_cap_get_capPDBasePtr(cap));
|
||||
|
||||
case cap_io_port_cap:
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue