.
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,5 +1,5 @@
|
|||||||
all:
|
all:
|
||||||
gcc -D_POSIX_C_SOURCE -std=c11 -O3 -Wall -Werror -Wextra -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wvla -o gddr6 gddr6.c -lpci
|
gcc -std=c11 -O3 -Wall -Werror -Wextra -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wvla -o gddr6 gddr6.c -lpci
|
||||||
clean:
|
clean:
|
||||||
rm -f gddr6
|
rm -f gddr6
|
||||||
install:
|
install:
|
||||||
|
|||||||
3
gddr6.c
3
gddr6.c
@@ -1,3 +1,5 @@
|
|||||||
|
#define _GNU_SOURCE
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@@ -9,7 +11,6 @@
|
|||||||
#include <pci/pci.h>
|
#include <pci/pci.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
|
|
||||||
#define MAP_SIZE 0x1000
|
#define MAP_SIZE 0x1000
|
||||||
#define PRINT_ERROR() \
|
#define PRINT_ERROR() \
|
||||||
do { \
|
do { \
|
||||||
|
|||||||
Reference in New Issue
Block a user