mirror of
https://github.com/golang/go
synced 2024-11-19 21:04:43 -07:00
851f30136d
Collapse the arch,os-specific directories into the main directory by renaming xxx/foo.c to foo_xxx.c, and so on. There are no substantial edits here, except to the Makefile. The assumption is that the Go tool will #define GOOS_darwin and GOARCH_amd64 and will make any file named something like signals_darwin.h available as signals_GOOS.h during the build. This replaces what used to be done with -I$(GOOS). There is still work to be done to make runtime build with standard tools, but this is a big step. After this we will have to write a script to generate all the generated files so they can be checked in (instead of generated during the build). R=r, iant, r, lucio.dere CC=golang-dev https://golang.org/cl/5490053
33 lines
621 B
ArmAsm
33 lines
621 B
ArmAsm
// Copyright 2010 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.
|
|
|
|
TEXT _rt0_386_plan9(SB),7, $0
|
|
MOVL AX, _tos(SB)
|
|
|
|
// move arguments down to make room for
|
|
// m and g at top of stack, right before Tos.
|
|
MOVL SP, SI
|
|
SUBL $8, SP
|
|
MOVL SP, DI
|
|
|
|
MOVL AX, CX
|
|
SUBL SI, CX
|
|
CLD
|
|
REP; MOVSB
|
|
|
|
// adjust argv
|
|
SUBL SI, DI
|
|
MOVL newargc+0(SP), CX
|
|
LEAL newargv+4(SP), BP
|
|
argv_fix:
|
|
ADDL DI, 0(BP)
|
|
ADDL $4, BP
|
|
LOOP argv_fix
|
|
|
|
JMP _rt0_386(SB)
|
|
|
|
DATA runtime·isplan9(SB)/4, $1
|
|
GLOBL runtime·isplan9(SB), $4
|
|
GLOBL _tos(SB), $4
|