Skip to content

Commit 661faf3

Browse files
committed
parisc: Add constants for PDC_RELOCATE PDC call
The PDC_RELOCATE function is called by HP-UX shortly before crashing. So, we need to handle it in qemu and thus it makes sense to add the constant here. Additionally add other subfunctions like PDC_MODEL_GET_PLATFORM_INFO (to get product and serial numbers) and PDC_TOD_CALIBRATE (to calibrate timers) too. Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 3b26fda commit 661faf3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • arch/parisc/include/uapi/asm

‎arch/parisc/include/uapi/asm/pdc.h‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
#define PDC_MODEL_NVA_UNSUPPORTED (3 << 4)
6161
#define PDC_MODEL_GET_BOOT__OP 8 /* returns boot test options */
6262
#define PDC_MODEL_SET_BOOT__OP 9 /* set boot test options */
63+
#define PDC_MODEL_GET_PLATFORM_INFO 10 /* returns platform info */
6364

6465
#define PA89_INSTRUCTION_SET 0x4 /* capabilities returned */
6566
#define PA90_INSTRUCTION_SET 0x8
@@ -99,7 +100,7 @@
99100
#define PDC_TOD 9 /* time-of-day clock (TOD) */
100101
#define PDC_TOD_READ 0 /* read TOD */
101102
#define PDC_TOD_WRITE 1 /* write TOD */
102-
103+
#define PDC_TOD_CALIBRATE 2 /* calibrate timers */
103104

104105
#define PDC_STABLE 10 /* stable storage (sprockets) */
105106
#define PDC_STABLE_READ 0
@@ -261,6 +262,10 @@
261262
#define PDC_PCI_READ_MON_TYPE 15
262263
#define PDC_PCI_WRITE_MON_TYPE 16
263264

265+
#define PDC_RELOCATE 149 /* (sprockets) */
266+
#define PDC_RELOCATE_GET_RELOCINFO 0
267+
#define PDC_RELOCATE_CHECKSUM 1
268+
#define PDC_RELOCATE_RELOCATE 2
264269

265270
/* Get SCSI Interface Card info: SDTR, SCSI ID, mode (SE vs LVD) */
266271
#define PDC_INITIATOR 163

0 commit comments

Comments
 (0)