Re: Problem Booting x86_64 kernel in qemu

Markus Pfeiffer <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <[email protected]>
Dear Adam,

On Thu, Aug 09, 2012 at 03:33:16PM +0200, Adam Lackorzynski wrote:
> Hi,
> 
> On Wed Aug 08, 2012 at 11:35:20 +0000, Markus Pfeiffer wrote:
> > I tried building the Fiasco kernel (x86_64, from svn) together with the hello demo
> > inside a qemu as it is shown on the website under "Getting started".
> > 
> > Unfortunately the kernel traps while booting (Unexpected trap while booting
> > Fiasco). The trap number seems to be invalid (-8029759185026510704). Any
> > pointers towards where to look for a fix?
> 
> Works for me. The website uses 32 bit Qemu ('qemu'), did you use
> qemu-system-x86_64?
> 

Yes, I am running on archlinux 64 bit, I also tried qemu alone and different
options for -cpu and -machine.
GCC version is 4.7.1 and qemu version is 1.1.1.

I tried narrowing the problem down and found that the problem seems to be that
Cpu::boot_cpu() returns NULL in kernel_main in  main-ia32-64.cpp,
So I would suspect that this is due to some weird thing in the build
toolchain going wrong and not calling the constructors of Cpu or Per_cpu
correctly.

(Disclaimer, I have only been reading this code for a few hours, so I by no
means know whether this is actually the cause).


Cheers,
Markus
-- 
Markus Pfeiffer, University of St Andrews
email: [email protected] | xmpp: [email protected]

_______________________________________________
l4-hackers mailing list
[email protected]
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
signature.asc (application/pgp-signature, 834 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (FreeBSD)

iQIcBAEBAgAGBQJQI8AhAAoJEEYIAIuHgtZGu4oQALDUnK36NMk6Cr79pI7na7yo
0xwqEb5pbh6Mhr0zirPJ6pHBDfoQqmeYxu5cCY7nuaamWOd3Nl6dYO4kC+onLgTV
MEgSVhZsSfUNgJy213IhvBR55LMQnuvR7UzlTbwZt24/GyJymrdzseECKSw704fR
/mBl7YiOAWgpQKy8PK/i59UZuPsI5HaP4AP10g6NKROVIfK3rDZdO9Fplx4/pqic
xLFbqMTJX/Qeu4OP1h3aNTVnyI7DxmloyFcu13D/KeUxOdIIqgKcwoEWlPFT5v/n
IqoXRJ7dpDAq8LU4uzOSaAKQ8vfZSRs0xlyaPfqWow1FLYtoiOmbrhHIxVTeheQk
tPSyD40Ikdf9lfy+O8M80oVd72d5ThfRq4/mrc40GfCLN5FboKX8SNOdpPY9IvZw
GhNbwvVXW9/srzfNZNWvHdbka7Z/KmGuvuquGzi6jJ/ZVBR2zeQrhj43tmGpEVNO
PVkIsEXb4nouz7fF1BKxkjku4LjPewX+50fXGWc8GtYpg8Y8vwpYVjkA9XwVTRnb
OxpVsOfaZKsbxOGuWegOQnxb70SyQMOD37qud6i2EjVpHcvJHAyVNoJWVzRm0sGE
Z7qgvmfkEb5fssmpsQ9il83fX2D32TMMkty/4TwgYVM0lJ2raqsSd8fxiJhUUJTV
PgZr0uhoEC+WYSYtGFKD
=//Gu
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.