mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
Revision 01810e5c68e9 added the following to src/pkg/runtime/stack.h:
StackPreempt = (uintptr)(intptr)0xffffade,
The typedef for intptr is defined in two places:
1. src/pkg/runtime/runtime.h for use by the runtime
2. include/u.h for use by the compilers and linkers
On Plan 9, we don't use include/u.h but instead augment the host's
u.h with extra typedefs. These are in include/plan9/GOARCH/u.h.
We forgot to add intptr. It didn't cause a problem until now since
that typedef was never used outside the runtime.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/10023043
15 lines
377 B
C
15 lines
377 B
C
// Copyright 2012 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
#include "/arm/include/u.h"
|
|
|
|
typedef char int8;
|
|
typedef uchar uint8;
|
|
typedef short int16;
|
|
typedef ushort uint16;
|
|
typedef int int32;
|
|
typedef uint uint32;
|
|
typedef vlong int64;
|
|
typedef uvlong uint64;
|
|
typedef int intptr;
|