You must first open the King's Solar.
This will allow you access to a barrier switch.
Now you can pass the first barrier.
The second barrier does not open, but you can now reach something.
Turn the block to move the sliding door from the South Passage.