Module Name: src Committed By: riastradh Date: Sun Jul 24 20:05:08 UTC 2022
Modified Files: src/sys/external/bsd/drm2/dist/drm/amd/display/dc: os_types.h Log Message: amdgpu: Define DC_FPU_START/END on Arm. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 \ src/sys/external/bsd/drm2/dist/drm/amd/display/dc/os_types.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/dist/drm/amd/display/dc/os_types.h diff -u src/sys/external/bsd/drm2/dist/drm/amd/display/dc/os_types.h:1.3 src/sys/external/bsd/drm2/dist/drm/amd/display/dc/os_types.h:1.4 --- src/sys/external/bsd/drm2/dist/drm/amd/display/dc/os_types.h:1.3 Sun Dec 19 11:35:07 2021 +++ src/sys/external/bsd/drm2/dist/drm/amd/display/dc/os_types.h Sun Jul 24 20:05:08 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: os_types.h,v 1.3 2021/12/19 11:35:07 riastradh Exp $ */ +/* $NetBSD: os_types.h,v 1.4 2022/07/24 20:05:08 riastradh Exp $ */ /* * Copyright 2012-16 Advanced Micro Devices, Inc. @@ -53,16 +53,21 @@ #define dm_error(fmt, ...) DRM_ERROR(fmt, ##__VA_ARGS__) #if defined(CONFIG_DRM_AMD_DC_DCN) -#if defined(CONFIG_X86) #ifdef __NetBSD__ +#if defined(__i386__) || defined(__x86_64__) #include <x86/fpu.h> #define DC_FP_START() fpu_kern_enter() #define DC_FP_END() fpu_kern_leave() -#else +#elif defined(__arm__) || defined(__aarch64__) +#include <arm/fpu.h> +#define DC_FP_START() fpu_kern_enter() +#define DC_FP_END() fpu_kern_leave() +#endif +#else /* !__NetBSD__ */ +#if defined(CONFIG_X86) #include <asm/fpu/api.h> #define DC_FP_START() kernel_fpu_begin() #define DC_FP_END() kernel_fpu_end() -#endif #elif defined(CONFIG_PPC64) #include <asm/switch_to.h> #include <asm/cputable.h> @@ -92,6 +97,7 @@ } #endif #endif +#endif /* *