PERFORCE change 28222 for review
Peter Wemm
peter at FreeBSD.org
Sat Apr 5 03:37:06 PST 2003
http://perforce.freebsd.org/chv.cgi?CH=28222
Change 28222 by peter at peter_overcee on 2003/04/05 03:36:32
make the kernel link, by any means necessary.
peter at overcee[3:34am]~/fbp4/hammer/sys/x86_64/compile/GENERIC-593> ls -l kernel
-rwxr-xr-x 1 peter peter 1866185 Apr 5 03:32 kernel*
peter at overcee[3:34am]~/fbp4/hammer/sys/x86_64/compile/GENERIC-594> file kernel
kernel: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD), not stripped
Obviously, do not try booting it. There are a boatload of known-wrong things.
Not that anybody could, because the i386 loader doesn't understand elf64.
But this seems like a good point to get some sleep.
Affected files ...
.. //depot/projects/hammer/sys/conf/Makefile.x86_64#6 edit
.. //depot/projects/hammer/sys/x86_64/x86_64/locore.s#25 edit
Differences ...
==== //depot/projects/hammer/sys/conf/Makefile.x86_64#6 (text+ko) ====
@@ -21,7 +21,7 @@
CWARNFLAGS= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
-ffreestanding -Wno-format
-CC= x86_64-unknown-freebsd5.0-gcc
+CC= x86_64-unknown-freebsd5.0-gcc -mcmodel=medium
LD= x86_64-unknown-freebsd5.0-ld
NM= x86_64-unknown-freebsd5.0-nm
SIZE= x86_64-unknown-freebsd5.0-size
==== //depot/projects/hammer/sys/x86_64/x86_64/locore.s#25 (text+ko) ====
@@ -131,7 +131,7 @@
movw $0x1234,0x472
/* Get onto a stack that we can trust and set up a real frame. */
- movl $R(HIDENAME(tmpstk)),%esp
+# movl $R(HIDENAME(tmpstk)),%esp
pushl %ebp
movl %esp, %ebp
More information about the p4-projects
mailing list