-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ring3: Added Ring3BlockIo and Ring3DiskIo drafts.
- Loading branch information
Mikhail Krichanov
committed
Feb 19, 2024
1 parent
da76a3e
commit 429b1d3
Showing
5 changed files
with
318 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
Ring3.h | ||
DxeRing3.c | ||
Ring3UefiBootServices.c | ||
Ring3Protocols.c | ||
|
||
[Sources.X64] | ||
X64/SysCall.nasm | ||
|
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
/** @file | ||
Copyright (c) 2024, Mikhail Krichanov. All rights reserved. | ||
SPDX-License-Identifier: BSD-3-Clause | ||
**/ | ||
|
||
#include "Ring3.h" | ||
|
||
EFI_BLOCK_IO_PROTOCOL mCoreBlockIo; | ||
EFI_DISK_IO_PROTOCOL mCoreDiskIo; | ||
|
||
EFI_STATUS | ||
EFIAPI | ||
Ring3BlockIoReset ( | ||
IN EFI_BLOCK_IO_PROTOCOL *This, | ||
IN BOOLEAN ExtendedVerification | ||
) | ||
{ | ||
return EFI_UNSUPPORTED; | ||
} | ||
|
||
EFI_STATUS | ||
EFIAPI | ||
Ring3BlockIoRead ( | ||
IN EFI_BLOCK_IO_PROTOCOL *This, | ||
IN UINT32 MediaId, | ||
IN EFI_LBA Lba, | ||
IN UINTN BufferSize, | ||
OUT VOID *Buffer | ||
) | ||
{ | ||
return EFI_UNSUPPORTED; | ||
} | ||
|
||
EFI_STATUS | ||
EFIAPI | ||
Ring3BlockIoWrite ( | ||
IN EFI_BLOCK_IO_PROTOCOL *This, | ||
IN UINT32 MediaId, | ||
IN EFI_LBA Lba, | ||
IN UINTN BufferSize, | ||
IN VOID *Buffer | ||
) | ||
{ | ||
return EFI_UNSUPPORTED; | ||
} | ||
|
||
EFI_STATUS | ||
EFIAPI | ||
Ring3BlockIoFlush ( | ||
IN EFI_BLOCK_IO_PROTOCOL *This | ||
) | ||
{ | ||
return EFI_UNSUPPORTED; | ||
} | ||
|
||
EFI_STATUS | ||
EFIAPI | ||
Ring3DiskIoRead ( | ||
IN EFI_DISK_IO_PROTOCOL *This, | ||
IN UINT32 MediaId, | ||
IN UINT64 Offset, | ||
IN UINTN BufferSize, | ||
OUT VOID *Buffer | ||
) | ||
{ | ||
return EFI_UNSUPPORTED; | ||
} | ||
|
||
EFI_STATUS | ||
EFIAPI | ||
Ring3DiskIoWrite ( | ||
IN EFI_DISK_IO_PROTOCOL *This, | ||
IN UINT32 MediaId, | ||
IN UINT64 Offset, | ||
IN UINTN BufferSize, | ||
IN VOID *Buffer | ||
) | ||
{ | ||
return EFI_UNSUPPORTED; | ||
} |
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
Oops, something went wrong.