Commit 14516324 authored by Richard Henderson's avatar Richard Henderson Committed by Richard Henderson

Fix up Alpha for initramfs changes.

parent 2e95d1fa
...@@ -12,6 +12,7 @@ NM := $(NM) -B ...@@ -12,6 +12,7 @@ NM := $(NM) -B
LDFLAGS_vmlinux = -static -N #-relax LDFLAGS_vmlinux = -static -N #-relax
CFLAGS := $(CFLAGS) -pipe -mno-fp-regs -ffixed-8 CFLAGS := $(CFLAGS) -pipe -mno-fp-regs -ffixed-8
ARCHBLOBLFLAGS := -I binary -O elf64-alpha -B alpha
# Determine if we can use the BWX instructions with GAS. # Determine if we can use the BWX instructions with GAS.
old_gas := $(shell if $(AS) --version 2>&1 | grep 'version 2.7' > /dev/null; then echo y; else echo n; fi) old_gas := $(shell if $(AS) --version 2>&1 | grep 'version 2.7' > /dev/null; then echo y; else echo n; fi)
......
...@@ -67,6 +67,12 @@ SECTIONS ...@@ -67,6 +67,12 @@ SECTIONS
__initcall_end = .; __initcall_end = .;
} }
.init.ramfs ALIGN(8192): {
__initramfs_start = .;
*(.init.initramfs)
__initramfs_end = .;
}
.data.percpu ALIGN(64): { .data.percpu ALIGN(64): {
__per_cpu_start = .; __per_cpu_start = .;
*(.data.percpu) *(.data.percpu)
......
...@@ -552,9 +552,9 @@ static inline long close(int fd) ...@@ -552,9 +552,9 @@ static inline long close(int fd)
} }
extern off_t sys_lseek(int, off_t, int); extern off_t sys_lseek(int, off_t, int);
static inline off_t lseek(int fd, off_t off, int whense) static inline off_t lseek(int fd, off_t off, int whence)
{ {
return sys_lseek(fd, off, whense); return sys_lseek(fd, off, whence);
} }
extern long sys_exit(int); extern long sys_exit(int);
...@@ -565,14 +565,14 @@ static inline long _exit(int value) ...@@ -565,14 +565,14 @@ static inline long _exit(int value)
#define exit(x) _exit(x) #define exit(x) _exit(x)
extern long sys_write(int, const char *, int); extern long sys_write(int, const char *, size_t);
static inline long write(int fd, const char * buf, int nr) static inline long write(int fd, const char * buf, size_t nr)
{ {
return sys_write(fd, buf, nr); return sys_write(fd, buf, nr);
} }
extern long sys_read(int, char *, int); extern long sys_read(int, char *, size_t);
static inline long read(int fd, char * buf, int nr) static inline long read(int fd, char * buf, size_t nr)
{ {
return sys_read(fd, buf, nr); return sys_read(fd, buf, nr);
} }
......
...@@ -26,7 +26,7 @@ asmlinkage long sys_mkdir(char *name, int mode); ...@@ -26,7 +26,7 @@ asmlinkage long sys_mkdir(char *name, int mode);
asmlinkage long sys_mknod(char *name, int mode, dev_t dev); asmlinkage long sys_mknod(char *name, int mode, dev_t dev);
asmlinkage long sys_symlink(char *old, char *new); asmlinkage long sys_symlink(char *old, char *new);
asmlinkage long sys_link(char *old, char *new); asmlinkage long sys_link(char *old, char *new);
asmlinkage long sys_write(int fd, void *buf, ssize_t size); asmlinkage long sys_write(int fd, const char *buf, size_t size);
asmlinkage long sys_chown(char *name, uid_t uid, gid_t gid); asmlinkage long sys_chown(char *name, uid_t uid, gid_t gid);
asmlinkage long sys_lchown(char *name, uid_t uid, gid_t gid); asmlinkage long sys_lchown(char *name, uid_t uid, gid_t gid);
asmlinkage long sys_fchown(int fd, uid_t uid, gid_t gid); asmlinkage long sys_fchown(int fd, uid_t uid, gid_t gid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment