-
Notifications
You must be signed in to change notification settings - Fork 650
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[uaccess] Rename UACCESS_EFI to UACCESS_FLAT
Running with flat physical addressing is a fairly common early boot environment. Rename UACCESS_EFI to UACCESS_FLAT so that this code may be reused in non-UEFI boot environments that also use flat physical addressing. Signed-off-by: Michael Brown <[email protected]>
- Loading branch information
Showing
4 changed files
with
89 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (C) 2008 Michael Brown <[email protected]>. | ||
* Copyright (C) 2024 Michael Brown <[email protected]>. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License as | ||
|
@@ -24,21 +24,21 @@ | |
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); | ||
|
||
#include <ipxe/uaccess.h> | ||
#include <ipxe/efi/efi.h> | ||
|
||
/** @file | ||
* | ||
* iPXE user access API for EFI | ||
* iPXE user access API | ||
* | ||
*/ | ||
|
||
PROVIDE_UACCESS_INLINE ( efi, phys_to_user ); | ||
PROVIDE_UACCESS_INLINE ( efi, user_to_phys ); | ||
PROVIDE_UACCESS_INLINE ( efi, virt_to_user ); | ||
PROVIDE_UACCESS_INLINE ( efi, user_to_virt ); | ||
PROVIDE_UACCESS_INLINE ( efi, userptr_add ); | ||
PROVIDE_UACCESS_INLINE ( efi, memcpy_user ); | ||
PROVIDE_UACCESS_INLINE ( efi, memmove_user ); | ||
PROVIDE_UACCESS_INLINE ( efi, memset_user ); | ||
PROVIDE_UACCESS_INLINE ( efi, strlen_user ); | ||
PROVIDE_UACCESS_INLINE ( efi, memchr_user ); | ||
/* Flat address space user access API */ | ||
PROVIDE_UACCESS_INLINE ( flat, phys_to_user ); | ||
PROVIDE_UACCESS_INLINE ( flat, user_to_phys ); | ||
PROVIDE_UACCESS_INLINE ( flat, virt_to_user ); | ||
PROVIDE_UACCESS_INLINE ( flat, user_to_virt ); | ||
PROVIDE_UACCESS_INLINE ( flat, userptr_add ); | ||
PROVIDE_UACCESS_INLINE ( flat, memcpy_user ); | ||
PROVIDE_UACCESS_INLINE ( flat, memmove_user ); | ||
PROVIDE_UACCESS_INLINE ( flat, memset_user ); | ||
PROVIDE_UACCESS_INLINE ( flat, strlen_user ); | ||
PROVIDE_UACCESS_INLINE ( flat, memchr_user ); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters