Add test programs for lage page
Tests arm64 specific, contiguous bit based large pages as well. Change-Id: I09edad8cfde6c23a259f1f32cfc97974d9cb63c3
This commit is contained in:
committed by
Dominique Martinet
parent
100754f556
commit
9f7425c152
30
test/large_page/x86_64/Makefile
Normal file
30
test/large_page/x86_64/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
include $(HOME)/.mck_test_config.mk
|
||||
|
||||
CC = gcc
|
||||
|
||||
CPPFLAGS =
|
||||
CFLAGS = -Wall -Werror -g
|
||||
LDFLAGS =
|
||||
|
||||
PAGESIZE = $(shell getconf PAGESIZE)
|
||||
ifeq ($(PAGESIZE),4096)
|
||||
SRCS = $(shell ls *_4K.c | grep -v 502)
|
||||
endif
|
||||
|
||||
EXES = $(SRCS:.c=)
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
|
||||
all: $(EXES)
|
||||
|
||||
test:: $(EXES)
|
||||
../driver.sh $(TESTSET)
|
||||
|
||||
501_4K: 501_4K.o 501_4K.lds
|
||||
$(CC) -o $@ $< $(LDFLAGS) -T 501_4K.lds
|
||||
|
||||
502_4K: 502_4K.o 502_4K.lds
|
||||
$(CC) -o $@ $< $(LDFLAGS) -T 502_4K.lds
|
||||
|
||||
clean:
|
||||
rm -f core $(EXES) $(OBJS)
|
||||
|
||||
Reference in New Issue
Block a user