-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding kernel headers and scripts for docker
- Loading branch information
Showing
8,087 changed files
with
1,086,575 additions
and
268 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
boot/compressed/vmlinux | ||
tools/test_get_len | ||
tools/insn_sanity | ||
tools/insn_decoder_test | ||
purgatory/kexec-purgatory.c | ||
purgatory/purgatory.ro | ||
|
12 changes: 12 additions & 0 deletions
12
headers/5.4.196-108.356.amzn2.x86_64/arch/x86/boot/.gitignore
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,12 @@ | ||
bootsect | ||
bzImage | ||
cpustr.h | ||
mkcpustr | ||
voffset.h | ||
zoffset.h | ||
setup | ||
setup.bin | ||
setup.elf | ||
fdimage | ||
mtools.conf | ||
image.iso |
44 changes: 44 additions & 0 deletions
44
headers/5.4.196-108.356.amzn2.x86_64/arch/x86/boot/bitops.h
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,44 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
/* -*- linux-c -*- ------------------------------------------------------- * | ||
* | ||
* Copyright (C) 1991, 1992 Linus Torvalds | ||
* Copyright 2007 rPath, Inc. - All Rights Reserved | ||
* | ||
* ----------------------------------------------------------------------- */ | ||
|
||
/* | ||
* Very simple bitops for the boot code. | ||
*/ | ||
|
||
#ifndef BOOT_BITOPS_H | ||
#define BOOT_BITOPS_H | ||
#define _LINUX_BITOPS_H /* Inhibit inclusion of <linux/bitops.h> */ | ||
|
||
#include <linux/types.h> | ||
#include <asm/asm.h> | ||
|
||
static inline bool constant_test_bit(int nr, const void *addr) | ||
{ | ||
const u32 *p = (const u32 *)addr; | ||
return ((1UL << (nr & 31)) & (p[nr >> 5])) != 0; | ||
} | ||
static inline bool variable_test_bit(int nr, const void *addr) | ||
{ | ||
bool v; | ||
const u32 *p = (const u32 *)addr; | ||
|
||
asm("btl %2,%1" CC_SET(c) : CC_OUT(c) (v) : "m" (*p), "Ir" (nr)); | ||
return v; | ||
} | ||
|
||
#define test_bit(nr,addr) \ | ||
(__builtin_constant_p(nr) ? \ | ||
constant_test_bit((nr),(addr)) : \ | ||
variable_test_bit((nr),(addr))) | ||
|
||
static inline void set_bit(int nr, void *addr) | ||
{ | ||
asm("btsl %1,%0" : "+m" (*(u32 *)addr) : "Ir" (nr)); | ||
} | ||
|
||
#endif /* BOOT_BITOPS_H */ |
Oops, something went wrong.