This commit is contained in:
Ole Algoritme
2023-03-02 13:08:09 +01:00
parent ac4721dde9
commit 0b9006c1ca
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
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:
rm -f gddr6
install:

View File

@@ -1,3 +1,5 @@
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
@@ -9,7 +11,6 @@
#include <pci/pci.h>
#include <signal.h>
#define MAP_SIZE 0x1000
#define PRINT_ERROR() \
do { \