forked from NetBSD/src
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
1,440 additions
and
0 deletions.
There are no files selected for viewing
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,56 @@ | ||
#include <sys/cdefs.h> | ||
__KERNEL_RCSID(0, "$NetBSD$"); | ||
|
||
#include <sys/param.h> | ||
This comment has been minimized.
Sorry, something went wrong. |
||
#include <sys/device.h> | ||
#include <sys/kernel.h> | ||
#include <sys/module.h> | ||
#include <sys/param.h> | ||
#include <sys/conf.h> | ||
#include <sys/cprng.h> | ||
#include <sys/kmem.h> | ||
#include <sys/systm.h> | ||
#include <sys/types.h> | ||
#include <sys/filedesc.h> | ||
|
||
#define DEFINE_ASAN_LOAD_STORE(size) \ | ||
void __asan_load##size(unsigned long); \ | ||
void __asan_load##size(unsigned long addr) \ | ||
{} \ | ||
void __asan_load##size##_noabort(unsigned long); \ | ||
void __asan_load##size##_noabort(unsigned long addr) \ | ||
{} \ | ||
void __asan_store##size(unsigned long); \ | ||
void __asan_store##size(unsigned long addr) \ | ||
{} \ | ||
void __asan_store##size##_noabort(unsigned long); \ | ||
void __asan_store##size##_noabort(unsigned long addr) \ | ||
{} \ | ||
|
||
|
||
DEFINE_ASAN_LOAD_STORE(1); | ||
DEFINE_ASAN_LOAD_STORE(2); | ||
DEFINE_ASAN_LOAD_STORE(4); | ||
DEFINE_ASAN_LOAD_STORE(8); | ||
DEFINE_ASAN_LOAD_STORE(16); | ||
|
||
void __asan_loadN(unsigned long, size_t); | ||
void __asan_loadN(unsigned long addr, size_t size) | ||
{} | ||
|
||
void __asan_loadN_noabort(unsigned long, size_t); | ||
void __asan_loadN_noabort(unsigned long addr, size_t size) | ||
{} | ||
|
||
void __asan_storeN(unsigned long, size_t); | ||
void __asan_storeN(unsigned long addr, size_t size) | ||
{} | ||
|
||
void __asan_storeN_noabort(unsigned long, size_t); | ||
void __asan_storeN_noabort(unsigned long addr, size_t size) | ||
{} | ||
|
||
/* to shut up compiler complaints */ | ||
|
||
void __asan_handle_no_return(void); | ||
void __asan_handle_no_return(void) {} |
Oops, something went wrong.
hmm, maybe at this point we can drop includes
just keep <sys/cdefs.h>