9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Skip Tavakkolian <9nut@9netics.com>
To: 9fans@9fans.net
Subject: [9fans] compiling xen3 with more recent pc kernel
Date: Sun, 21 Jun 2015 14:22:35 -0700	[thread overview]
Message-ID: <b776c0ace02decdc6375db208bf2cacb@9netics.com> (raw)

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)
> {
> }
>




             reply	other threads:[~2015-06-21 21:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-21 21:22 Skip Tavakkolian [this message]
2015-06-21 21:32 ` David du Colombier
2015-06-21 22:02   ` Skip Tavakkolian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b776c0ace02decdc6375db208bf2cacb@9netics.com \
    --to=9nut@9netics.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).