Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
0db6e7a4
O
OpenCorePKG_MOD
项目概览
btwise
/
OpenCorePKG_MOD
通知
26
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OpenCorePKG_MOD
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
0db6e7a4
编写于
4月 18, 2024
作者:
M
Mike Beaton
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OpenDuet: Import EfiLdr debug print files from DuetPkg
上级
41d2e760
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
128 addition
and
3 deletion
+128
-3
Legacy/BootPlatform/EfiLdr/Debug.c
Legacy/BootPlatform/EfiLdr/Debug.c
+79
-0
Legacy/BootPlatform/EfiLdr/Debug.h
Legacy/BootPlatform/EfiLdr/Debug.h
+44
-0
Legacy/BootPlatform/EfiLdr/EfiLdr.h
Legacy/BootPlatform/EfiLdr/EfiLdr.h
+0
-2
Legacy/BootPlatform/EfiLdr/EfiLdr.inf
Legacy/BootPlatform/EfiLdr/EfiLdr.inf
+2
-0
Legacy/BootPlatform/EfiLdr/EfiLoader.c
Legacy/BootPlatform/EfiLdr/EfiLoader.c
+2
-1
Legacy/BootPlatform/EfiLdr/PeLoader.c
Legacy/BootPlatform/EfiLdr/PeLoader.c
+1
-0
未找到文件。
Legacy/BootPlatform/EfiLdr/Debug.c
0 → 100644
浏览文件 @
0db6e7a4
/*++
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
Debug.c
Abstract:
Revision History:
--*/
#include "EfiLdr.h"
#include "Debug.h"
UINT8
*
mCursor
;
UINT8
mHeaderIndex
=
10
;
VOID
PrintHeader
(
CHAR8
Char
)
{
*
(
UINT8
*
)(
UINTN
)(
0x000b8000
+
mHeaderIndex
)
=
Char
;
mHeaderIndex
+=
2
;
}
VOID
ClearScreen
(
VOID
)
{
UINT32
Index
;
mCursor
=
(
UINT8
*
)(
UINTN
)(
0x000b8000
+
160
);
for
(
Index
=
0
;
Index
<
80
*
49
;
Index
++
)
{
*
mCursor
=
' '
;
mCursor
+=
2
;
}
mCursor
=
(
UINT8
*
)(
UINTN
)(
0x000b8000
+
160
);
}
VOID
EFIAPI
PrintString
(
IN
CONST
CHAR8
*
FormatString
,
...
)
{
UINTN
Index
;
CHAR8
PrintBuffer
[
256
];
VA_LIST
Marker
;
VA_START
(
Marker
,
FormatString
);
AsciiVSPrint
(
PrintBuffer
,
sizeof
(
PrintBuffer
),
FormatString
,
Marker
);
VA_END
(
Marker
);
for
(
Index
=
0
;
PrintBuffer
[
Index
]
!=
0
;
Index
++
)
{
if
(
PrintBuffer
[
Index
]
==
'\n'
)
{
mCursor
=
(
UINT8
*
)(
UINTN
)(
0xb8000
+
(((((
UINTN
)
mCursor
-
0xb8000
)
+
160
)
/
160
)
*
160
));
}
else
{
*
mCursor
=
(
UINT8
)
PrintBuffer
[
Index
];
mCursor
+=
2
;
}
}
//
// All information also output to serial port.
//
SerialPortWrite
((
UINT8
*
)
PrintBuffer
,
Index
);
}
Legacy/BootPlatform/EfiLdr/Debug.h
0 → 100644
浏览文件 @
0db6e7a4
/*++
Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
Debug.h
Abstract:
Revision History:
--*/
#ifndef _EFILDR_DEBUG_H_
#define _EFILDR_DEBUG_H_
#include <Library/PrintLib.h>
#include <Library/SerialPortLib.h>
VOID
PrintHeader
(
CHAR8
Char
);
VOID
EFIAPI
PrintString
(
IN
CONST
CHAR8
*
FormatString
,
...
);
VOID
ClearScreen
(
VOID
);
#endif
Legacy/BootPlatform/EfiLdr/EfiLdr.h
浏览文件 @
0db6e7a4
...
...
@@ -28,8 +28,6 @@ Revision History:
#include <IndustryStandard/PeImage2.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/PrintLib.h>
#include <Library/SerialPortLib.h>
#define INT15_E820_AddressRangeMemory 1
#define INT15_E820_AddressRangeReserved 2
...
...
Legacy/BootPlatform/EfiLdr/EfiLdr.inf
浏览文件 @
0db6e7a4
...
...
@@ -38,9 +38,11 @@
UefiImageOnlyFvLib
[Sources]
Debug.h
Support.h
EfiLdr.h
EfiLoader.c
Debug.c
PeLoader.c
Support.c
LzmaDecompress.h
...
...
Legacy/BootPlatform/EfiLdr/EfiLoader.c
浏览文件 @
0db6e7a4
...
...
@@ -20,6 +20,7 @@ Revision History:
#include "EfiLdr.h"
#include "Support.h"
#include "Debug.h"
#include "LzmaDecompress.h"
EFILDR_LOADED_IMAGE
DxeCoreImage
;
...
...
@@ -52,7 +53,7 @@ EfiLoader (
#if 0
SerialPortInitialize ();
SerialPortWrite ((UINT8 *)"EfiLdr\r\n", L_STR_LEN ("EfiLdr\r\n")
);
PrintString ("EfiLdr\n"
);
#endif
//
...
...
Legacy/BootPlatform/EfiLdr/PeLoader.c
浏览文件 @
0db6e7a4
...
...
@@ -20,6 +20,7 @@ Revision History:
--*/
#include "EfiLdr.h"
#include "Debug.h"
#include "Support.h"
#include <Library/UefiImageLib.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录