History

force Chan pointer in namec() to volatile to fix miscompilation on arm64 (thanks oPless)

cinap_lenrek committed 2 years ago

Commit 162013b1 parent 59dda541 file · +1 −1Browse files

Unified · Split

kern/chan.c+1−1
@@ -1150,7 +1150,7 @@ Chan* · 1149 unmodified lines
1150namec(char *aname, int amode, int omode, ulong perm)1150namec(char *aname, int amode, int omode, ulong perm)
1151{1151{
1152 int len, n, t, nomount;1152 int len, n, t, nomount;
1153 Chan *c;1153 Chan *volatile c;
1154 Chan *volatile cnew;1154 Chan *volatile cnew;
1155 Path *volatile path;1155 Path *volatile path;
1156 Elemlist e;1156 Elemlist e;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t