Skip to content

Commit 08c796d

Browse files
committed
add license header
1 parent 520ee8f commit 08c796d

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

ReBarDxe/ReBar.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
Copyright (c) 2022 xCuri0 <[email protected]>
3+
SPDX-License-Identifier: MIT
4+
*/
15
#include <Uefi.h>
26
#include <Library/UefiLib.h>
37
#include <Library/UefiBootServicesTableLib.h>
@@ -32,13 +36,15 @@ static EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *pciRootBridgeIo;
3236

3337
static EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL_PREPROCESS_CONTROLLER o_PreprocessController;
3438

39+
// find last set bit and return the index of it
3540
INTN fls(UINT32 x)
3641
{
3742
UINT32 r;
3843

3944
#ifdef _MSC_VER
4045
_BitScanReverse64(&r, x);
4146
#else
47+
// taken from linux x86 bitops.h
4248
asm("bsrl %1,%0"
4349
: "=r" (r)
4450
: "rm" (x), "0" (-1));

ReBarDxe/buildffs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env python3
2+
#
3+
# Copyright (c) 2022 xCuri0 <[email protected]>
4+
# SPDX-License-Identifier: MIT
5+
#
26
import os
37
import sys
48
import glob

ReBarState/ReBarState.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
#include <iostream>
1+
/*
2+
Copyright (c) 2022 xCuri0 <[email protected]>
3+
SPDX-License-Identifier: MIT
4+
*/
5+
#include <iostream>
26
#include <string>
37
#include <cmath>
48

0 commit comments

Comments
 (0)