aboutsummaryrefslogtreecommitdiffstats
path: root/manual/presentation.sh
blob: ca8a6c93c10af9f229ab7258799f380b6aa6b224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash

fast_mode=false

set -- $(getopt fu "$@")
while [ $# -gt 0 ]; do
	case "$1" in
		-f)
			fast_mode=true
			;;
		--)
			shift
			break
			;;
		-*)
			echo "$0: error - unrecognized option $1" 1>&2
			exit 1
			;;
		*)
			break
	esac
	shift
done

PDFTEX_OPT="-shell-escape -halt-on-error"

set -ex

if ! $fast_mode; then
	! md5sum *.aux *.snm *.nav *.toc > autoloop.old
	make -C PRESENTATION_Intro
	make -C PRESENTATION_ExSyn
	make -C PRESENTATION_ExAdv
	make -C PRESENTATION_ExOth
	make -C PRESENTATION_Prog
fi

set -ex

pdflatex $PDFTEX_OPT presentation.tex

if ! $fast_mode; then
	while
		md5sum *.aux *.snm *.nav *.toc > autoloop.new
		! cmp autoloop.old autoloop.new
	do
		cp autoloop.new autoloop.old
		pdflatex $PDFTEX_OPT presentation.tex
	done

	rm -f autoloop.old
	rm -f autoloop.new
fi
"n">for x86-64 Xen by Keir Fraser */ #include <xen/config.h> #include <asm/page.h> #include <asm/percpu.h> #undef ENTRY #undef ALIGN OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64") OUTPUT_ARCH(i386:x86-64) ENTRY(start) PHDRS { text PT_LOAD ; } SECTIONS { . = __XEN_VIRT_START + 0x100000; _start = .; _stext = .; /* Text and read-only data */ .text : { *(.text) *(.fixup) *(.gnu.warning) } :text = 0x9090 _etext = .; /* End of text section */ .rodata : { *(.rodata) *(.rodata.*) } :text . = ALIGN(32); /* Exception table */ __start___ex_table = .; __ex_table : { *(__ex_table) } :text __stop___ex_table = .; . = ALIGN(32); /* Pre-exception table */ __start___pre_ex_table = .; __pre_ex_table : { *(__pre_ex_table) } :text __stop___pre_ex_table = .; .data : { /* Data */ *(.data) CONSTRUCTORS } :text . = ALIGN(128); .data.read_mostly : { *(.data.read_mostly) } :text . = ALIGN(4096); /* Init code and data */ __init_begin = .; _sinittext = .; .init.text : { *(.init.text) } :text _einittext = .; .init.data : { *(.init.data) } :text . = ALIGN(32); __setup_start = .; .init.setup : { *(.init.setup) } :text __setup_end = .; __initcall_start = .; .initcall.init : { *(.initcall1.init) } :text __initcall_end = .; __xsm_initcall_start = .; .xsm_initcall.init : { *(.xsm_initcall.init) } :text __xsm_initcall_end = .; . = ALIGN(PAGE_SIZE); __init_end = .; __per_cpu_shift = PERCPU_SHIFT; /* kdump assist */ __per_cpu_start = .; .data.percpu : { *(.data.percpu) } :text __per_cpu_data_end = .; . = __per_cpu_start + (NR_CPUS << PERCPU_SHIFT); . = ALIGN(PAGE_SIZE); __per_cpu_end = .; __bss_start = .; /* BSS */ .bss : { . = ALIGN(STACK_SIZE); *(.bss.stack_aligned) . = ALIGN(PAGE_SIZE); *(.bss.page_aligned) *(.bss) } :text _end = . ; /* Sections to be discarded */ /DISCARD/ : { *(.exit.text) *(.exit.data) *(.exitcall.exit) } /* Stabs debugging sections. */ .stab 0 : { *(.stab) } .stabstr 0 : { *(.stabstr) } .stab.excl 0 : { *(.stab.excl) } .stab.exclstr 0 : { *(.stab.exclstr) } .stab.index 0 : { *(.stab.index) } .stab.indexstr 0 : { *(.stab.indexstr) } .comment 0 : { *(.comment) } }