Skip to content
This repository has been archived by the owner on May 2, 2018. It is now read-only.

Commit

Permalink
runtime: fix tabs in windows/386/sys.s
Browse files Browse the repository at this point in the history
R=rsc, brainman
CC=golang-dev
https://golang.org/cl/4030043
  • Loading branch information
hectorchu authored and rsc committed Jan 20, 2011
1 parent 4f269d3 commit 6c240d7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/pkg/runtime/windows/386/sys.s
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ TEXT runtime·stdcall_raw(SB),7,$4
// Someday the convention will be D is always cleared.
CLD

RET
RET

TEXT runtime·sigtramp(SB),7,$0
PUSHL BP // cdecl
PUSHL BP // cdecl
PUSHL 0(FS)
CALL runtime·sigtramp1(SB)
POPL 0(FS)
Expand All @@ -59,10 +59,10 @@ TEXT runtime·sigtramp(SB),7,$0
TEXT runtime·sigtramp1(SB),0,$16-28
// unwinding?
MOVL info+12(FP), BX
MOVL 4(BX), CX // exception flags
MOVL 4(BX), CX // exception flags
ANDL $6, CX
MOVL $1, AX
JNZ sigdone
JNZ sigdone

// place ourselves at the top of the SEH chain to
// ensure SEH frames lie within thread stack bounds
Expand All @@ -79,13 +79,13 @@ TEXT runtime·sigtramp1(SB),0,$16-28

CALL runtime·sighandler(SB)
TESTL AX, AX
JZ sigdone
JZ sigdone

// call windows default handler early
MOVL 4(SP), BX // our SEH frame
MOVL 0(BX), BX // SEH frame of default handler
MOVL 4(BX), AX // handler function pointer
MOVL BX, 4(SP) // set establisher frame
MOVL 4(SP), BX // our SEH frame
MOVL 0(BX), BX // SEH frame of default handler
MOVL 4(BX), AX // handler function pointer
MOVL BX, 4(SP) // set establisher frame
CALL AX

sigdone:
Expand Down Expand Up @@ -120,7 +120,7 @@ TEXT runtime·tstart(SB),7,$0
// Someday the convention will be D is always cleared.
CLD

CALL runtime·stackcheck(SB) // clobbers AX,CX
CALL runtime·stackcheck(SB) // clobbers AX,CX

CALL runtime·mstart(SB)

Expand Down Expand Up @@ -158,7 +158,7 @@ TEXT runtime·setldt(SB),7,$0
TEXT runtime·gettime(SB),7,$0
MOVL sec+0(FP), DI
MOVL $0, (DI)
MOVL $0, 4(DI) // zero extend 32 -> 64 bits
MOVL $0, 4(DI) // zero extend 32 -> 64 bits
MOVL usec+4(FP), DI
MOVL $0, (DI)
RET

0 comments on commit 6c240d7

Please sign in to comment.