1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

Fix a regression when built with Clang.

PR:		201165
This commit is contained in:
Jung-uk Kim 2015-06-30 17:42:22 +00:00
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

View File

@ -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

View File

@ -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;