~ubuntu-branches/ubuntu/saucy/golang/saucy

« back to all changes in this revision

Viewing changes to src/pkg/runtime/mem_plan9.c

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-07-08 05:52:37 UTC
  • mfrom: (29.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130708055237-at01839e0hp8z3ni
Tags: 2:1.1-1ubuntu1
016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
// license that can be found in the LICENSE file.
4
4
 
5
5
#include "runtime.h"
 
6
#include "defs_GOOS_GOARCH.h"
6
7
#include "arch_GOARCH.h"
7
8
#include "malloc.h"
8
9
#include "os_GOOS.h"
13
14
 
14
15
enum
15
16
{
16
 
        Round = 4095
 
17
        Round = PAGESIZE-1
17
18
};
18
19
 
19
20
void*
20
21
runtime·SysAlloc(uintptr nbytes)
21
22
{
22
23
        uintptr bl;
23
 
        
 
24
 
24
25
        runtime·lock(&memlock);
25
26
        mstats.sys += nbytes;
26
27
        // Plan 9 sbrk from /sys/src/libc/9sys/sbrk.c