summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/windows/mem.c
blob: 982344fa0577feaa51fb1642e2f19af694f8cd69 (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
29
// 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.

#include "runtime.h"
#include "os.h"
#include "defs.h"
#include "malloc.h"

void*
SysAlloc(uintptr n)
{
	return stdcall(VirtualAlloc, 4, nil, n, 0x3000, 0x40);
}

void
SysUnused(void *v, uintptr n)
{
	USED(v);
	USED(n);
}

void
SysFree(void *v, uintptr n)
{
	USED(v);
	USED(n);
}