Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39957
b: refs/heads/master
c: c13e569
h: refs/heads/master
i:
  39955: f94dea0
v: v3
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed Oct 20, 2006
1 parent 5533871 commit 5c17688
Show file tree
Hide file tree
Showing 20 changed files with 34 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02a5323d8060d7259277e9e2936fd02129dc0984
refs/heads/master: c13e569073b89eb75216a2551e89ae93ad1f9951
1 change: 1 addition & 0 deletions trunk/arch/um/drivers/cow_sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "user_util.h"
#include "os.h"
#include "user.h"
#include "um_malloc.h"

static inline void *cow_malloc(int size)
{
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/drivers/daemon_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "user_util.h"
#include "user.h"
#include "os.h"
#include "um_malloc.h"

#define MAX_PACKET (ETH_MAX_PACKET + ETH_HEADER_OTHER)

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/drivers/fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "user_util.h"
#include "chan_user.h"
#include "os.h"
#include "um_malloc.h"

struct fd_chan {
int fd;
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/drivers/mcast_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "user_util.h"
#include "user.h"
#include "os.h"
#include "um_malloc.h"

#define MAX_PACKET (ETH_MAX_PACKET + ETH_HEADER_OTHER)

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/drivers/net_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "kern_util.h"
#include "net_user.h"
#include "os.h"
#include "um_malloc.h"

int tap_open_common(void *dev, char *gate_addr)
{
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/drivers/pcap_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "net_user.h"
#include "pcap_user.h"
#include "user.h"
#include "um_malloc.h"

#define MAX_PACKET (ETH_MAX_PACKET + ETH_HEADER_OTHER)

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/drivers/port_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "chan_user.h"
#include "port.h"
#include "os.h"
#include "um_malloc.h"

struct port_chan {
int raw;
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/drivers/pty.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "user_util.h"
#include "kern_util.h"
#include "os.h"
#include "um_malloc.h"

struct pty_chan {
void (*announce)(char *dev_name, int dev);
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/drivers/slip_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "slip.h"
#include "slip_common.h"
#include "os.h"
#include "um_malloc.h"

void slip_user_init(void *data, void *dev)
{
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/drivers/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "user_util.h"
#include "user.h"
#include "os.h"
#include "um_malloc.h"

struct tty_chan {
char *dev;
Expand Down
17 changes: 17 additions & 0 deletions trunk/arch/um/include/um_malloc.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright (C) 2005 Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
* Licensed under the GPL
*/

#ifndef __UM_MALLOC_H__
#define __UM_MALLOC_H__

extern void *um_kmalloc(int size);
extern void *um_kmalloc_atomic(int size);
extern void kfree(const void *ptr);

extern void *um_vmalloc(int size);
extern void *um_vmalloc_atomic(int size);
extern void vfree(void *ptr);

#endif /* __UM_MALLOC_H__ */
6 changes: 0 additions & 6 deletions trunk/arch/um/include/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,11 @@ extern void panic(const char *fmt, ...)
extern int printk(const char *fmt, ...)
__attribute__ ((format (printf, 1, 2)));
extern void schedule(void);
extern void *um_kmalloc(int size);
extern void *um_kmalloc_atomic(int size);
extern void kfree(void *ptr);
extern int in_aton(char *str);
extern int open_gdb_chan(void);
/* These use size_t, however unsigned long is correct on both i386 and x86_64. */
extern unsigned long strlcpy(char *, const char *, unsigned long);
extern unsigned long strlcat(char *, const char *, unsigned long);
extern void *um_vmalloc(int size);
extern void *um_vmalloc_atomic(int size);
extern void vfree(void *ptr);

#endif

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/um/include/user_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ extern int linux_main(int argc, char **argv);
extern void set_cmdline(char *cmd);
extern void input_cb(void (*proc)(void *), void *arg, int arg_len);
extern int get_pty(void);
extern void *um_kmalloc(int size);
extern int switcheroo(int fd, int prot, void *from, void *to, int size);
extern void do_exec(int old_pid, int new_pid);
extern void tracer_panic(char *msg, ...)
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "irq_kern.h"
#include "os.h"
#include "sigio.h"
#include "um_malloc.h"
#include "misc_constants.h"

/*
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "mode.h"
#include "mode_kern.h"
#include "choose-mode.h"
#include "um_malloc.h"

/* This is a per-cpu array. A processor only modifies its entry and it only
* cares about its entry, so it's OK if another processor is modifying its
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/os-Linux/drivers/ethertap_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "net_user.h"
#include "etap.h"
#include "os.h"
#include "um_malloc.h"

#define MAX_PACKET ETH_MAX_PACKET

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/os-Linux/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "sigio.h"
#include "irq_user.h"
#include "os.h"
#include "um_malloc.h"

static struct pollfd *pollfds = NULL;
static int pollfds_num = 0;
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/os-Linux/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "choose-mode.h"
#include "uml-config.h"
#include "os.h"
#include "um_malloc.h"

/* Set in set_stklim, which is called from main and __wrap_malloc.
* __wrap_malloc only calls it if main hasn't started.
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/os-Linux/sigio.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "user_util.h"
#include "sigio.h"
#include "os.h"
#include "um_malloc.h"

/* Protected by sigio_lock(), also used by sigio_cleanup, which is an
* exitcall.
Expand Down

0 comments on commit 5c17688

Please sign in to comment.