<commit_before>/**
 * dune.h - public header for Dune support
 */

#include <linux/types.h>

/*
 * IOCTL interface
 */

/* FIXME: this must be reserved in miscdevice.h */
#define DUNE_MINOR       233

#define DUNE_ENTER	_IOR(DUNE_MINOR, 0x01, struct dune_config)
#define DUNE_GET_SYSCALL	 _IO(DUNE_MINOR, 0x02)
#define DUNE_GET_LAYOUT	_IOW(DUNE_MINOR, 0x03, struct dune_layout)

// XXX: Must match libdune/dune.h
#define DUNE_SIGNAL_INTR_BASE 200

struct dune_config {
	__u64 rip;
	__u64 rsp;
	__u64 cr3;
	__s64 ret;
} __attribute__((packed));

struct dune_layout {
	__u64 base_proc;
	__u64 base_map;
	__u64 base_stack;
} __attribute__((packed));

#define GPA_SIZE ((unsigned long) 1 << 34)
#define GPA_MASK (GPA_SIZE - 1)
#define LG_ALIGN(addr)	((addr + (1 << 21) - 1) & ~((1 << 21) - 1))

enum {
	GPA_ADDR_PROC	= 0x000000000,
	GPA_ADDR_MAP 	= 0x400000000,
	GPA_ADDR_STACK	= 0x800000000,
	GPA_ADDR_INVAL	= 0xC00000000,
};<commit_msg>[kern] align mmap_base to a 1GB boundary.<commit_after>/**
 * dune.h - public header for Dune support
 */

#include <linux/types.h>

/*
 * IOCTL interface
 */

/* FIXME: this must be reserved in miscdevice.h */
#define DUNE_MINOR       233

#define DUNE_ENTER	_IOR(DUNE_MINOR, 0x01, struct dune_config)
#define DUNE_GET_SYSCALL	 _IO(DUNE_MINOR, 0x02)
#define DUNE_GET_LAYOUT	_IOW(DUNE_MINOR, 0x03, struct dune_layout)

// XXX: Must match libdune/dune.h
#define DUNE_SIGNAL_INTR_BASE 200

struct dune_config {
	__u64 rip;
	__u64 rsp;
	__u64 cr3;
	__s64 ret;
} __attribute__((packed));

struct dune_layout {
	__u64 base_proc;
	__u64 base_map;
	__u64 base_stack;
} __attribute__((packed));

#define GPA_SIZE ((unsigned long) 1 << 34)
#define GPA_MASK (GPA_SIZE - 1)
#define LG_ALIGN(addr)	((addr + (1 << 30) - 1) & ~((1 << 30) - 1))

enum {
	GPA_ADDR_PROC	= 0x000000000,
	GPA_ADDR_MAP 	= 0x400000000,
	GPA_ADDR_STACK	= 0x800000000,
	GPA_ADDR_INVAL	= 0xC00000000,
};
{'fraction_non_alphanumeric': 0.12078059071729957, 'fraction_numerical': 0.0859704641350211, 'mean_word_length': 4.5145348837209305, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 8, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '703437', 'n_tokens_mistral': 958, 'n_tokens_neox': 831, 'n_words': 190}