[SOS] Question: Page fault lors de l'appel a paging_get_paddr(vaddr)

Thomas Petazzoni thomas.petazzoni at enix.org
Lun 7 Aou 01:28:53 CEST 2006


Salut !

Le Mon, 07 Aug 2006 02:28:38 +0200,
Julien Peeters <jj.peeters at gmail.com> a écrit :

> PS: le code est téléchargeable ŕ
> http://www.oxylin.fr/files/MyOS-20060807.tar.gz
> PS 2: Le code est compilé avec un toolchain pour uclibc (packages
> uclibc-toolchain et libuclibc-dev sous debian)

J'ai regardé rapidement, mais je ne comprends pas pourquoi le code de
ton noyau est linké avec la uclibc. La uclibc est une libc utilisateur,
c'est pas du tout fait pour ętre linké dans un noyau. Si tu as besoin
de fonctions de base comme memcpy(), bzero(), printf() et autres dans
ton noyau, il faut les recoder.

Sinon, ton code ne compile pas avec gcc4:

gcc -g -c hw/x86paging.c -nostdlib -I. -I./myos -o hw/x86paging.o
hw/x86paging.c: In function ‘myos_paging_setup’:
hw/x86paging.c:99: warning: asm operand 0 probably doesn’t match
constraints
hw/x86paging.c:99: error: impossible constraint in ‘asm’

Bonne nuit,

Thomas
-- 
PETAZZONI Thomas - thomas.petazzoni at enix.org 
http://{thomas,sos,kos}.enix.org - Jabber: thomas.petazzoni at jabber.dk
http://{agenda,livret}dulibre.org - http://www.toulibre.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://the-doors.enix.org/pipermail/sos/attachments/20060807/924a6d39/signature.pgp


Plus d'informations sur la liste de diffusion Sos