Exploit databaseDownload repository ZIP
GH-b6f78b211ff4ea5e7b3ebffe1f088758
abrarkhan/linux-4.19.72_cve-2020-24490
Sources for CVE-2020-24490
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files77
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- cvmx-address.h
- cvmx-agl-defs.h
- cvmx-asm.h
- cvmx-asxx-defs.h
- cvmx-boot-vector.h
- cvmx-bootinfo.h
- cvmx-bootmem.h
- cvmx-ciu-defs.h
- cvmx-ciu2-defs.h
- cvmx-ciu3-defs.h
- cvmx-cmd-queue.h
- cvmx-config.h
- cvmx-coremask.h
- cvmx-dbg-defs.h
- cvmx-dpi-defs.h
- cvmx-fau.h
- cvmx-fpa-defs.h
- cvmx-fpa.h
- cvmx-gmxx-defs.h
- cvmx-gpio-defs.h
- cvmx-helper-board.h
- cvmx-helper-errata.h
- cvmx-helper-jtag.h
- cvmx-helper-loop.h
- cvmx-helper-npi.h
- cvmx-helper-rgmii.h
- cvmx-helper-sgmii.h
- cvmx-helper-spi.h
- cvmx-helper-util.h
- cvmx-helper-xaui.h
- cvmx-helper.h
- cvmx-iob-defs.h
- cvmx-ipd-defs.h
- cvmx-ipd.h
- cvmx-l2c-defs.h
- cvmx-l2c.h
- cvmx-l2d-defs.h
- cvmx-l2t-defs.h
- cvmx-led-defs.h
- cvmx-lmcx-defs.h
- cvmx-mio-defs.h
- cvmx-mixx-defs.h
- cvmx-npei-defs.h
- cvmx-npi-defs.h
- cvmx-packet.h
- cvmx-pci-defs.h
- cvmx-pciercx-defs.h
- cvmx-pcsx-defs.h
- cvmx-pcsxx-defs.h
- cvmx-pemx-defs.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/mips/include/asm/octeon/cvmx-coremask.h
Text · 2,176 bytes/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (c) 2016 Cavium Inc. ([email protected]).
*
*/
/*
* Module to support operations on bitmap of cores. Coremask can be used to
* select a specific core, a group of cores, or all available cores, for
* initialization and differentiation of roles within a single shared binary
* executable image.
*
* The core numbers used in this file are the same value as what is found in
* the COP0_EBASE register and the rdhwr 0 instruction.
*
* For the CN78XX and other multi-node environments the core numbers are not
* contiguous. The core numbers for the CN78XX are as follows:
*
* Node 0: Cores 0 - 47
* Node 1: Cores 128 - 175
* Node 2: Cores 256 - 303
* Node 3: Cores 384 - 431
*
*/
#ifndef __CVMX_COREMASK_H__
#define __CVMX_COREMASK_H__
#define CVMX_MIPS_MAX_CORES 1024
/* bits per holder */
#define CVMX_COREMASK_ELTSZ 64
/* cvmx_coremask_t's size in u64 */
#define CVMX_COREMASK_BMPSZ (CVMX_MIPS_MAX_CORES / CVMX_COREMASK_ELTSZ)
/* cvmx_coremask_t */
struct cvmx_coremask {
u64 coremask_bitmap[CVMX_COREMASK_BMPSZ];
};
/*
* Is ``core'' set in the coremask?
*/
static inline bool cvmx_coremask_is_core_set(const struct cvmx_coremask *pcm,
int core)
{
int n, i;
n = core % CVMX_COREMASK_ELTSZ;
i = core / CVMX_COREMASK_ELTSZ;
return (pcm->coremask_bitmap[i] & ((u64)1 << n)) != 0;
}
/*
* Make a copy of a coremask
*/
static inline void cvmx_coremask_copy(struct cvmx_coremask *dest,
const struct cvmx_coremask *src)
{
memcpy(dest, src, sizeof(*dest));
}
/*
* Set the lower 64-bit of the coremask.
*/
static inline void cvmx_coremask_set64(struct cvmx_coremask *pcm,
uint64_t coremask_64)
{
pcm->coremask_bitmap[0] = coremask_64;
}
/*
* Clear ``core'' from the coremask.
*/
static inline void cvmx_coremask_clear_core(struct cvmx_coremask *pcm, int core)
{
int n, i;
n = core % CVMX_COREMASK_ELTSZ;
i = core / CVMX_COREMASK_ELTSZ;
pcm->coremask_bitmap[i] &= ~(1ull << n);
}
#endif /* __CVMX_COREMASK_H__ */