aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/include')
-rw-r--r--arch/um/include/chan_kern.h2
-rw-r--r--arch/um/include/chan_user.h5
-rw-r--r--arch/um/include/common-offsets.h3
-rw-r--r--arch/um/include/os.h6
-rw-r--r--arch/um/include/um_malloc.h12
5 files changed, 17 insertions, 11 deletions
diff --git a/arch/um/include/chan_kern.h b/arch/um/include/chan_kern.h
index c4b41bb1035f..624b5100a3cd 100644
--- a/arch/um/include/chan_kern.h
+++ b/arch/um/include/chan_kern.h
@@ -40,7 +40,7 @@ extern int console_open_chan(struct line *line, struct console *co);
40extern void deactivate_chan(struct list_head *chans, int irq); 40extern void deactivate_chan(struct list_head *chans, int irq);
41extern void reactivate_chan(struct list_head *chans, int irq); 41extern void reactivate_chan(struct list_head *chans, int irq);
42extern void chan_enable_winch(struct list_head *chans, struct tty_struct *tty); 42extern void chan_enable_winch(struct list_head *chans, struct tty_struct *tty);
43extern void enable_chan(struct line *line); 43extern int enable_chan(struct line *line);
44extern void close_chan(struct list_head *chans, int delay_free_irq); 44extern void close_chan(struct list_head *chans, int delay_free_irq);
45extern int chan_window_size(struct list_head *chans, 45extern int chan_window_size(struct list_head *chans,
46 unsigned short *rows_out, 46 unsigned short *rows_out,
diff --git a/arch/um/include/chan_user.h b/arch/um/include/chan_user.h
index 38f16d812e7c..5a2263e05bb2 100644
--- a/arch/um/include/chan_user.h
+++ b/arch/um/include/chan_user.h
@@ -12,8 +12,6 @@ struct chan_opts {
12 void (*const announce)(char *dev_name, int dev); 12 void (*const announce)(char *dev_name, int dev);
13 char *xterm_title; 13 char *xterm_title;
14 const int raw; 14 const int raw;
15 const unsigned long tramp_stack;
16 const int in_kernel;
17}; 15};
18 16
19enum chan_init_pri { INIT_STATIC, INIT_ALL, INIT_ONE }; 17enum chan_init_pri { INIT_STATIC, INIT_ALL, INIT_ONE };
@@ -44,7 +42,8 @@ extern void generic_free(void *data);
44 42
45struct tty_struct; 43struct tty_struct;
46extern void register_winch(int fd, struct tty_struct *tty); 44extern void register_winch(int fd, struct tty_struct *tty);
47extern void register_winch_irq(int fd, int tty_fd, int pid, struct tty_struct *tty); 45extern void register_winch_irq(int fd, int tty_fd, int pid,
46 struct tty_struct *tty, unsigned long stack);
48 47
49#define __channel_help(fn, prefix) \ 48#define __channel_help(fn, prefix) \
50__uml_help(fn, prefix "[0-9]*=<channel description>\n" \ 49__uml_help(fn, prefix "[0-9]*=<channel description>\n" \
diff --git a/arch/um/include/common-offsets.h b/arch/um/include/common-offsets.h
index 7376ee44e330..6eee343e53eb 100644
--- a/arch/um/include/common-offsets.h
+++ b/arch/um/include/common-offsets.h
@@ -27,6 +27,9 @@ DEFINE(UM_ELFCLASS64, ELFCLASS64);
27 27
28DEFINE(UM_NR_CPUS, NR_CPUS); 28DEFINE(UM_NR_CPUS, NR_CPUS);
29 29
30DEFINE(UM_GFP_KERNEL, GFP_KERNEL);
31DEFINE(UM_GFP_ATOMIC, GFP_ATOMIC);
32
30/* For crypto assembler code. */ 33/* For crypto assembler code. */
31DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx)); 34DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx));
32 35
diff --git a/arch/um/include/os.h b/arch/um/include/os.h
index 4d9fb26387d5..930b261ea483 100644
--- a/arch/um/include/os.h
+++ b/arch/um/include/os.h
@@ -239,11 +239,9 @@ extern unsigned long __do_user_copy(void *to, const void *from, int n,
239/* execvp.c */ 239/* execvp.c */
240extern int execvp_noalloc(char *buf, const char *file, char *const argv[]); 240extern int execvp_noalloc(char *buf, const char *file, char *const argv[]);
241/* helper.c */ 241/* helper.c */
242extern int run_helper(void (*pre_exec)(void *), void *pre_data, char **argv, 242extern int run_helper(void (*pre_exec)(void *), void *pre_data, char **argv);
243 unsigned long *stack_out);
244extern int run_helper_thread(int (*proc)(void *), void *arg, 243extern int run_helper_thread(int (*proc)(void *), void *arg,
245 unsigned int flags, unsigned long *stack_out, 244 unsigned int flags, unsigned long *stack_out);
246 int stack_order);
247extern int helper_wait(int pid); 245extern int helper_wait(int pid);
248 246
249 247
diff --git a/arch/um/include/um_malloc.h b/arch/um/include/um_malloc.h
index e6d7c5aa3f4e..0ad17cb83d96 100644
--- a/arch/um/include/um_malloc.h
+++ b/arch/um/include/um_malloc.h
@@ -6,11 +6,17 @@
6#ifndef __UM_MALLOC_H__ 6#ifndef __UM_MALLOC_H__
7#define __UM_MALLOC_H__ 7#define __UM_MALLOC_H__
8 8
9extern void *um_kmalloc(int size); 9#include "kern_constants.h"
10extern void *um_kmalloc_atomic(int size); 10
11extern void *__kmalloc(int size, int flags);
12static inline void *kmalloc(int size, int flags)
13{
14 return __kmalloc(size, flags);
15}
16
11extern void kfree(const void *ptr); 17extern void kfree(const void *ptr);
12 18
13extern void *um_vmalloc(int size); 19extern void *vmalloc(unsigned long size);
14extern void vfree(void *ptr); 20extern void vfree(void *ptr);
15 21
16#endif /* __UM_MALLOC_H__ */ 22#endif /* __UM_MALLOC_H__ */