]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/arm/kernel/traps.c
Merge branch 'for-next' of git://git.pengutronix.de/git/ukl/linux into devel-stable
[karo-tx-linux.git] / arch / arm / kernel / traps.c
index 18b32e8e4497f4c1966f43ac6fbb4963315fb968..486e12a0f26a1bc2a7a7339e3a507a9708f64dc1 100644 (file)
@@ -812,6 +812,7 @@ static void __init kuser_get_tls_init(unsigned long vectors)
 
 void __init early_trap_init(void *vectors_base)
 {
+#ifndef CONFIG_CPU_V7M
        unsigned long vectors = (unsigned long)vectors_base;
        extern char __stubs_start[], __stubs_end[];
        extern char __vectors_start[], __vectors_end[];
@@ -843,4 +844,11 @@ void __init early_trap_init(void *vectors_base)
 
        flush_icache_range(vectors, vectors + PAGE_SIZE);
        modify_domain(DOMAIN_USER, DOMAIN_CLIENT);
+#else /* ifndef CONFIG_CPU_V7M */
+       /*
+        * on V7-M there is no need to copy the vector table to a dedicated
+        * memory area. The address is configurable and so a table in the kernel
+        * image can be used.
+        */
+#endif
 }