Bug #808
closedamd64 port kernel build/link patches
0%
Description
Please check the attached three patches that are for the amd64 kernel
build and linking.
The patch.syssys includes patches for files that are platform
independent. but all changes are about the #ifdef, e.g. add
defined(__amd64).
patch.kmod is for sys/conf/kmod.mk, i.e to add amd64-specific kld
module linking targets. please help double check this.
The big patch.amd64 includes patches of files from sys/cpu/amd64,
sys/platform/pc64, sys/emulation/linux/amd64 and
sys/config/AMD64_GENERIC. They are all amd64/pc64 specific. Other than
the header files, most of those sources are dummy code and we include
them just to make the kernel linked. These dummy codes requires
completely redo work so you probably donot want to spend time on
codes that are going to be trashed soon :).
they did not break the i386 world/kernel build and i upgraded my box
from them without any trouble.
Thanks
Yonghong
Files
Updated by noah.yan over 17 years ago
not seeing feedback of this patch and i tend to commit them and move
on :), deal?
yonghong
Updated by qhwt+dfly over 17 years ago
Hi.
On Sun, Sep 16, 2007 at 05:57:58PM -0600, Yonghong Yan wrote:
not seeing feedback of this patch and i tend to commit them and move
on :), deal?
Probably I missed something very essential, but how can I try
to build a kernel with AMD64_GENERIC? Do I have to do buildworld
with TARGET_ARCH=amd64 first?
Cheers.
cc -c -O -pipe -mtune=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -ansi -g -nostdinc -I. -Iinclude -I/home/source/dragonfly/current/src/sys -I/home/source/dragonfly/current/src/sys/../include -I/home/qhwt/amd64/home/source/dragonfly/current/src/sys/AMD64_GENERIC -I"/home/source/dragonfly/current/src/sys/dev/acpica5" -I"/home/source/dragonfly/current/src/sys/contrib/dev/acpica-unix-20061109/include" -I/home/source/dragonfly/current/src/sys/contrib/ipfilter -D_KERNEL -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -ffreestanding -mpreferred-stack-boundary=4 -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables /home/source/dragonfly/current/src/sys/platform/pc64/amd64/genassym.c/home/source/dragonfly/current/src/sys/platform/pc64/amd64/genassym.c:1: error: code model `kernel' not supported in the 32 bit mode
- Error code 1
- Error code 1
- Error code 1
Stop in /home/source/dragonfly/current/src.
Updated by qhwt+dfly over 17 years ago
Tried with TARGET_ARCH=amd64, but this time, I caught the following
error in buildkernel:
===> emulation/linux
@ -> /home/source/dragonfly/current/src/sys/emulation/linux/../..
arch_linux -> /home/source/dragonfly/current/src/sys/emulation/linux/amd64
make: don't know how to make linux_dummy.c. Stop
- Error code 2
- Error code 1
- Error code 1
- Error code 1
- Error code 1
Stop in /home/source/dragonfly/current/src.
Updated by tuxillo almost 15 years ago
Hi,
Now that the x86_64 arch is more or less useable and ready for testing, is this
still applicable?
Cheers,
Antonio Huete
Updated by ftigeot almost 13 years ago
- Description updated (diff)
- Status changed from New to Resolved
Closing due to lack of recent feedback.