aboutsummaryrefslogtreecommitdiff
path: root/user/usr/bin/segfault.S
blob: e37f39a2c1aaecd0e4d1de370ceba524097222d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* 
 * An extremely simple test binary. It relies on your
 * process text and stack being mapped in (and hence vmmap_map
 * code working) but otherwise has even fewer dependencies than
 * hello. It should almost immediately segfault.
 */

.globl main
main:
	xor %eax, %eax;
	mov (%eax), %eax;
	ret;