Fix a regression when built with Clang.
PR: 201165
This commit is contained in:
parent
568cad211e
commit
12047e86b5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=390976
2 changed files with 14 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
PORTNAME= libx86
|
||||
PORTVERSION= 1.1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://www.codon.org.uk/~mjg59/libx86/downloads/ \
|
||||
LOCAL/jkim
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--- thunk.c 2008-04-02 20:48:00.000000000 -0400
|
||||
+++ thunk.c 2008-12-03 19:19:25.000000000 -0500
|
||||
--- thunk.c.orig 2008-04-03 00:48:00 UTC
|
||||
+++ thunk.c
|
||||
@@ -11,7 +11,9 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -10,3 +10,14 @@
|
|||
#include <string.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/shm.h>
|
||||
@@ -169,8 +171,8 @@ int LRMI_init() {
|
||||
X86_ESP = 0xFFF9;
|
||||
memset (stack, 0, 64*1024);
|
||||
|
||||
- *((char *)0) = 0x4f; /* Make sure that we end up jumping back to a
|
||||
- halt instruction */
|
||||
+ *((volatile char *)0) = 0x4f; /* Make sure that we end up jumping back to a
|
||||
+ halt instruction */
|
||||
|
||||
M.mem_base = 0;
|
||||
M.mem_size = 1024*1024;
|
||||
|
|
Loading…
Reference in a new issue