Changeset 7d3d641 in mainline for kernel/arch/xen32/include
- Timestamp:
- 2006-08-01T20:45:26Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5b23a82
- Parents:
- 3e5cc686
- Location:
- kernel/arch/xen32/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/xen32/include/asm.h
r3e5cc686 r7d3d641 273 273 } 274 274 275 /** Load IDTR register from memory.276 *277 * @param idtr_reg Address of memory from where to load IDTR.278 */279 static inline void idtr_load(ptr_16_32_t *idtr_reg)280 {281 __asm__ volatile ("lidtl %0\n" : : "m" (*idtr_reg));282 }283 284 275 /** Load TR from descriptor table. 285 276 * -
kernel/arch/xen32/include/boot/boot.h
r3e5cc686 r7d3d641 41 41 42 42 #define BOOT_OFFSET 0x0000 43 #define TEMP_STACK_SIZE 0x1000 44 43 45 #define XEN_VIRT_START 0xFC000000 44 45 #define TEMP_STACK_SIZE 0x1000 46 #define XEN_CS 0xe019 46 47 47 48 #ifndef __ASM__ -
kernel/arch/xen32/include/hypercall.h
r3e5cc686 r7d3d641 37 37 38 38 39 typedef struct { 40 uint8_t vector; /**< Exception vector */ 41 uint8_t flags; /**< 0-3: privilege level; 4: clear event enable */ 42 uint16_t cs; /**< Code selector */ 43 uintptr_t address; /**< Code offset */ 44 } trap_info_t; 45 46 47 #define XEN_SET_TRAP_TABLE 0 39 48 #define XEN_MMU_UPDATE 1 49 #define XEN_SET_CALLBACKS 4 40 50 #define XEN_UPDATE_VA_MAPPING 14 41 51 #define XEN_CONSOLE_IO 18 … … 199 209 } 200 210 211 static inline int xen_set_callbacks(const unsigned int event_selector, const void *event_address, const unsigned int failsafe_selector, void *failsafe_address) 212 { 213 return hypercall4(XEN_SET_CALLBACKS, event_selector, event_address, failsafe_selector, failsafe_address); 214 } 215 216 static inline int xen_set_trap_table(const trap_info_t *table) 217 { 218 return hypercall1(XEN_SET_TRAP_TABLE, table); 219 } 220 201 221 #endif -
kernel/arch/xen32/include/pm.h
r3e5cc686 r7d3d641 93 93 typedef struct descriptor descriptor_t; 94 94 95 struct idescriptor {96 unsigned offset_0_15: 16;97 unsigned selector: 16;98 unsigned unused: 8;99 unsigned access: 8;100 unsigned offset_16_31: 16;101 } __attribute__ ((packed));102 typedef struct idescriptor idescriptor_t;103 104 95 struct tss { 105 96 uint16_t link; … … 157 148 extern void gdt_setlimit(descriptor_t *d, uint32_t limit); 158 149 159 extern void idt_init(void); 160 extern void idt_setoffset(idescriptor_t *d, uintptr_t offset); 150 extern void traps_init(void); 161 151 162 152 extern void tss_initialize(tss_t *t);
Note:
See TracChangeset
for help on using the changeset viewer.