~ubuntu-branches/ubuntu/vivid/qemu/vivid

« back to all changes in this revision

Viewing changes to .pc/ubuntu/arm64/0004-hw-arm-boot-Allow-boards-to-provide-an-fdt-blob.patch/include/hw/arm/arm.h

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2014-02-25 22:31:43 UTC
  • mfrom: (1.8.5)
  • Revision ID: package-import@ubuntu.com-20140225223143-odhqxfc60wxrjl15
Tags: 2.0.0~rc1+dfsg-0ubuntu1
* Merge 2.0.0-rc1
* debian/rules: consolidate ppc filter entries.
* Move qemu-system-arch64 into qemu-system-arm
* debian/patches/define-trusty-machine-type.patch: define a trusty machine
  type, currently the same as pc-i440fx-2.0, to put is in a better position
  to enable live migrations from trusty onward.  (LP: #1294823)
* debian/control: build-dep on libfdt >= 1.4.0  (LP: #1295072)
* Merge latest upstream git to commit dc9528f
* Debian/rules:
  - remove -enable-uname-release=2.6.32
  - don't make the aarch64 target Ubuntu-specific.
* Remove patches which are now upstream:
  - fix-smb-security-share.patch
  - slirp-smb-redirect-port-445-too.patch 
  - linux-user-Implement-sendmmsg-syscall.patch (better version is upstream)
  - signal-added-a-wrapper-for-sigprocmask-function.patch
  - ubuntu/signal-sigsegv-protection-on-do_sigprocmask.patch
  - ubuntu/Don-t-block-SIGSEGV-at-more-places.patch
  - ubuntu/ppc-force-cpu-threads-count-to-be-power-of-2.patch
* add link for /usr/share/qemu/bios-256k.bin
* Remove all linaro patches.
* Remove all arm64/ patches.  Many but not all are upstream.
* Remove CVE-2013-4377.patch which is upstream.
* debian/control-in: don't make qemu-system-aarch64 ubuntu-specific

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Misc ARM declarations
3
 
 *
4
 
 * Copyright (c) 2006 CodeSourcery.
5
 
 * Written by Paul Brook
6
 
 *
7
 
 * This code is licensed under the LGPL.
8
 
 *
9
 
 */
10
 
 
11
 
#ifndef ARM_MISC_H
12
 
#define ARM_MISC_H 1
13
 
 
14
 
#include "exec/memory.h"
15
 
#include "hw/irq.h"
16
 
 
17
 
/* armv7m.c */
18
 
qemu_irq *armv7m_init(MemoryRegion *address_space_mem,
19
 
                      int flash_size, int sram_size,
20
 
                      const char *kernel_filename, const char *cpu_model);
21
 
 
22
 
/* arm_boot.c */
23
 
struct arm_boot_info {
24
 
    uint64_t ram_size;
25
 
    const char *kernel_filename;
26
 
    const char *kernel_cmdline;
27
 
    const char *initrd_filename;
28
 
    const char *dtb_filename;
29
 
    hwaddr loader_start;
30
 
    /* multicore boards that use the default secondary core boot functions
31
 
     * need to put the address of the secondary boot code, the boot reg,
32
 
     * and the GIC address in the next 3 values, respectively. boards that
33
 
     * have their own boot functions can use these values as they want.
34
 
     */
35
 
    hwaddr smp_loader_start;
36
 
    hwaddr smp_bootreg_addr;
37
 
    hwaddr gic_cpu_if_addr;
38
 
    int nb_cpus;
39
 
    int board_id;
40
 
    int (*atag_board)(const struct arm_boot_info *info, void *p);
41
 
    /* multicore boards that use the default secondary core boot functions
42
 
     * can ignore these two function calls. If the default functions won't
43
 
     * work, then write_secondary_boot() should write a suitable blob of
44
 
     * code mimicking the secondary CPU startup process used by the board's
45
 
     * boot loader/boot ROM code, and secondary_cpu_reset_hook() should
46
 
     * perform any necessary CPU reset handling and set the PC for the
47
 
     * secondary CPUs to point at this boot blob.
48
 
     */
49
 
    void (*write_secondary_boot)(ARMCPU *cpu,
50
 
                                 const struct arm_boot_info *info);
51
 
    void (*secondary_cpu_reset_hook)(ARMCPU *cpu,
52
 
                                     const struct arm_boot_info *info);
53
 
    /* if a board needs to be able to modify a device tree provided by
54
 
     * the user it should implement this hook.
55
 
     */
56
 
    void (*modify_dtb)(const struct arm_boot_info *info, void *fdt);
57
 
    /* Used internally by arm_boot.c */
58
 
    int is_linux;
59
 
    hwaddr initrd_start;
60
 
    hwaddr initrd_size;
61
 
    hwaddr entry;
62
 
};
63
 
void arm_load_kernel(ARMCPU *cpu, struct arm_boot_info *info);
64
 
 
65
 
/* Multiplication factor to convert from system clock ticks to qemu timer
66
 
   ticks.  */
67
 
extern int system_clock_scale;
68
 
 
69
 
#endif /* !ARM_MISC_H */