Side by Side Diff
Use n/p to move between diff chunks; N/P to move between comments. Please
Sign in
to add in-line comments.
Keyboard Shortcuts
File
u
:
up to issue
m
:
publish + mail comments
M
:
edit review message
j
/
k
:
jump to file after / before current file
J
/
K
:
jump to next file with a comment after / before current file
Side-by-side diff
i
:
toggle intra-line diffs
e
:
expand all comments
c
:
collapse all comments
s
:
toggle showing all comments
n
/
p
:
next / previous diff chunk or comment
N
/
P
:
next / previous comment
<Up>
/
<Down>
:
next / previous line
<Enter>
:
respond to / edit current comment
d
:
mark current comment as done
Issue
u
:
up to list of issues
m
:
publish + mail comments
j
/
k
:
jump to patch after / before current patch
o
/
<Enter>
:
open current patch in side-by-side view
i
:
open current patch in unified diff view
Issue List
j
/
k
:
jump to issue after / before current issue
o
/
<Enter>
:
open current issue
#
:
close issue
Comment/message editing
<Ctrl>
+
s
or
<Ctrl>
+
Enter
:
save comment
<Esc>
:
cancel edit
Rietveld
Code Review Tool
Help
|
Bug tracker
|
Discussion group
|
Source code
|
Sign in
(14)
Issues
Repositories
Search
Open Issues
|
Closed Issues
|
All Issues
|
Sign in
with your
Google Account
to create issues and add comments
Side by Side Diff: src/pkg/runtime/plan9/mem.c
Issue
2273041
:
code review 2273041: Initial Plan9 runtime support for 386. (Closed)
Patch Set: code review 2273041: Initial Plan9 runtime support for 386.
Created 15 years, 1 month ago
Left:
Base
Patch Set 1: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 2: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 3: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 4: code review 2273041: Initial Plan9 runtime support for 386 [update to release.2010年09月29日].
Patch Set 5: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 6: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 7: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 8: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 9: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 10: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 11: code review 2273041: Initial Plan9 runtime support for 386.
Right:
Patch Set 1: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 2: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 3: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 4: code review 2273041: Initial Plan9 runtime support for 386 [update to release.2010年09月29日].
Patch Set 5: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 6: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 7: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 8: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 9: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 10: code review 2273041: Initial Plan9 runtime support for 386.
Patch Set 11: code review 2273041: Initial Plan9 runtime support for 386.
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Context:
3 lines
10 lines
25 lines
50 lines
75 lines
100 lines
Whole file
Column Width:
Jump to:
src/cmd/8l/asm.c
src/cmd/8l/obj.c
src/cmd/8l/pass.c
src/pkg/runtime/mkasmh.sh
src/pkg/runtime/plan9/386/defs.h
src/pkg/runtime/plan9/386/rt0.s
src/pkg/runtime/plan9/386/signal.c
src/pkg/runtime/plan9/386/sys.s
src/pkg/runtime/plan9/mem.c
src/pkg/runtime/plan9/os.h
src/pkg/runtime/plan9/signals.h
src/pkg/runtime/plan9/thread.c
src/pkg/runtime/runtime.h
View unified diff
|
Download patch
« no previous file with comments
|
« src/pkg/runtime/plan9/386/sys.s
('k') |
src/pkg/runtime/plan9/os.h »
('j') |
no next file with comments »
('i') | ('e') | ('c') | ('s')
OLD
NEW
(Empty)
1
// Copyright 2010 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4
5
#include "runtime.h"
6
#include "malloc.h"
7
8
extern int8 end[];
9
static int8 *bloc = { end };
10
11
enum
12
{
13
Round = 7
14
};
15
16
void*
17
SysAlloc(uintptr ask)
18
{
19
uintptr bl;
20
·
·
·
·
·
·
·
·
21
// Plan 9 sbrk from /sys/src/libc/9sys/sbrk.c
22
bl = ((uintptr)bloc + Round) & ~Round;
23
if(brk_((void*)(bl + ask)) < 0)
24
return (void*)-1;
25
bloc = (int8*)bl + ask;
26
return (void*)bl;
27
}
28
29
void
30
SysFree(void *v, uintptr n)
31
{
32
// from tiny/mem.c
33
// Push pointer back if this is a free
34
// of the most recent SysAlloc.
35
n += (n + Round) & ~Round;
36
if(bloc == (int8*)v+n)
37
bloc -= n;
·
·
·
·
·
·
38
}
39
40
void
41
SysUnused(void *v, uintptr n)
42
{
43
USED(v, n);
44
}
45
OLD
NEW
« no previous file with comments
|
« src/pkg/runtime/plan9/386/sys.s
('k') |
src/pkg/runtime/plan9/os.h »
('j') |
no next file with comments »
Issue 2273041: code review 2273041: Initial Plan9 runtime support for 386. (Closed)
Created 15 years, 2 months ago by paulzhol
Modified 15 years, 1 month ago
Reviewers:
Base URL:
Comments: 33
Powered by Google App Engine
RSS Feeds
Recent Issues
|
This issue
This is Rietveld
f62528b
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル