Xfree-server and Xhp ?
Hi all,
I just discover some days ago (when trying to rebuild 4.3) that in XFree-4.2 still exists (not anymore
in 4.3?) the sources of a Xhp server supporting the builtin gfx of my testing b180 (into build-tree/xc/programs/Xserver/hw/hp/).
Juliusz Chroboczek <[email protected] <mailto:[email protected]>> kindly explain me:
Quoted 8 lines
Please note that Xhp is not supported by XFree86, and most probably doesn't build.
Try adding a file xc/config/cf/host.def with the following line:
#define XhpServer YES
Then make World as usual.
It doesn't build :-(
But I also found some additional patch which HP supplied for suport of X11R6.3 into mklinux project.
It would be helpful as this patch supplied (among other things) the asm src of an object supplying requested ngleDepth8_CopyAreaFromToScreen() and ngleDepth24_CopyAreaFromToScreen() functions. Into mklinux sources I also find back <machine/asm.h> it would be easy with the help of kernel documentation to 'reverse' it for parisc linux (seems to be trivial). My only pb is that src seems to be writen for 'som' env:
Quoted 18 lines
#include <
machine/asm.h>.space $TEXT$
.subspa $CODE$.import ngleScreenPrivIndex,data
.export
ngleDepth8_CopyAreaFromToScreen
.proc
.callinfo
ngleDepth8_CopyAreaFromToScreenldo 0x40(sp),sp stw arg0,-0x64(sp) stw arg1,-0x68(sp) stw arg2,-0x6c(sp) stw arg3,-0x70(sp) ldw -0x68(sp),r1
[...]
Quoted 6 lines
stw t3,0xb00(t4)
bv r0(rp)
ldo -0x40(sp),sp
.procend[...]+
Quoted 1 line
.end
(arg[0..3], r[0..], t[1..4] beeing labels defined <machine/asm.h>)
Does it exist some doc or tips to do this kind of obj translation 'som' -> 'elf'?
Thanks in advance for advises,
Joel
Quoted 6 lines
Into mklinux sources I also find back <
machine/asm.h> it would be easy with the help of kernel documentation to 'reverse' it for parisc linux (seems to be trivial).Does it exist some doc or tips to do this kind of obj translation 'som' -> 'elf'?
well, not that i know of, but it should work almost as is. most of these are actually differences between the HP assembler and the GNU assembler, rather than differences between SOM and ELF.
Quoted 2 lines
Quoted 2 lines
.space $TEXT$
.subspa $CODE$
change to ".text"
Quoted 8 lines
Quoted 8 lines
.import ngleScreenPrivIndex,data
.export
ngleDepth8_CopyAreaFromToScreen
.proc
.callinfo
ngleDepth8_CopyAreaFromToScreen
add colon (:) at end
Quoted 8 lines
Quoted 6 lines
ldo 0x40(sp),sp stw arg0,-0x64(sp) stw arg1,-0x68(sp) stw arg2,-0x6c(sp) stw arg3,-0x70(sp) ldw -0x68(sp),r1[...]
(arg[0..3], r[0..], t[1..4] beeing labels defined <machine/asm.h>)
shouldn't need the labels, the assembler recognizes these. but you need to put % in front of all the register names in order for the GNU assembler to accept the input. (ldo 0x40(%sp),%sp, etc)
HTH,
randolph
Signature · 3 lines
Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/
Quoted 10 lines
well, not that i know of, but it should work almost as is. most of these are actually differences between the HP assembler and the GNU assembler, rather than differences between SOM and ELF.
Quoted 3 lines
Quoted 2 lines
.space $TEXT$
.subsp$CODE$
change to ".text"
That was my main question, nice :)
Quoted 3 lines
Quoted 2 lines
Quoted 2 lines
ngleDepth8_CopyAreaFromToScreenadd colon (:) at end
Ok
Quoted 1 line
Quoted 1 line
ldo 0x40(sp),sp
^^^^^^^^^^^^^^^^^^^^^^^^^^That was I suspected to be 'som' specific
Quoted 11 lines
Quoted 5 lines
stw arg0,-0x64(sp) stw arg1,-0x68(sp) stw arg2,-0x6c(sp) stw arg3,-0x70(sp) ldw -0x68(sp),r1[...]
(arg[0..3], r[0..], t[1..4] beeing labels defined <machine/asm.h>)shouldn't need the labels, the assembler recognizes these. but you need to put % in front of all the register names in order for the GNU assembler to accept the input. (ldo 0x40(%sp),%sp, etc)
HTH,
A lot you just answers to all my questions,
Thanks a lot,
Joel
------------------------------------------------------
Soldes Tiscali ADSL : 27,50 euros/mois jusque fin 2003. On s'habitue vite à payer son ADSL moins cher!
Plus d'info? Cliquez ici... http://reg.tiscali.be/default.asp?lg=fr
Quoted 2 lines
Quoted 1 line
Quoted 1 line
ldo 0x40(sp),sp^^^^^^^^^^^^^^^^^^^^^^^^^^That was I suspected to be 'som' specific
that means a 64-byte stack.. should be fine on palinux as well.
randolph
Signature · 3 lines
Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
ldo 0x40(sp),sp^^^^^^^^^^^^^^^^^^^^^^^^^^That was I suspected to be 'som' specific
that means a 64-byte stack.. should be fine on palinux as well.
Ok I will so try like this (after % and other stuff translation) :-)
Thanks again,
Joel
------------------------------------------------------
Soldes Tiscali ADSL : 27,50 euros/mois jusque fin 2003. On s'habitue vite à payer son ADSL moins cher!
Plus d'info? Cliquez ici... http://reg.tiscali.be/default.asp?lg=fr
Quoted 5 lines · Joel Soete
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
ldo 0x40(sp),sp^^^^^^^^^^^^^^^^^^^^^^^^^^That was I suspected to be 'som' specific
Quoted 9 lines
Quoted 3 lines
that means a 64-byte stack.. should be fine on palinux as well.
Ok I will so try like this (after % and other stuff translation) :-)
Thanks again,
Joel
Just a follow-up to mentioned that it works (*.s compiling). Unfortunately I don't think that I never reach to obtain a full Xhp server because I still need some functions (2 or 3) which I didn't found nowhere (in the src I got; even thought I found one in a hp lib); I am so oblige to abandon ( :_( ).
Thanks again for all,
Joel