I've done this, and I've forgotten how. I need to tell 6l to link a
program to run at
0x7f00
I've tried various combos of -T, -R, and -D and am failing to get the
right result ... any hints to revive my poor memory would be welcome.
ron
On Thu May 15 15:03:10 EDT 2014, rminn...@gmail.com wrote:
I've done this, and I've forgotten how. I need to tell 6l to link a
program to run at
0x7f00
I've tried various combos of -T, -R, and -D and am failing to get the
right result ... any hints to revive my poor memory
that wont work for a.out userspace binary. the kernel loads
the text segment on fixed base address UTZERO. in the a.out
header are just longs with the sizes of the segments. theres
an entry field but it doesnt change where the kernel puts the
text segment.
but you probably do not try to produce
sorry, wrong terminology. the kernel *maps* text
at UTZERO.
--
cinap
On Thu May 15 15:19:39 EDT 2014, cinap_len...@felloff.net wrote:
that wont work for a.out userspace binary. the kernel loads
the text segment on fixed base address UTZERO. in the a.out
header are just longs with the sizes of the segments. theres
an entry field but it doesnt change where the
because the immidiate to CALL instruction is 32bit which get sign
extended to 64bit. but the PC *is* 64bit. its just not that easy
to call directly.
#include u.h
#include libc.h
void
jump(void *p)
{
((void**)p)[-1] = p;
}
void
main(int argc, char *argv[])
{
char code[8];
because the immidiate to CALL instruction is 32bit which get sign
extended to 64bit.
sorry, this isnt true. we do near call (0xe8), which is pc relative but
uses signed 32bit offset. sorry for the noise.
--
cinap
you need to give more credit to the compiler :-)
the address I'm using is in the low half of the address space.
But I'll wait for Charles to weigh in and tell us what's what.
ron
Its just wonderful to have a raspberry pi as a plan9 terminal,
but the energy saving of the pi is outweighed by the monitor I use.
The Pi's display code blanks the screen after a while but this does
not shutdown the monitor.
I dug a little and it seems I need to send CEC (Consumer Electronics
On Thu, 15 May 2014 22:04:34 BST Steve Simon st...@quintile.net wrote:
Its just wonderful to have a raspberry pi as a plan9 terminal,
but the energy saving of the pi is outweighed by the monitor I use.
The Pi's display code blanks the screen after a while but this does
not shutdown the
This might be wildly off the mark, but is there something VESA related to
do this, VGA monitors, et al?
I prepare to stand flamed. ^.^
On Fri, May 16, 2014 at 8:26 AM, Bakul Shah ba...@bitblocks.com wrote:
On Thu, 15 May 2014 22:04:34 BST Steve Simon st...@quintile.net wrote:
Its just
11 matches
Mail list logo