blob: edba30d0895af3b848155c5c5cd04abdba532733 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-media_libtheora_lib_arm_armcpu.c,v 1.2 2017/04/27 01:49:47 ryoon Exp $
--- media/libtheora/lib/arm/armcpu.c.orig 2016-05-12 17:13:17.000000000 +0000
+++ media/libtheora/lib/arm/armcpu.c
@@ -107,6 +107,18 @@ ogg_uint32_t oc_cpu_flags_get(void){
return flags;
}
+#elif defined(__NetBSD__)
+ogg_uint32_t oc_cpu_flags_get(void){
+ ogg_uint32_t flags;
+ /* XXX ryoon: I have no idea about ARM CPU extensions detection mechanism
+ under NetBSD/earm.
+ evbearmv6hf-el machine, Raspberry Pi does not have NEON.
+ evbearmv7hf-el machine, CubieBoard2 does not have EDSP.
+ I have no idea about MEDIA.
+ So I will disable all options. */
+ flags=0;
+ return flags;
+}
#else
/*The feature registers which can tell us what the processor supports are
accessible in priveleged modes only, so we can't have a general user-space
|