blob: 524ac766419a5a0abdd15cc3c3a7ea984a5013b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// 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_tiny(SB), 7, $0
// Disable interrupts.
CLI
// Establish stack.
MOVL $0x10000, AX
MOVL AX, SP
// Set up memory hardware.
CALL runtime·msetup(SB)
// _rt0_386 expects to find argc, argv, envv on stack.
// Set up argv=["kernel"] and envv=[].
SUBL $64, SP
MOVL $1, 0(SP)
MOVL $runtime·kernel(SB), 4(SP)
MOVL $0, 8(SP)
MOVL $0, 12(SP)
JMP _rt0_386(SB)
DATA runtime·kernel(SB)/7, $"kernel\z"
GLOBL runtime·kernel(SB), $7
|