summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2021-03-29 19:35:14 +0200
committerTobias Klauser <tklauser@distanz.ch>2021-03-29 19:35:14 +0200
commitfb509f07440b2914599ac91b514251c12585d084 (patch)
tree99d61431f6b6549562595bec7cdd7b0beb2e2d1a
parent960e368b3832ba67722ae801d0f4ae49cdecd8a4 (diff)
zshrc: source gcloud completion config if available
-rw-r--r--.zsh/zshrc/99_gcloud12
1 files changed, 12 insertions, 0 deletions
diff --git a/.zsh/zshrc/99_gcloud b/.zsh/zshrc/99_gcloud
new file mode 100644
index 0000000..138bba8
--- /dev/null
+++ b/.zsh/zshrc/99_gcloud
@@ -0,0 +1,12 @@
+# zshrc/99_gcloud
+#
+# Copyright © 2021 Tobias Klauser <tklauser@distanz.ch>
+# Released under the terms of the Artistic Licence 2.0
+#
+# Source repository: git://git.distanz.ch/dotfiles/zsh.git
+
+if [ -f /usr/share/google-cloud-sdk/completion.zsh.inc ] ; then
+ source /usr/share/google-cloud-sdk/completion.zsh.inc
+fi
+
+# vim:ft=zsh
94003b31 bl ffffffc000093f00 <flush_cache_all> ffffffc000085240: b0003321 adrp x1, ffffffc0006ea000 <reset_devices> ffffffc000085244: f9400fa0 ldr x0, [x29,#24] ----> spilled addr ffffffc000085248: f942fc22 ldr x2, [x1,#1528] ----> global memstart_addr ffffffc00008524c: f0000061 adrp x1, ffffffc000094000 <__inval_cache_range+0x40> ffffffc000085250: 91290021 add x1, x1, #0xa40 ffffffc000085254: 8b010041 add x1, x2, x1 ffffffc000085258: d2c00802 mov x2, #0x4000000000 // #274877906944 ffffffc00008525c: 8b020021 add x1, x1, x2 ffffffc000085260: d63f0020 blr x1 ... Here the compiler generates memory accesses after the cache is disabled, loading stale values for the spilled value and global variable. As we cannot control when the compiler will access memory we must rewrite the functions in assembly to stash values we need in registers prior to disabling the cache, avoiding the use of memory. Reviewed-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Arun Chandran <achandran@mvista.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/mm/proc.S')