diff options
| author | qmuntal <quimmuntal@gmail.com> | 2022-12-16 16:54:03 +0100 |
|---|---|---|
| committer | Quim Muntal <quimmuntal@gmail.com> | 2023-01-24 12:05:07 +0000 |
| commit | cf9263dee1bb160f013a080bbda3532a7d35da15 (patch) | |
| tree | c6743f75c942150fb1685ec1da9f6e874762eae3 /src/runtime/defs_windows.go | |
| parent | e39c7a37f0f1a992eb65202d05c3148524c5c0ef (diff) | |
| download | go-cf9263dee1bb160f013a080bbda3532a7d35da15.tar.xz | |
runtime: factor out windows sigtramp
This CL factors out part of the Windows sigtramp implementation, which
was duplicated in all four architectures. The new common code is
implemented in Go rather than in assembly, which will make Windows
error handling easier to reason and maintain.
While here, implement the control flow guard workaround on
windows/386, which almost comes for free.
Change-Id: I0bf38c28c54793225126e161bd95527a62de05e0
Reviewed-on: https://go-review.googlesource.com/c/go/+/458135
Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/defs_windows.go')
| -rw-r--r-- | src/runtime/defs_windows.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/defs_windows.go b/src/runtime/defs_windows.go index 8d4e38120e..7e5d9570f8 100644 --- a/src/runtime/defs_windows.go +++ b/src/runtime/defs_windows.go @@ -57,6 +57,11 @@ type systeminfo struct { wprocessorrevision uint16 } +type exceptionpointers struct { + record *exceptionrecord + context *context +} + type exceptionrecord struct { exceptioncode uint32 exceptionflags uint32 |
