Skip to content

Commit 37e8c47

Browse files
author
untermensch
committed
initial add
0 parents  commit 37e8c47

File tree

406 files changed

+128008
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

406 files changed

+128008
-0
lines changed

.gitignore

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Thumbs.db
2+
*.obj
3+
*.pdb
4+
*.user
5+
*.aps
6+
*.pch
7+
*.vspscc
8+
*_i.c
9+
*_p.c
10+
*.ncb
11+
*.suo
12+
*.sln.docstates
13+
*.tlb
14+
*.tlh
15+
*.bak
16+
*.cache
17+
*.ilk
18+
*.log
19+
[Dd]ebug*/
20+
*.lib
21+
*.sbr
22+
obj/
23+
[Rr]elease*/
24+
_ReSharper*/
25+
[Tt]est[Rr]esult*
26+
*.efi
27+
*.sdf
28+
*.opensdf

ChainLoader/ChainLoader.vcxproj

+194
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|x64">
5+
<Configuration>Debug</Configuration>
6+
<Platform>x64</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|x64">
9+
<Configuration>Release</Configuration>
10+
<Platform>x64</Platform>
11+
</ProjectConfiguration>
12+
</ItemGroup>
13+
<PropertyGroup Label="Globals">
14+
<ProjectGuid>{44171FEA-9799-4BCA-BD32-C5DCF7A23CCB}</ProjectGuid>
15+
<Keyword>Win32Proj</Keyword>
16+
<RootNamespace>ChainLoader</RootNamespace>
17+
</PropertyGroup>
18+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
19+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
20+
<ConfigurationType>DynamicLibrary</ConfigurationType>
21+
<UseDebugLibraries>true</UseDebugLibraries>
22+
<CharacterSet>Unicode</CharacterSet>
23+
</PropertyGroup>
24+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
25+
<ConfigurationType>DynamicLibrary</ConfigurationType>
26+
<UseDebugLibraries>false</UseDebugLibraries>
27+
<WholeProgramOptimization>true</WholeProgramOptimization>
28+
<CharacterSet>Unicode</CharacterSet>
29+
</PropertyGroup>
30+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
31+
<ImportGroup Label="ExtensionSettings">
32+
</ImportGroup>
33+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
34+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
35+
</ImportGroup>
36+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
37+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
38+
</ImportGroup>
39+
<PropertyGroup Label="UserMacros" />
40+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
41+
<LinkIncremental>true</LinkIncremental>
42+
</PropertyGroup>
43+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
44+
<LinkIncremental>false</LinkIncremental>
45+
<IncludePath>$(SolutiontDir)Include\Protocol;$(SolutionDir)Include\X64;$(SolutionDir)Include</IncludePath>
46+
<ReferencePath />
47+
<LibraryPath />
48+
<SourcePath />
49+
<ExcludePath />
50+
<GenerateManifest />
51+
<TargetExt>.EFI</TargetExt>
52+
<TargetName>BOOTX64</TargetName>
53+
<OutDir>$(ProjectDir)</OutDir>
54+
<IntDir>$(ProjectDir)$(Configuration)\</IntDir>
55+
<ExecutablePath>"$(SolutionDir)Bin";$(ExecutablePath)</ExecutablePath>
56+
</PropertyGroup>
57+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
58+
<ClCompile>
59+
<PrecompiledHeader>
60+
</PrecompiledHeader>
61+
<WarningLevel>Level3</WarningLevel>
62+
<Optimization>Disabled</Optimization>
63+
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;CHAINLOADER_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
64+
</ClCompile>
65+
<Link>
66+
<SubSystem>Windows</SubSystem>
67+
<GenerateDebugInformation>true</GenerateDebugInformation>
68+
</Link>
69+
</ItemDefinitionGroup>
70+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
71+
<ClCompile>
72+
<WarningLevel>Level3</WarningLevel>
73+
<PrecompiledHeader>
74+
</PrecompiledHeader>
75+
<Optimization>MaxSpeed</Optimization>
76+
<FunctionLevelLinking>
77+
</FunctionLevelLinking>
78+
<IntrinsicFunctions>true</IntrinsicFunctions>
79+
<PreprocessorDefinitions>
80+
</PreprocessorDefinitions>
81+
<OmitDefaultLibName>true</OmitDefaultLibName>
82+
<CompileAs>CompileAsC</CompileAs>
83+
<ShowIncludes>
84+
</ShowIncludes>
85+
<UseFullPaths>
86+
</UseFullPaths>
87+
<ErrorReporting>
88+
</ErrorReporting>
89+
<BrowseInformation>
90+
</BrowseInformation>
91+
<BrowseInformationFile>
92+
</BrowseInformationFile>
93+
<PrecompiledHeaderFile>
94+
</PrecompiledHeaderFile>
95+
<PrecompiledHeaderOutputFile>
96+
</PrecompiledHeaderOutputFile>
97+
<TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType>
98+
<ForceConformanceInForLoopScope>
99+
</ForceConformanceInForLoopScope>
100+
<DisableLanguageExtensions>
101+
</DisableLanguageExtensions>
102+
<MinimalRebuild>
103+
</MinimalRebuild>
104+
<ExceptionHandling>
105+
</ExceptionHandling>
106+
<SmallerTypeCheck>
107+
</SmallerTypeCheck>
108+
<BasicRuntimeChecks>
109+
</BasicRuntimeChecks>
110+
<RuntimeLibrary>
111+
</RuntimeLibrary>
112+
<StructMemberAlignment>
113+
</StructMemberAlignment>
114+
<BufferSecurityCheck>false</BufferSecurityCheck>
115+
<EnableEnhancedInstructionSet>
116+
</EnableEnhancedInstructionSet>
117+
<FloatingPointModel>
118+
</FloatingPointModel>
119+
</ClCompile>
120+
<Link>
121+
<SubSystem>EFI Application</SubSystem>
122+
<GenerateDebugInformation>
123+
</GenerateDebugInformation>
124+
<EnableCOMDATFolding>
125+
</EnableCOMDATFolding>
126+
<OptimizeReferences>
127+
</OptimizeReferences>
128+
<AdditionalDependencies>
129+
</AdditionalDependencies>
130+
<ManifestFile>
131+
</ManifestFile>
132+
<AllowIsolation>
133+
</AllowIsolation>
134+
<EnableUAC>
135+
</EnableUAC>
136+
<UACExecutionLevel>
137+
</UACExecutionLevel>
138+
<UACUIAccess>
139+
</UACUIAccess>
140+
<ProgramDatabaseFile>
141+
</ProgramDatabaseFile>
142+
<GenerateMapFile>
143+
</GenerateMapFile>
144+
<MapExports>
145+
</MapExports>
146+
<SwapRunFromCD>
147+
</SwapRunFromCD>
148+
<SwapRunFromNET>
149+
</SwapRunFromNET>
150+
<Driver>
151+
</Driver>
152+
<ProfileGuidedDatabase>
153+
</ProfileGuidedDatabase>
154+
<IgnoreEmbeddedIDL>
155+
</IgnoreEmbeddedIDL>
156+
<TypeLibraryResourceID>
157+
</TypeLibraryResourceID>
158+
<EntryPointSymbol>EntryPoint</EntryPointSymbol>
159+
<LinkErrorReporting>
160+
</LinkErrorReporting>
161+
<NoEntryPoint>
162+
</NoEntryPoint>
163+
<SetChecksum>
164+
</SetChecksum>
165+
<RandomizedBaseAddress>
166+
</RandomizedBaseAddress>
167+
<DataExecutionPrevention>
168+
</DataExecutionPrevention>
169+
<TurnOffAssemblyGeneration>
170+
</TurnOffAssemblyGeneration>
171+
<Profile>
172+
</Profile>
173+
<CLRImageType>
174+
</CLRImageType>
175+
<SectionAlignment>32</SectionAlignment>
176+
</Link>
177+
<PostBuildEvent>
178+
<Command>GenFw.exe -e APPLICATION "$(ProjectDir)BOOTX64.EFI" -o "$(ProjectDir)BOOTX64.EFI"</Command>
179+
</PostBuildEvent>
180+
</ItemDefinitionGroup>
181+
<ItemGroup>
182+
<ClCompile Include="DevPath.cpp" />
183+
<ClCompile Include="Main.cpp" />
184+
<ClCompile Include="Lib.cpp" />
185+
</ItemGroup>
186+
<ItemGroup>
187+
<ClInclude Include="Common.h" />
188+
<ClInclude Include="Lib.h" />
189+
<ClInclude Include="Main.h" />
190+
</ItemGroup>
191+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
192+
<ImportGroup Label="ExtensionTargets">
193+
</ImportGroup>
194+
</Project>
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Source Files">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Header Files">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Resource Files">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClCompile Include="Main.cpp">
19+
<Filter>Source Files</Filter>
20+
</ClCompile>
21+
<ClCompile Include="DevPath.cpp">
22+
<Filter>Source Files</Filter>
23+
</ClCompile>
24+
<ClCompile Include="Lib.cpp">
25+
<Filter>Source Files</Filter>
26+
</ClCompile>
27+
</ItemGroup>
28+
<ItemGroup>
29+
<ClInclude Include="Main.h">
30+
<Filter>Header Files</Filter>
31+
</ClInclude>
32+
<ClInclude Include="Lib.h">
33+
<Filter>Header Files</Filter>
34+
</ClInclude>
35+
<ClInclude Include="Common.h">
36+
<Filter>Header Files</Filter>
37+
</ClInclude>
38+
</ItemGroup>
39+
</Project>

ChainLoader/Common.h

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#include <Uefi.h>
2+
EFI_SYSTEM_TABLE* ST;
3+
EFI_BOOT_SERVICES* BS;
4+
EFI_RUNTIME_SERVICES* RS;

0 commit comments

Comments
 (0)