Skip to content

Commit 6366e3a

Browse files
committed
mips: tmp
1 parent 72801c4 commit 6366e3a

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

src/runtime/rt0_noos_mips64.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ loadintvectorloop:
143143
ADDU $-1, t2
144144
BGTZ t2,loadintvectorloop
145145

146-
JAL ·initEverdrive64USB(SB) // get ready for logging
146+
// JAL ·initEverdrive64USB(SB) // get ready for logging
147147

148148
JMP runtime·rt0_go(SB)
149149

@@ -235,7 +235,7 @@ TEXT runtime·rt0_go(SB),NOSPLIT|NOFRAME|TOPFRAME,$0
235235
SUB t0, t1, t5 // size of available memory (DMA capable)
236236

237237
// estimate the space need for non-heap allocations
238-
SRL $(const__PageShift+2), t5, t4
238+
SRL $(const__PageShift-0), t5, t4
239239
MOVV $mspan__size, t2
240240
MUL t2, t4
241241
MOVV LO, t4

src/runtime/tasker_noos_mips64.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -168,19 +168,6 @@ func printUint32Hex(n uint) {
168168
//go:nowritebarrierrec
169169
//go:nosplit
170170
func defaultWrite(fd int, p []byte) int {
171-
alignedStart := 16 - int(uintptr(unsafe.Pointer(&usbBuffer))%16)
172-
alignedEnd := alignedStart + len(p) + 12
173-
if alignedEnd%2 == 1 {
174-
alignedEnd += 1
175-
}
176-
usbBufferAligned := usbBuffer[alignedStart:alignedEnd]
177-
178-
copy(usbBufferAligned, "DMA@")
179-
copy(usbBufferAligned[4:], []byte{1, 0, 0, byte(len(p))})
180-
copy(usbBufferAligned[8:], p)
181-
copy(usbBufferAligned[8+len(p):], "CMPH")
182-
ptr := unsafe.SliceData(usbBufferAligned)
183-
writeEverdrive64USB(unsafe.Pointer(ptr), len(usbBufferAligned))
184171
return len(p)
185172
}
186173

0 commit comments

Comments
 (0)