From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net Date: Sun, 21 Jun 2015 14:22:35 -0700 From: Skip Tavakkolian <9nut@9netics.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] compiling xen3 with more recent pc kernel Topicbox-Message-UUID: 5a0df8b8-ead9-11e9-9d60-3106f5b1d025 i had to make the following changes to the kernel for xen3 to match up to recent labs pc kernel and to compile successfully. can anyone verify the changes are correct? (i could to a smoke test on EC2, but don't feel adventurous at the moment) thanks, % yesterday -D mem.h fns.h trap.c diff -n /n/dump/2015/0621/sys/src/9/xen3/mem.h /sys/src/9/xen3/mem.h /n/dump/2015/0621/sys/src/9/xen3/mem.h:15,16 c /sys/src/9/xen3/mem.h:15,16 < #define ROUND(s, sz) (((s)+((sz)-1))&~((sz)-1)) < #define PGROUND(s) ROUND(s, BY2PG) --- > /* #define ROUND(s, sz) (((s)+((sz)-1))&~((sz)-1)) */ > /* #define PGROUND(s) ROUND(s, BY2PG) */ /n/dump/2015/0621/sys/src/9/xen3/mem.h:51 a /sys/src/9/xen3/mem.h:52 > #define UTROUND(t) ROUNDUP((t), BY2PG) diff -n /n/dump/2015/0621/sys/src/9/xen3/fns.h /sys/src/9/xen3/fns.h /n/dump/2015/0621/sys/src/9/xen3/fns.h:100 a /sys/src/9/xen3/fns.h:101 > void validalign(uintptr, unsigned); diff -n /n/dump/2015/0621/sys/src/9/xen3/trap.c /sys/src/9/xen3/trap.c /n/dump/2015/0621/sys/src/9/xen3/trap.c:949 a /sys/src/9/xen3/trap.c:950,954 > void > validalign(uintptr addr, unsigned align) > { > } >