{"id":1390,"date":"2012-03-02T16:44:15","date_gmt":"2012-03-01T22:44:15","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=1390"},"modified":"2012-03-14T11:21:49","modified_gmt":"2012-03-14T02:21:49","slug":"xv6%e3%82%bd%e3%83%bc%e3%82%b9%e3%82%b3%e3%83%bc%e3%83%89%e3%83%aa%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0-%e3%81%9d%e3%81%ae26","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/1390","title":{"rendered":"[xv6 #26] Chapter 2 &#8211; Traps, interrupts, and drivers &#8211; Code: C trap handler"},"content":{"rendered":"<p>\u30c6\u30ad\u30b9\u30c8\u306e36\u30da\u30fc\u30b8<\/p>\n<h3>\u672c\u6587<\/h3>\n<p>\u6211\u3005\u306f\u524d\u7bc0\u3067\u3001\u3069\u306e\u30cf\u30f3\u30c9\u30e9\u3082\u30c8\u30e9\u30c3\u30d7\u30d5\u30ec\u30fc\u30e0\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3001\u305d\u3057\u3066C\u306e\u95a2\u6570\u3067\u3042\u308btrap\u3092\u547c\u3076\u3068\u3053\u308d\u3092\u898b\u3066\u304d\u305f\u3002<br \/>\ntrap\u95a2\u6570\u306f\u3001\u306a\u305c\u547c\u3070\u308c\u4f55\u3092\u3059\u3079\u304d\u304b\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30c8\u30e9\u30c3\u30d7\u756a\u53f7tf-&gt;trapno\u3092\u898b\u308b\u3002<br \/>\n\u3082\u3057\u305d\u306e\u30c8\u30e9\u30c3\u30d7\u304cT_SYSCALL\u306a\u3089\u3001trap\u95a2\u6570\u306f\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u306e\u30cf\u30f3\u30c9\u30e9\u3067\u3042\u308bsyscall\u95a2\u6570\u3092\u547c\u3076\u3002<br \/>\n\u6211\u3005\u306f\u3001\u7b2c4\u7ae0\u30672\u3064\u306eproc-&gt;killed\uff08\u539f\u6587\u3067\u306fcp-&gt;killed\u306b\u306a\u3063\u3066\u308b\u3051\u3069\u591a\u5206\u9593\u9055\u3044\uff09\u306b\u3064\u3044\u3066\u518d\u691c\u8a0e\u3059\u308b\u4e88\u5b9a\u3067\u3042\u308b\u3002<\/p>\n<p>trap.c\u306etrap\u95a2\u6570<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">void\ntrap(struct trapframe *tf)\n{\n  if(tf-&gt;trapno == T_SYSCALL){\n    if(proc-&gt;killed)\n      exit();\n    proc-&gt;tf = tf;\n    syscall();\n    if(proc-&gt;killed)\n      exit();\n    return;\n  }\n\n  switch(tf-&gt;trapno){\n  case T_IRQ0 + IRQ_TIMER:\n    if(cpu-&gt;id == 0){\n      acquire(&amp;tickslock);\n      ticks++;\n      wakeup(&amp;ticks);\n      release(&amp;tickslock);\n    }\n    lapiceoi();\n    break;\n  case T_IRQ0 + IRQ_IDE:\n    ideintr();\n    lapiceoi();\n    break;\n  case T_IRQ0 + IRQ_IDE+1:\n    \/\/ Bochs generates spurious IDE1 interrupts.\n    break;\n  case T_IRQ0 + IRQ_KBD:\n    kbdintr();\n    lapiceoi();\n    break;\n  case T_IRQ0 + IRQ_COM1:\n    uartintr();\n    lapiceoi();\n    break;\n  case T_IRQ0 + 7:\n  case T_IRQ0 + IRQ_SPURIOUS:\n    cprintf(&quot;cpu%d: spurious interrupt at %x:%x\\n&quot;,\n            cpu-&gt;id, tf-&gt;cs, tf-&gt;eip);\n    lapiceoi();\n    break;\n   \n  \/\/PAGEBREAK: 13\n  default:\n    if(proc == 0 || (tf-&gt;cs&amp;3) == 0){\n      \/\/ In kernel, it must be our mistake.\n      cprintf(&quot;unexpected trap %d from cpu %d eip %x (cr2=0x%x)\\n&quot;,\n              tf-&gt;trapno, cpu-&gt;id, tf-&gt;eip, rcr2());\n      panic(&quot;trap&quot;);\n    }\n    \/\/ In user space, assume process misbehaved.\n    cprintf(&quot;pid %d %s: trap %d err %d on cpu %d &quot;\n            &quot;eip 0x%x addr 0x%x--kill proc\\n&quot;,\n            proc-&gt;pid, proc-&gt;name, tf-&gt;trapno, tf-&gt;err, cpu-&gt;id, tf-&gt;eip, \n            rcr2());\n    proc-&gt;killed = 1;\n  }\n\n  \/\/ Force process exit if it has been killed and is in user space.\n  \/\/ (If it is still executing in the kernel, let it keep running \n  \/\/ until it gets to the regular system call return.)\n  if(proc &amp;&amp; proc-&gt;killed &amp;&amp; (tf-&gt;cs&amp;3) == DPL_USER)\n    exit();\n\n  \/\/ Force process to give up CPU on clock tick.\n  \/\/ If interrupts were on while locks held, would need to check nlock.\n  if(proc &amp;&amp; proc-&gt;state == RUNNING &amp;&amp; tf-&gt;trapno == T_IRQ0+IRQ_TIMER)\n    yield();\n\n  \/\/ Check if the process has been killed since we yielded\n  if(proc &amp;&amp; proc-&gt;killed &amp;&amp; (tf-&gt;cs&amp;3) == DPL_USER)\n    exit();\n}<\/pre>\n<p>\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u306e\u70ba\u306e\u30c1\u30a7\u30c3\u30af\u306e\u5f8c\u3001trap\u95a2\u6570\u306f\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u5272\u308a\u8fbc\u307f\u3092\u898b\u308b\u3002\uff08\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u5f8c\u3067\u8aac\u660e\u3059\u308b\u3002\uff09<br \/>\n\u4e88\u671f\u3055\u308c\u305f\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30c7\u30d0\u30a4\u30b9\u306b\u52a0\u3048\u3066\u3001trap\u95a2\u6570\u306f\u64ec\u4f3c\u5272\u308a\u8fbc\u307f\uff08\u4e0d\u5fc5\u8981\u306a\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u5272\u308a\u8fbc\u307f\uff09\u306b\u3088\u3063\u3066\u3082\u5f15\u304d\u8d77\u3053\u3055\u308c\u308b\u3002<\/p>\n<p>\u3082\u3057\u30c8\u30e9\u30c3\u30d7\u304c\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u3084\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30c7\u30d0\u30a4\u30b9\u306e\u5272\u308a\u8fbc\u307f\u3067\u306a\u3051\u308c\u3070\u3001trap\u95a2\u6570\u306f\u305d\u308c\u3092\u30c8\u30e9\u30c3\u30d7\u306e\u524d\u306b\u5b9f\u884c\u3055\u308c\u3066\u305f\u30b3\u30fc\u30c9\u306e\u4e00\u90e8\u306b\u3088\u308b\u304a\u304b\u3057\u306a\u51e6\u7406\uff08\u4f8b\u3048\u3070\u30bc\u30ed\u9664\u7b97\uff09\u306b\u3088\u3063\u3066\u5f15\u304d\u8d77\u3053\u3055\u308c\u305f\u3082\u306e\u3060\u3068\u4eee\u5b9a\u3059\u308b\u3002<br \/>\n\u3082\u3057\u3001\u305d\u306e\u30c8\u30e9\u30c3\u30d7\u3092\u5f15\u304d\u8d77\u3053\u3057\u305f\u30b3\u30fc\u30c9\u304c\u30e6\u30fc\u30b6\u30d7\u30ed\u30b0\u30e9\u30e0\u306a\u3089\u3001xv6\u306f\u8a73\u7d30\u3092\u5370\u5b57\u3057\u3001\u305d\u3057\u3066\u305d\u306e\u30e6\u30fc\u30b6\u30d7\u30ed\u30bb\u30b9\u3092\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3059\u308b\u4e8b\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306bproc-&gt;killed\uff08\u539f\u6587\u3067\u306fcp-&gt;killed\uff09\u3092\u30bb\u30c3\u30c8\u3059\u308b\u3002<br \/>\n\u6211\u3005\u306f\u3001\u7b2c4\u7ae0\u3067xv6\u304c\u3069\u3046\u3084\u3063\u3066\u3053\u306e\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3092\u5b9f\u884c\u3059\u308b\u304b\u3092\u898b\u308b\u4e88\u5b9a\u3067\u3042\u308b\u3002<\/p>\n<p>\u3082\u3057\u3001\u305d\u308c\u304c\u30ab\u30fc\u30cd\u30eb\u306e\u5b9f\u884c\u4e2d\u306a\u3089\u3001\u30ab\u30fc\u30cd\u30eb\u306e\u30d0\u30b0\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3002<br \/>\ntrap\u95a2\u6570\u306f\u3001\u305d\u306e\u9a5a\u304d\u306b\u3064\u3044\u3066\u8a73\u7d30\u3092\u5370\u5b57\u3057\u3001\u305d\u3057\u3066panic\u95a2\u6570\u3092\u547c\u3076\u3002<\/p>\n<h3>\u611f\u60f3<\/h3>\n<p>trap\u95a2\u6570\u3067\u306ftf-&gt;trapno\u3067\u51e6\u7406\u3092\u5272\u308a\u632f\u308b\u3068\u3044\u3046\u8a71\u3067\u3059\u3002<\/p>\n<p>cp-&gt;killed\u3068proc-&gt;killed\u306b\u3064\u3044\u3066\u306f\u3001git\u306e\u30ed\u30b0\u3092\u8abf\u3079\u305f\u3068\u3053\u308d2009\/8\/31\u306brename c\/cp to cpu\/proc\u3068\u3044\u3046\u30b3\u30e1\u30f3\u30c8\u3092\u542b\u3093\u3060\u30b3\u30df\u30c3\u30c8\u304c\u3042\u308a\u305d\u3053\u3067cp\u304b\u3089proc\u306b\u5909\u66f4\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u672c\u6587\u304c\u9593\u9055\u3063\u3066\u308b\uff08\u53e4\u3044\u307e\u307e\u6b8b\u3063\u3066\u308b\uff09\u306e\u3060\u308d\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c6\u30ad\u30b9\u30c8\u306e36\u30da\u30fc\u30b8<\/p>\n<h3>\u672c\u6587<\/h3>\n<p>\u6211\u3005\u306f\u524d\u7bc0\u3067\u3001\u3069\u306e\u30cf\u30f3\u30c9\u30e9\u3082\u30c8\u30e9\u30c3\u30d7\u30d5\u30ec\u30fc\u30e0\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3001\u305d\u3057\u3066C\u306e\u95a2\u6570\u3067\u3042\u308btrap\u3092\u547c\u3076\u3068\u3053\u308d\u3092\u898b\u3066\u304d\u305f\u3002<br \/>\ntrap\u95a2\u6570\u306f\u3001\u306a\u305c\u547c\u3070\u308c\u4f55\u3092\u3059\u3079\u304d\u304b\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30c8\u30e9\u30c3\u30d7\u756a\u53f7tf-&gt;trapno\u3092\u898b\u308b\u3002<br \/>\n\u3082\u3057\u305d\u306e\u30c8\u30e9\u30c3\u30d7\u304cT_SYSCALL\u306a\u3089\u3001trap\u95a2\u6570\u306f\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u306e\u30cf\u30f3\u30c9\u30e9\u3067\u3042\u308bsyscall\u95a2\u6570\u3092\u547c\u3076\u3002<br \/>\n\u6211\u3005\u306f\u3001\u7b2c4\u7ae0\u30672\u3064\u306eproc-&gt;killed\uff08\u539f\u6587\u3067\u306fcp-&gt;killed\u306b\u306a\u3063\u3066\u308b\u3051\u3069\u591a\u5206\u9593\u9055\u3044\uff09\u306b\u3064\u3044\u3066\u518d\u691c\u8a0e\u3059\u308b\u4e88\u5b9a\u3067\u3042\u308b\u3002<\/p>\n<p>trap.c\u306etrap\u95a2\u6570<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">void\ntrap(struct trapframe *tf)\n{\n  if(tf-&gt;trapno == T_SYSCALL){\n    if(proc-&gt;killed)\n      exit();\n    proc-&gt;tf = tf;\n    syscall();\n    if(proc-&gt;killed)\n      exit();\n    return;\n  }\n\n  switch(tf-&gt;trapno){\n  case T_IRQ0 + IRQ_TIMER:\n    if(cpu-&gt;id == 0){\n      acquire(&amp;tickslock);\n      ticks++;\n      wakeup(&amp;ticks);\n      release(&amp;tickslock);\n    }\n    lapiceoi();\n    break;\n  case T_IRQ0 + IRQ_IDE:\n    ideintr();\n    lapiceoi();\n    break;\n  case T_IRQ0 + IRQ_IDE+1:\n    \/\/ Bochs generates spurious IDE1 interrupts.\n    break;\n  case T_IRQ0 + IRQ_KBD:\n    kbdintr();\n    lapiceoi();\n    break;\n  case T_IRQ0 + IRQ_COM1:\n    uartintr();\n    lapiceoi();\n    break;\n  case T_IRQ0 + 7:\n  case T_IRQ0 + IRQ_SPURIOUS:\n    cprintf(&quot;cpu%d: spurious interrupt at %x:%x\\n&quot;,\n            cpu-&gt;id, tf-&gt;cs, tf-&gt;eip);\n    lapiceoi();\n    break;\n   \n  \/\/PAGEBREAK: 13\n  default:\n    if(proc == 0 || (tf-&gt;cs&amp;3) == 0){\n      \/\/ In kernel, it must be our mistake.\n      cprintf(&quot;unexpected trap %d from cpu %d eip %x (cr2=0x%x)\\n&quot;,\n              tf-&gt;trapno, cpu-&gt;id, tf-&gt;eip, rcr2());\n      panic(&quot;trap&quot;);\n    }\n    \/\/ In user space, assume process misbehaved.\n    cprintf(&quot;pid %d %s: trap %d err %d on cpu %d &quot;\n            &quot;eip 0x%x addr 0x%x--kill proc\\n&quot;,\n            proc-&gt;pid, proc-&gt;name, tf-&gt;trapno, tf-&gt;err, cpu-&gt;id, tf-&gt;eip, \n            rcr2());\n    proc-&gt;killed = 1;\n  }\n\n  \/\/ Force process exit if it has been killed and is in user space.\n  \/\/ (If it is still executing in the kernel, let it keep running \n  \/\/ until it gets to the regular system call return.)\n  if(proc &amp;&amp; proc-&gt;killed &amp;&amp; (tf-&gt;cs&amp;3) == DPL_USER)\n    exit();\n\n  \/\/ Force process to give up CPU on clock tick.\n  \/\/ If interrupts were on while locks held, would need to check nlock.\n  if(proc &amp;&amp; proc-&gt;state == RUNNING &amp;&amp; tf-&gt;trapno == T_IRQ0+IRQ_TIMER)\n    yield();\n\n  \/\/ Check if the process has been killed since we yielded\n  if(proc &amp;&amp; proc-&gt;killed &amp;&amp; (tf-&gt;cs&amp;3) == DPL_USER)\n    exit();\n}<\/pre>\n<p>\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u306e\u70ba\u306e\u30c1\u30a7\u30c3\u30af\u306e\u5f8c\u3001trap\u95a2\u6570\u306f\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u5272\u308a\u8fbc\u307f\u3092\u898b\u308b\u3002\uff08\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u5f8c\u3067\u8aac\u660e\u3059\u308b\u3002\uff09<br \/>\n\u4e88\u671f\u3055\u308c\u305f\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30c7\u30d0\u30a4\u30b9\u306b\u52a0\u3048\u3066\u3001trap\u95a2\u6570\u306f\u64ec\u4f3c\u5272\u308a\u8fbc\u307f\uff08\u4e0d\u5fc5\u8981\u306a\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u5272\u308a\u8fbc\u307f\uff09\u306b\u3088\u3063\u3066\u3082\u5f15\u304d\u8d77\u3053\u3055\u308c\u308b\u3002<\/p>\n<p>\u3082\u3057\u30c8\u30e9\u30c3\u30d7\u304c\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u3084\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30c7\u30d0\u30a4\u30b9\u306e\u5272\u308a\u8fbc\u307f\u3067\u306a\u3051\u308c\u3070\u3001trap\u95a2\u6570\u306f\u305d\u308c\u3092\u30c8\u30e9\u30c3\u30d7\u306e\u524d\u306b\u5b9f\u884c\u3055\u308c\u3066\u305f\u30b3\u30fc\u30c9\u306e\u4e00\u90e8\u306b\u3088\u308b\u304a\u304b\u3057\u306a\u51e6\u7406\uff08\u4f8b\u3048\u3070\u30bc\u30ed\u9664\u7b97\uff09\u306b\u3088\u3063\u3066\u5f15\u304d\u8d77\u3053\u3055\u308c\u305f\u3082\u306e\u3060\u3068\u4eee\u5b9a\u3059\u308b\u3002<br \/>\n\u3082\u3057\u3001\u305d\u306e\u30c8\u30e9\u30c3\u30d7\u3092\u5f15\u304d\u8d77\u3053\u3057\u305f\u30b3\u30fc\u30c9\u304c\u30e6\u30fc\u30b6\u30d7\u30ed\u30b0\u30e9\u30e0\u306a\u3089\u3001xv6\u306f\u8a73\u7d30\u3092\u5370\u5b57\u3057\u3001\u305d\u3057\u3066\u305d\u306e\u30e6\u30fc\u30b6\u30d7\u30ed\u30bb\u30b9\u3092\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3059\u308b\u4e8b\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306bproc-&gt;killed\uff08\u539f\u6587\u3067\u306fcp-&gt;killed\uff09\u3092\u30bb\u30c3\u30c8\u3059\u308b\u3002<br \/>\n\u6211\u3005\u306f\u3001\u7b2c4\u7ae0\u3067xv6\u304c\u3069\u3046\u3084\u3063\u3066\u3053\u306e\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3092\u5b9f\u884c\u3059\u308b\u304b\u3092\u898b\u308b\u4e88\u5b9a\u3067\u3042\u308b\u3002<\/p>\n<p>\u3082\u3057\u3001\u305d\u308c\u304c\u30ab\u30fc\u30cd\u30eb\u306e\u5b9f\u884c\u4e2d\u306a\u3089\u3001\u30ab\u30fc\u30cd\u30eb\u306e\u30d0\u30b0\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3002<br \/>\ntrap\u95a2\u6570\u306f\u3001\u305d\u306e\u9a5a\u304d\u306b\u3064\u3044\u3066\u8a73\u7d30\u3092\u5370\u5b57\u3057\u3001\u305d\u3057\u3066panic\u95a2\u6570\u3092\u547c\u3076\u3002<\/p>\n<h3>\u611f\u60f3<\/h3>\n<p>trap\u95a2\u6570\u3067\u306ftf-&gt;trapno\u3067\u51e6\u7406\u3092\u5272\u308a\u632f\u308b\u3068\u3044\u3046\u8a71\u3067\u3059\u3002<\/p>\n<p>cp-&gt;killed\u3068proc-&gt;killed\u306b\u3064\u3044\u3066\u306f\u3001git\u306e\u30ed\u30b0\u3092\u8abf\u3079\u305f\u3068\u3053\u308d2009\/8\/31\u306brename c\/cp to cpu\/proc\u3068\u3044\u3046\u30b3\u30e1\u30f3\u30c8\u3092\u542b\u3093\u3060\u30b3\u30df\u30c3\u30c8\u304c\u3042\u308a\u305d\u3053\u3067cp\u304b\u3089proc\u306b\u5909\u66f4\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u672c\u6587\u304c\u9593\u9055\u3063\u3066\u308b\uff08\u53e4\u3044\u307e\u307e\u6b8b\u3063\u3066\u308b\uff09\u306e\u3060\u308d\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[405],"class_list":["post-1390","post","type-post","status-publish","format-standard","hentry","category-tech","tag-xv6"],"_links":{"self":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/1390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/comments?post=1390"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/1390\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=1390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=1390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=1390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}