Project

General

Profile

Actions

Bug #808

closed

amd64 port kernel build/link patches

Added by noah.yan about 17 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

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

patch.amd64 (586 KB) patch.amd64 noah.yan, 09/14/2007 03:51 AM
patch.kmod (1.81 KB) patch.kmod noah.yan, 09/14/2007 03:51 AM
patch.syssys (7.46 KB) patch.syssys noah.yan, 09/14/2007 03:51 AM
Actions #1

Updated by noah.yan about 17 years ago

not seeing feedback of this patch and i tend to commit them and move
on :), deal?

yonghong

Actions #2

Updated by qhwt+dfly about 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
Stop in /home/qhwt/amd64/home/source/dragonfly/current/src/sys/AMD64_GENERIC.
  • Error code 1
Stop in /home/source/dragonfly/current/src.
  • Error code 1

Stop in /home/source/dragonfly/current/src.

Actions #3

Updated by qhwt+dfly about 17 years ago

Tried with TARGET_ARCH=amd64, but this time, I caught the following
error in buildkernel:

===> emulation
===> 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
Stop in /home/source/dragonfly/current/src/sys/emulation.
  • Error code 1
Stop in /home/source/dragonfly/current/src/sys.
  • Error code 1
Stop in /var/obj/qhwt/home/source/dragonfly/current/src/sys/AMD64_GENERIC.
  • Error code 1
Stop in /home/source/dragonfly/current/src.
  • Error code 1

Stop in /home/source/dragonfly/current/src.

Actions #4

Updated by corecode almost 16 years ago

mine

Actions #5

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

Actions #6

Updated by ftigeot almost 13 years ago

  • Description updated (diff)
  • Status changed from New to Resolved

Closing due to lack of recent feedback.

Actions #7

Updated by ftigeot almost 13 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF